Async-retriever

Latest version: v0.19.1

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

Scan your dependencies

Page 4 of 5

0.3.0

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

Breaking Changes
~~~~~~~~~~~~~~~~
- Set the expiration time to never expire by default.

New Features
~~~~~~~~~~~~
- Add two new arguments to ``retrieve`` for controlling caching. First, ``delete_url_cache``
for deleting caches for specific requests. Second, ``expire_after`` for setting a
custom expiration time.
- Expose the ``ssl`` argument for disabling the SSL certification
verification (:issue_day:`41`).
- Add a new option called ``disable`` that temporarily disables caching
requests/responses if set to ``True``. It defaults to ``False``.

0.2.5

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

New Features
~~~~~~~~~~~~
- Add two new arguments, ``timeout`` and ``expire_after``, to ``retrieve``.
These two arguments give the user more control in dealing with issues
related to caching.

Internal Changes
~~~~~~~~~~~~~~~~
- Revert to ``pytest`` as the testing framework.
- Use ``importlib-metadata`` for getting the version instead of ``pkg_resources``
to decrease import time as discussed in this
`issue <https://github.com/pydata/xarray/issues/5676>`__.

0.2.4

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

Internal Changes
~~~~~~~~~~~~~~~~
- Use ``ujon`` for converting responses to JSON.

Bug Fixes
~~~~~~~~~
- Fix an issue with catching service error messages.

0.2.3

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

Internal Changes
~~~~~~~~~~~~~~~~
- Use ``ujson`` for JSON parsing instead of ``orjson`` since ``orjson`` only serializes to
``bytes`` which is not compatible with ``aiohttp``.

0.2.2

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

New Features
~~~~~~~~~~~~
- Add a new function, ``clean_cache``, for manually removing the expired responses
from the cache database.

Internal Changes
~~~~~~~~~~~~~~~~
- Handle all cache file-related operations in the ``create_cachefile`` function.

0.2.1

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

New Features
~~~~~~~~~~~~
- The responses now are returned to the same order as the input URLs.
- Add support for passing connection type, i.e., IPv4 only, IPv6 only,
or both via the ``family`` argument. Defaults to ``both``.
- Set ``trust_env=True``, so the session can read the system's ``netrc`` files.
This can be useful for working with services such as EarthData service
that read the user authentication info from a ``netrc`` file.

Internal Changes
~~~~~~~~~~~~~~~~
- Replace the ``AsyncRequest`` class with the ``_retrieve`` function to increase
readability and reduce overhead.
- More robust handling of validating user inputs via a new class called ``ValidateInputs``.
- Move all if-blocks in ``async_session`` to other functions to improve performance.

Page 4 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.