Skip to content

Releases: phalt/clientele

0.9.0

25 Sep 08:15
Compare
Choose a tag to compare
  • Support patch methods
  • Fix config.py file being overwritten when generating new clients

0.8.3

26 Oct 00:19
Compare
Choose a tag to compare
  • Fix bug with headers assignment

0.8.2

26 Oct 00:06
Compare
Choose a tag to compare
  • Improved JSON support

0.8.1

25 Oct 22:32
Compare
Choose a tag to compare
  • Function parameters no longer format to snake_case to maintain consistency with the OpenAPI schema.

0.8.0

25 Oct 21:52
90dfb36
Compare
Choose a tag to compare
  • Improved support for Async clients which prevents a weird bug when running more than one event loop. Based on the suggestions from this httpx issue.
  • We now use ruff format for coding formatting (not the client output).
  • Decimal support now extends to Decimal input values.
  • Input and Output schemas will now have properties that directly match those provided by the OpenAPI schema. This fixes a bug where previously, the snake-case formatting did not match up with what the API expected to send or receive.

0.7.1

25 Oct 00:52
Compare
Choose a tag to compare
  • Support for Decimal types.

0.7.0

24 Oct 03:09
Compare
Choose a tag to compare
  • Updated all files to use the templates engine.
  • Generator files have been reorganised in clientele to support future templates.
  • constants.py has been renamed to config.py to better reflect how it is used. It is not generated from a template like the other files.
  • If you are using Python 3.10 or later, the typing.Unions types will generate as the short hand | instead.
  • To regenerate a client (and to prevent accidental overrides) you must now pass --regen t or -r t to the generate command. This is automatically added to the line in MANIFEST.md to help.
  • Clientele will now automatically run black code formatter once a client is generated or regenerated.
  • Clientele will now generate absolute paths to refer to adjacent files in the generated client, instead of relative paths. This assumes you are running the clientele command in the root directory of your project.
  • A lot of documentation and docs strings updates so that code in the generated client is easier to understand.
  • Improved the utility for snake-casing enum keys. Tests added for the functions.
  • Python 3.12 support.
  • Add a "basic" client using the command generate-basic. This can be used to keep a consistent file structure for an API that does not use OpenAPI.

0.6.3

28 Sep 19:57
Compare
Choose a tag to compare
  • Packaged application installs in the correct location. Resolving #6
  • Updated pyproject.toml to include a better selection of links.

0.6.2

26 Sep 22:58
Compare
Choose a tag to compare
  • Ignore optional URL query parameters if they are None.

0.6.1

26 Sep 21:30
Compare
Choose a tag to compare
  • Added from __future__ import annotations in files to help with typing evaluation.
  • Update to use pydantic 2.4.
  • A bunch of documentation and readme updates.
  • Small wording and grammar fixes.