openapi-python-client

Generate modern Python clients from OpenAPI

MIT License

Downloads
272.8K
Stars
1.1K
Committers
68

Bot releases are visible (Hide)

openapi-python-client - 0.12.2

Published by dbanty almost 2 years ago

0.12.2

Fixes

  • Support Python 3.11.0 (#701)
openapi-python-client - 0.12.1

Published by dbanty almost 2 years ago

0.12.1

Fixes

  • Version bump due to PyPI error
openapi-python-client - 0.12.0

Published by dbanty almost 2 years ago

0.12.0

Breaking Changes

  • Change the Response.status_code type to the HTTPStatus enum [#665]

Features

  • Add endpoint_collections_by_tag and openapi to the templating globals [#689]. Thanks @paulo-raca!
  • Support for recursive and circular references using lazy imports [#670, #338, #466]. Thanks @maz808 & @mtovt!
  • Include __all__ in generated __init__.py files [#676, #631, #540, #675]. Thanks @EltonChou!

Fixes

  • If data.type is None but has data.properties, assume type is object [#691, #674]. Thanks @ahuang11!
openapi-python-client - 0.11.6

Published by dbanty about 2 years ago

0.11.6

Features

  • improve the error message when parsing a response fails [#659]. Thanks @supermihi!
  • Authorization header can now be customized in AuthenticatedClient [#660]. Thanks @supermihi!
  • Support inlined form data schema in requestBody [#656, #662]. Thanks @supermihi!
  • Allow enums in headers [#663, #667]. Thanks @supermihi!

Fixes

  • Exception when parsing documents which contain callbacks [#661]. Thanks @dachucky!
openapi-python-client - 0.11.5

Published by dbanty about 2 years ago

0.11.5

Features

  • support #/components/parameters references [#288, #615, #653]. Thanks @jsanchez7SC!

Fixes

  • Keep trailing newlines in generated files [#646, #654]. Thanks @eliask!
openapi-python-client - 0.11.4

Published by dbanty over 2 years ago

0.11.4

Fixes

  • Invalid code generation with some oneOf and anyOf combinations [#603, #642]. Thanks @jselig-rigetti!
  • Allow relative references in all URLs [#630]. Thanks @jtv8!
openapi-python-client - 0.11.3 - 2022-06-09

Published by dbanty over 2 years ago

Fixes

  • Allow tokenUrl to be relative [#618]. Thanks @Fokko!
openapi-python-client - 0.11.2 - 2022-06-02

Published by dbanty over 2 years ago

Features

  • Allow httpx 0.23.x (#617)

Fixes

  • typos in generated README (#586). Thanks @adelevie!
openapi-python-client - 0.11.1 - 2022-01-29

Published by dbanty over 2 years ago

Features

  • Allow httpx 0.22.* in generated clients [#577]

Fixes

  • Type annotations for optional dates and datetimes in multipart/form [#580]
  • Error generating clients with dates or datetimes in multipart/form [#579]. Thanks @lsaavedr!
  • Include nested packages in generated setup.py [#575, #576]. Thanks @tedo-benchling!
openapi-python-client - 0.11.0 - 2022-01-18

Published by dbanty almost 3 years ago

Breaking Changes

  • Minimum required attrs version in generated clients is now 21.3.0.
  • Python 3.6 is officially not supported. The minimum version has been updated to reflect this.
  • Validation of OpenAPI documents is now more strict.
  • Model names generated from OpenAPI names with periods (.) in them will be different.
  • Header values will be explicitly transformed or omitted instead of blindly passed to httpx as-is.
  • datetime is now considered a reserved word everywhere, so any properties which were named datetime will now be named datetime_.
  • File uploads can now only accept binary payloads (BinaryIO).

Features

  • Don't set a cap on allowed attrs version.
  • use poetry-core as build backend in generated clients [#565]. Thanks @fabaff!
  • Use httpx.request to allow bodies for all type of requests [#545, #547]. Thanks @MalteBecker!

Fixes

  • OpenAPI schema validation issues (#426, #568). Thanks @p1-ra!
  • treat period as a delimiter in names (#546). Thanks @alexifm!
  • Non-string header values [#552, #553, #566]. Thanks @John98Zakaria!
  • Generate valid code when a property of a model is named "datetime" [#557 & #558]. Thanks @kmray!
  • Multipart uploads for httpx >= 0.19.0 [#508, #548]. Thanks @skuo1-ilmn & @kairntech!
openapi-python-client - 0.10.8 - 2021-12-18

Published by dbanty almost 3 years ago

Features

  • New and improved docstrings in generated functions and classes [#503, #505, #551]. Thanks @rtaycher!
  • Support httpx 0.21.* (#537)

Fixes

  • Basic types as JSON bodies and responses [#487 & #550]. Thanks @Gelbpunkt!
  • Relative paths to config files [#538 & #544]. Thanks to @motybz, @MalteBecker, & @abhinav-cashify!
openapi-python-client - 0.10.7 - 2021-10-31

Published by dbanty almost 3 years ago

Fixes

  • SSL verify argument to async clients [#533 & #510]. Thanks @fsvenson and @mvaught02!
  • Remove unused CHANGELOG from generated setup.py [#529]. Thanks @johnthagen!
openapi-python-client - 0.10.6 - 2021-10-26

Published by dbanty almost 3 years ago

Features

  • Improve error messages related to invalid arrays and circular or recursive references [#519].
  • Add httpx 0.20.* support [#514].

Fixes

  • Use isort "black" profile in generated clients [#523]. Thanks @johnthagen!
  • setup.py should generate importable packages named _client [#492, #520, #521]. Thanks @tedo-benchling & @Leem0sh!
  • Allow None in enum properties [#504, #512, #516]. Thanks @juspence!
  • properly support JSON OpenAPI documents and config files [#488, #509, #515]. Thanks @tardyp and @Gelbpunkt!
openapi-python-client - 0.10.5 - 2021-09-25

Published by dbanty about 3 years ago

Features

  • Add verify_ssl option to generated Client, allowing users to ignore or customize ssl verification (#497). Thanks @rtaycher!

Fixes

  • Properly label a path template issue as a warning (#494). Thanks @chamini2!
  • Don't allow mixed types in enums.
  • Don't crash when a null is in an enum (#500). Thanks @juspence!
openapi-python-client - 0.10.4 - 2021-09-05

Published by dbanty about 3 years ago

Features

  • Allow customization of post-generation steps with the post_hooks config option.
  • Allow httpx 0.19.* (#481)

Fixes

  • Don't crash the generator when one of the post-generation hooks is missing [fixes #479]. Thanks @chamini2 and @karolzlot!
openapi-python-client - 0.10.3 - 2021-08-16

Published by dbanty about 3 years ago

Features

  • Expose python_identifier and class_name functions to custom templates to rename with the same behavior as the parser.

Fixes

  • Treat true and false as reserved words.
  • Prevent generating Python files named the same as reserved / key words.
  • Properly replace reserved words in class and module names [#475, #476]. Thanks @mtovts!
openapi-python-client - 0.10.2 - 2021-08-15

Published by dbanty about 3 years ago

Features

  • Allow path parameters to be positional args [#429 & #464]. Thanks @tsotnikov!
  • Include both UNSET and None static types for nullable or optional query params [#421, #380, #462]. Thanks @forest-benchling!
  • Allow allOf enums to be subsets of one another or their base types [#379, #423, #461]. Thanks @forest-benchling! (#461)

Fixes

  • Parameters from PathItem can now be overriden in Operation [#458 & #457]. Thanks @mtovts!
openapi-python-client - 0.10.1 - 2021-07-10

Published by dbanty over 3 years ago

Fixes

  • Support multipart requests with type: array [#452 & #451]. Thanks @csymeonides-mf @slamora and @dpursehouse
openapi-python-client - 0.10.0 - 2021-07-05

Published by dbanty over 3 years ago

Breaking Changes

  • Normalize generated module names to allow more tags [#428 & #448]. Thanks @iamnoah & @forest-benchling!
  • Improved the consistency of snake_cased identifiers which will cause some to be renamed [#413 & #432]. Thanks @ramnes!
  • Allow more types in multipart payloads by defaulting to JSON for complex types [#372]. Thanks @csymeonides-mf!

Features

  • Allow custom templates for API and endpoint __init__ files. [#442] Thanks @p1-ra!

Fixes

  • Treat empty schemas like Any instead of None. Thanks @forest-benchling! [#417 & #445]
openapi-python-client - 0.9.2 - 2021-06-13

Published by dbanty over 3 years ago

This release is the first release from the new GitHub organization! As such, all the links in the repo have been updated to point at the new URL.

Features

  • Add option to fail on warning [#427]. Thanks @forest-benchling!

Fixes

  • Properly strip out UNSET values from form data [#430]. Thanks @p1-ra!
Package Rankings
Top 9.55% on Proxy.golang.org
Top 2.17% on Pypi.org
Badges
Extracted from project README
codecov MIT license Generic badge PyPI version shields.io Downloads
Related Projects