Uplink

Latest version: v0.9.7

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

Scan your dependencies

Page 4 of 5

0.5.0

==================
Added
-----
- Decorators for convenient registration of custom serialization.
(``uplink.dumps``) and deserialization (``uplink.loads``) strategies.
- Support for setting nested JSON fields with ``uplink.Field`` and
``uplink.json``.
- Optional ``args`` parameter to HTTP method decorators (e.g., ``uplink.get``)
for another Python 2.7-compatible alternative to annotating consumer method
arguments with function annotations.
- Decorator ``uplink.returns.json`` for converting HTTP response bodies into
JSON objects or custom Python objects.
- Support for converting collections (e.g., converting a response body into a
list of users).

Changed
-------
- Leveraging built-in converters (such as ``uplink.converters.MarshmallowConverter``)
no longer requires providing the converter when instantiating an
``uplink.Consumer`` subclass, as these converters are now implicitly included.

Fixed
-----
- ``uplink.response_handler`` and ``uplink.error_handler`` properly
adopts the name and docstring of the wrapped function.

0.4.1

==================
Fixed
-----
- Enforce method-level decorators override class-level decorators when they conflict.

0.4.0

==================
Added
-----
- Support for Basic Authentication.
- The ``response_handler`` decorator for defining custom response handlers.
- The ``error_handler`` decorator for defining custom error handlers.
- The ``inject`` decorator for injecting other kinds of middleware.
- The ``Consumer._inject`` method for adding middleware to a consumer
instance.
- Support for annotating constructor arguments of a ``Consumer`` subclass
with built-in function annotations like ``Query`` and ``Header``.

0.3.0

==================
Added
-----
- HTTP HEAD request decorator by `brandonio21`_.
- Support for returning deserialized response objects using ``marshmallow``
schemas.
- Constructor parameter for ``Query`` and ``QueryMap`` to
support already encoded URL parameters.
- Support for using ``requests.Session`` and ``aiohttp.ClientSession``
instances with the ``client`` parameter of the ``Consumer``
constructor.

Changed
-------
- ``aiohttp`` and ``twisted`` are now optional dependencies/extras.

Fixed
-----
- Fix for calling a request method with ``super``, by `brandonio21`_.
- Fix issue where method decorators would incorrectly decorate inherited
request methods.

0.2.2

===================
Fixed
-----
- Fix for error raised when an object that is not a class is passed into the
``client`` parameter of the ``Consumer`` constructor, by `kadrach`_.

0.2.0

===================
Added
-----
- The class ``uplink.Consumer`` by `itstehkman`_. Consumer classes should
inherit this base.
class, and creating consumer instances happens through instantiation.
- Support for ``asyncio`` for Python 3.4 and above.
- Support for ``twisted`` for all supported Python versions.

Changed
-------
- **BREAKING**: Invoking a consumer method now builds and executes the request,
removing the extra step of calling the ``execute`` method.

Deprecated
----------
- Building consumer instances with ``uplink.build``. Instead, Consumer classes
should inherit ``uplink.Consumer``.

Fixed
-----
- Header link for version 0.1.1 in changelog.

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.