openapi-python-client
Generate modern Python clients from OpenAPI 3.0 and 3.1 documents.
This generator does not support OpenAPI 2.x FKA Swagger. If you need to use an older document, try upgrading it to
version 3 first with one of many available converters.
This project is still in development and does not support all OpenAPI features
Why This?
This tool focuses on creating the best developer experience for Python developers by:
Using all the latest and greatest Python features like type annotations and dataclasses.
Having documentation and usage instructions specific to this one generator.
Being written in Python with Jinja2 templates, making it easier to improve and extend for Python developers. It's also much easier to install and use if you already have Python.
Installation
I recommend you install with pipx so you don't conflict with any other packages you might have: pipx install openapi-python-client --include-deps.
Note the --include-deps option makes ruff available in your
|