Gapipy

Latest version: v2.36.0

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

Scan your dependencies

Page 15 of 27

2.1.0

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

* Added new resource, ``AgencyChain``

2.0.0

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

The global reference to the last instantiated ``Client`` has been removed. It
is now mandatory to pass in a Client instance when instantiating a ``Model`` or
``Resource``.

In practice, this should not introduce too many changes in codebases that are
using ``gapipy``, since most resource interacation happens through a ``Client``
instance (e.g. ``api.tours.get(123)``, or ``api.customers.create({...})``),
instead of being instantiated independently. The one possible exception is unit
testing: in that case, ``Client.build`` can be useful.

The global variable was causing issues with connection pooling when multiple
client with different configurations were used at the same time.

1.1.0

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

* Added new resource, ``DossierFeature``

1.0.0

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

* Adopted `Semantic Versioning`_ for this project.

.. warning:: BREAKING!

* Refactored how the cache key is set. This is a breaking change for any
modules that implemented their own cache interface. The cache modules are
no longer responsible for defining the cache value, but simply storing
whatever it is given into cache. The ``Query`` object now introduces a
``query_key`` method which generates the cache key sent to the cache
modules.

.. _`Semantic Versioning`: http://semver.org/

0.6.3

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

* Added better error handling to ``Client.build``. An AttributeError raised when
instantiating a resource won't be shadowed by the except block anymore.

0.6.2

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

* Fixed a regression bug when initializing DepartureServiceRoom model.

Page 15 of 27

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.