Skip to content

Releases: MikeWooster/api-client

v2.0.0

07 Jun 19:30
76c22d1

Choose a tag to compare

Added

  • Support for Python 3.10 through 3.14.
  • A py.typed marker so type checkers use the bundled inline type hints (#77).
  • A wheel is now published alongside the source distribution.

Changed

  • Minimum supported Python is now 3.10.
  • Type hints modernised to use PEP 604 unions (X | None) and built-in generics.
  • clone() preserves attributes set in subclass constructors (#73).
  • @endpoint includes inherited attributes and ignores methods and functions (#68).
  • Breaking: paginator next_page callbacks now receive a Response object instead of the
    decoded body. Use response.get_json() for the body and response.get_original() for the
    underlying response (e.g. headers and links) (#86).

Removed

  • Support for Python 3.6, 3.7, 3.8 and 3.9.
  • The OptionalDict, OptionalStr, OptionalInt and OptionalJsonType aliases from apiclient.utils.typing (use X | None directly).

Fixed

  • Unrelated exceptions are no longer masked as UnexpectedError; only request errors are wrapped (#80).
  • post(), put() and patch() type hints accept JSON arrays, not just objects (#90).
  • paginators imports APIClient from apiclient.client instead of the package root (#78)

version 1.3.1

24 Mar 11:54

Choose a tag to compare

version 1.3.0

02 Feb 14:26

Choose a tag to compare

Users now have the option of installing package api-client-jsonmarshal which will perform the same actions. This allows usage of python versions 3.6+
deprecate yaml usage. this removes another unnecessary dependency.

version 1.2.2

17 Jan 13:58

Choose a tag to compare

  • Mark jsonmarshal usage for deprecation - this has been extracted to an external package.
  • remove unnecessary logging
  • update docs
  • small fixes

version 1.2.1

02 Sep 09:15

Choose a tag to compare

  • fix issue where blank response body raised exceptions. blank response bodies now return None.
  • marked the yaml response handler as to be deprecated.

v1.2.0: version: 1.2.0

03 Jul 07:45

Choose a tag to compare

  • Add support for marshalling/unmarshalling to/from json -> dataclasses.
  • switch to using github actions
  • remove deprecated features
  • Allow header authentication to pass in extra headers required for
    authenticating the client.

v1.2.0rc1: version: 1.2.0

28 Jun 18:29

Choose a tag to compare

Pre-release
- Add support for marshalling/unmarshalling to/from json -> dataclasses.
- switch to using github actions
- remove deprecated features
- Allow header authentication to pass in extra headers required for
  authenticating the client.