diff --git a/README.rst b/README.rst index d3e16e9..f59106d 100644 --- a/README.rst +++ b/README.rst @@ -130,8 +130,9 @@ The drawings have been moderated but there is no guarantee it'll actually be a p Status ------ -**Beta** - stable, under active dev, the API may change. +**Stable**. +Raise any `issues`_ in the `github repository`_. .. |quickdraw| image:: https://raw.githubusercontent.com/martinohanlon/quickdraw_python/master/docs/images/quickdraw.png :scale: 100 % @@ -166,4 +167,6 @@ Status .. _QuickDrawData: https://quickdraw.readthedocs.io/en/latest/api.html#quickdrawdata .. _QuickDrawDataGroup: https://quickdraw.readthedocs.io/en/latest/api.html#quickdrawdatagroup .. _drawing_names: https://quickdraw.readthedocs.io/en/latest/api.html#quickdraw.QuickDrawDataGroup.drawing_names -.. _drawings: https://quickdraw.readthedocs.io/en/latest/api.html#quickdraw.QuickDrawDataGroup.drawings \ No newline at end of file +.. _drawings: https://quickdraw.readthedocs.io/en/latest/api.html#quickdraw.QuickDrawDataGroup.drawings +.. _issues: https://github.com/martinohanlon/quickdraw_python/issues +.. _github repository: https://github.com/martinohanlon/quickdraw_python \ No newline at end of file diff --git a/docs/changelog.rst b/docs/changelog.rst index fa9a080..c70975c 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -3,6 +3,11 @@ Change log .. currentmodule:: quickdraw +0.2.0 - 2012-03-10 +------------------ + ++ Python 3.7+ compatibility fix + 0.1.0 ----- diff --git a/examples/search_drawing.py b/examples/search_drawing.py new file mode 100644 index 0000000..9699c8b --- /dev/null +++ b/examples/search_drawing.py @@ -0,0 +1,3 @@ +from quickdraw import QuickDrawDataGroup +anvils = QuickDrawDataGroup("anvil") +results = anvils.search_drawings(countrycode="PL") \ No newline at end of file diff --git a/quickdraw/data.py b/quickdraw/data.py index 7590805..a61f3f5 100644 --- a/quickdraw/data.py +++ b/quickdraw/data.py @@ -363,10 +363,13 @@ def drawings(self): if self._current_drawing > self._drawing_count - 1: # reached the end to the drawings self._current_drawing = 0 - raise StopIteration() + return else: # yield the next drawing - yield self.get_drawing(index = self._current_drawing) + try: + yield self.get_drawing(index = self._current_drawing) + except StopIteration: + return def get_drawing(self, index=None): """ diff --git a/setup.py b/setup.py index 2df1766..112e36e 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ __project__ = 'quickdraw' __desc__ = 'An API for downloading and reading the google quickdraw data.' -__version__ = '0.1.0' +__version__ = '0.2.0' __author__ = "Martin O'Hanlon" __author_email__ = 'martin@ohanlonweb.com' __license__ = 'MIT' @@ -76,6 +76,9 @@ "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", ] if __name__ == '__main__':