Skip to main content

oapi-gen

Generate Python 3.12+ server contracts and HTTP adapters from OpenAPI using Starlette and msgspec. Implement the generated handler protocols and bind them when creating the router.

uv add --dev oapi-gen
uv add starlette msgspec 'uvicorn[standard]'
uv run oapi-gen generate openapi.yaml --output app/http/generated

See the documentation and examples for the quick start and supported OpenAPI features. For development and releases, see CONTRIBUTING.md.

The optional oapi-gen-dishka integration is released with the same version as the generator.

Metadata

Release files for oapi-gen 0.1.11

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

Source distribution (sdist)

Source distribution for oapi-gen 0.1.11
File Size Uploaded Provenance Actions
oapi_gen-0.1.11.tar.gz 99.2 kB With provenance Details for oapi_gen-0.1.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for oapi-gen 0.1.11
File Interpreter ABI Platform Actions
oapi_gen-0.1.11-py3-none-any.whl Python 3 none any Details for oapi_gen-0.1.11-py3-none-any.whl

Total release size: 148.9 kB

Release files / oapi_gen-0.1.11.tar.gz

Download URL oapi_gen-0.1.11.tar.gz
Size 99.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b90191c1407d27e371cf9b19af8726df7892ddb81a2a9e6650bd5ffa819d67ce
BLAKE2b-256 checksum
How to use checksums
05a2e54cabaf0f0f1655f15f31cdc7a2910ea0d24b77d16cfeff0d1d727a376e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / oapi_gen-0.1.11-py3-none-any.whl

Download URL oapi_gen-0.1.11-py3-none-any.whl
Size 49.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1aa60445e64e83a00b5fa8bf9a900d8301ccf7cfda4e74fc227e6e0cb888f060
BLAKE2b-256 checksum
How to use checksums
2b5868e41983f98fc20cc25bbe96c68144ba0865a465d8918acdd1cec50650d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Security for oapi-gen 0.1.11

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for oapi_gen-0.1.11.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

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.

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