Pyimgur

Latest version: v0.6.0

Safety actively analyzes 681790 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.5.3

-------------

* **[FEATURE]** Make it possible to skip SSL certificate verification.
* **[FEATURE]** Increase python 2.6 compatibility. PyImgur is still only
officially compatible with python 2.7.
* **[BUGFIX]** Fix missing `has_fetched` arguments breaking :meth:`.get_subreddit_gallery`.
* **[BUGFIX]** Fix bug breaking :meth:`.get_gallery` from working.
* **[BUGFIX]** Fix incorrect argument that prevented :meth:`.exchange_code`
from working.

0.5.2

-------------

* **[BUGFIX]** Fixed an installation crash that happened if the `requests`
dependency wasn't already installed.

0.5.1

-------------

* **[BUGFIX]** Fix bug in :meth:`~pyimgur.__init__.Album.update` that caused
it to crash when calling it with a list of image ids as the images argument.
A bug also prevented the cover argument from being a Image object as is
possible elsewhere, instead it could only be the id of an image.
* **[BUGFIX]** If an album had no cover Image, then before it would create a
lazy Image object for the cover with ``None`` as Id. Now the ``cover``
attribute will correctly be ``None``.
* **[BUGFIX]** Only albums instantiated with
:meth:`~pyimgur.__init__.Imgur.get_album` starts with the ``images``
attribute set. Now ``_has_fetched`` has been set to ``False`` for such
albums. Meaning that a call to ``Album.images`` will refresh the object and
it will then have the ``images`` attribute set.

0.5

-----------

* **[FEATURE]** Add :meth:`~pyimgur.__init__.Imgur.get_at_url` that takes an
url and returns an object matching what is located at the url.
* **[FEATURE]** Add :meth:`~pyimgur.__init__.Imgur.get_memes_gallery` that
return the gallery of memes as on `the webend <http://imgur.com/g/memes>`_.
* **[FEATURE]** Add :meth:`~pyimgur.__init__.Imgur.get_subreddit_image` that
can return a subreddit image.
* **[IMGUR]** Imgur changed their API to return more data in the response,
when uploading an image. But the variables that could be sent were always
``None`` in the response. See `the bug report to Imgur
<https://groups.google.com/forum/!topic/imgur/F3uVb55TMGo>`_
* **[BUGFIX]** If :meth:`~pyimgur.__init__.Image.download` was used with an
invalid filename given as the ``name`` argument or an invalid filename was
gotten via the title, then the download would fail with an IOError. It now
defaults to saving it with the hash as the name if the primary choice is an
invalid filename.
* **[BUGFIX]** Manually calling :meth:`~pyimgur.__init__.Basic_object.refresh`
didn't update the value of ``_has_fetched``.

0.4.2

-------------

* **[FEATURE]** :meth:`~pyimgur.__init__.Imgur.upload_image` can now upload
images given with a url as well as being able to upload images given with a
path. Either a path or a url to an image must be given when calling
:meth:`~pyimgur.__init__.Imgur.upload_image`.

0.4.1

-------------

* **[FEATURE]** Instead of returning an error, PyImgur will now resend
requests to Imgur if it's expected that the second request will be
successful. This is for the cases where Imgur has an internal error or the
returned data is malformed.
* **[BUGFIX]** Fixed that User.get_images() unnecessarily required
authentication as a user.

Page 1 of 2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.