Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Openapi Python Generator

PyPI Status Python Version License

Tests Codecov

pre-commit Black


Documentation: here


Features

  • Ease of use. Provide input, output and the library, and the generator will do the rest.
  • Type safety and type hinting. OpenAPI python generator makes heavy use of pydantic models to provide type-safe data structures.
  • Support for multiple rest frameworks. OpenAPI python generator currently supports the following:
  • Async and sync code generation support, depending on the framework. It will automatically create both for frameworks that support both.
  • Easily extendable using Jinja2 templates. The code is designed to be easily extendable and should support even more languages and frameworks in the future.
  • Fully tested. Every generated code is automatically tested against the OpenAPI spec and we have 100% coverage.
  • Usage as CLI or as library.

Requirements

  • Python 3.7+

Installation

You can install Openapi Python Generator via pip from PyPI:

$ pip install openapi-python-generator

Usage

Please see the Quick start page for details.

Roadmap

  • Support for all commonly used http libraries in the python ecosystem (requests, urllib, ...)
  • Support for multiple languages
  • Support for multiple authentication schemes
  • Support custom themes

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, Openapi Python Generator is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

Special thanks to the peeps from openapi-schema-pydantic, which already did a lot of the legwork by providing a pydantic schema for the OpenAPI 3.0.0+ specification.

This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.

Metadata

Release files for openapi-python-generator 0.4.8.dev1688499555

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openapi-python-generator 0.4.8.dev1688499555
File Size Uploaded Provenance Actions
openapi_python_generator-0.4.8.dev1688499555.tar.gz 16.4 kB Without provenance Details for openapi_python_generator-0.4.8.dev1688499555.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openapi-python-generator 0.4.8.dev1688499555
File Interpreter ABI Platform Actions
openapi_python_generator-0.4.8.dev1688499555-py3-none-any.whl Python 3 none any Details for openapi_python_generator-0.4.8.dev1688499555-py3-none-any.whl

Total release size: 38.7 kB

Release files / openapi_python_generator-0.4.8.dev1688499555.tar.gz

Download URL openapi_python_generator-0.4.8.dev1688499555.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9561e80b2bad5f1ab78376f4d08b602171c9423a73d3aa2f18431bdf3d221ec3
BLAKE2b-256 checksum
How to use checksums
2ef10b0801d0ed82b30f5e6320f23adc784f11ea8115a1e94b2266e7beeb744d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.9.17 Linux/5.15.0-1040-azure

Release files / openapi_python_generator-0.4.8.dev1688499555-py3-none-any.whl

Download URL openapi_python_generator-0.4.8.dev1688499555-py3-none-any.whl
Size 22.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0948025fa0dd34081e4e575e645fc1de54e347aa7fe6ca5bad4c7cefd500c0ab
BLAKE2b-256 checksum
How to use checksums
11b879fd10188a75c7ef9fb9d4485f1f06a33c1206b2bd88951a647be3bc4c65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.9.17 Linux/5.15.0-1040-azure

Security for openapi-python-generator 0.4.8.dev1688499555

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page