Skip to content

Releases: ithaka/apiron

v6.0.0

14 Jun 13:55
3f97b9d
Compare
Choose a tag to compare

[6.0.0] - 2021-06-14

Added

  • Testing matrix and trove classifiers for Python 3.9
  • Type hints for all classes, methods, and functions

Removed

  • Support for Python 3.6 has been removed due to its impending end of life and the desire to leverage features from 3.7

Changed

  • Remove Python 3.10 testing and support for now, as Travis CI only has Python 3.10.0a5 which isn't compatible with recent pytest-randomly releases
  • Indicate (by renaming) that all functions in the client module are private, except for call

v5.1.0

14 Jul 15:59
dc5a5f8
Compare
Choose a tag to compare

[5.1.0] - 2020-07-14

Added

  • Ability to specify proxies for a Service definition so all calls to the service use the defined proxies
  • Ability to specify auth for a Service definition so all calls to the service use the defined authentication
  • Ability to specify return_raw_response_object at the endpoint level, overridden by any value specified at call time

v5.0.0

02 Dec 17:58
fbb47f2
Compare
Choose a tag to compare

[5.0.0] - 2019-12-02

Removed

  • Support for Python 3.4 and 3.5 has been removed based on official Python support timelines and usage statistics

v4.2.0

09 Sep 14:15
c9592fc
Compare
Choose a tag to compare

[4.2.0] - 2019-09-09

Added

  • Ability to pass dict to files keyword argument for file-like-objects for multipart encoding upload

v4.1.0

05 Aug 17:18
06dae58
Compare
Choose a tag to compare

[4.1.0] - 2019-08-05

Added

  • Ability to run linting and build docs using tox
  • Ability to access raw response object when making a call using return_raw_response_object=True.
    Useful for accessing things like response cookies or headers.

Changed

  • Moved implementation to src/ directory for improved end-to-end testing with packaging.

v4.0.0

18 Jul 14:43
a0c29b4
Compare
Choose a tag to compare

[4.0.0] - 2019-07-18

Added

  • An endpoints attribute on Service classes returns a list of that service's configured endpoints
  • Endpoint classes now have a useful __repr__ implementation, e.g. "JsonEndpoint(path='/foo')".

Changed

  • StubEndpoint now inherits from Endpoint and as a result does not accept arbitrary keyword arguments
  • Use setup.cfg for most project metadata and tool configuration, aside from black.

v3.0.0

20 Jun 17:50
7f9d22c
Compare
Choose a tag to compare

[3.0.0] - 2019-06-20

Added

  • More testing for the bug fixed in v2.6.1

Changed

  • Extract ServiceCaller behaviors to module level and remove class
  • Remove path_kwargs argument from the call function (previously a ServiceCaller method)

v2.6.1

06 Jun 19:42
02c5d42
Compare
Choose a tag to compare

[2.6.1] - 2019-06-06

Added

  • Backwards compatibility to allow ServiceCaller.call() to use endpoints that live in an instantiated Service

v2.6.0

05 Jun 19:17
Compare
Choose a tag to compare

[2.6.0] - 2019-06-05

Added

  • Ability to pass optional parameter allow_redirects to enable/disable HTTP redirection when calling an endpoint

Changed

  • Move to the descriptor protocol from metaclassing under the hood for turning an endpoint into a callable

v2.5.0

18 Apr 13:59
1771fe7
Compare
Choose a tag to compare

[2.5.0] - 2019-04-18

Added

  • Ability to pass dict to json keyword argument for raw POST body instead of form-encoded data
  • Ability to use regular keyword arguments when calling an endpoint (instead of path_kwargs)

Changed

  • DiscoverableService now inherits from ServiceBase, an ancestor common with Service, instead of Service itself