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]'
oapi-gen generate openapi.yaml --output app/http/generated

See the documentation and examples for supported OpenAPI features, development and releases.

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

Metadata

Release files for oapi-gen 0.1.10

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.10
File Size Uploaded Provenance Actions
oapi_gen-0.1.10.tar.gz 95.1 kB With provenance Details for oapi_gen-0.1.10.tar.gz

Built distribution (wheel)

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

Total release size: 144.5 kB

Release files / oapi_gen-0.1.10.tar.gz

Download URL oapi_gen-0.1.10.tar.gz
Size 95.1 kB
Tags Source
SHA-256 checksum
How to use checksums
74a5c7be2e29d9df325996ffebd1ffc283f71c8a28bddf6baec6e0ff80674ceb
BLAKE2b-256 checksum
How to use checksums
5b746187ea537a9cc97d64f25844f3df5919d2e018fe01f5c366eeaa129e3020
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 Sep 22, 2026.

Transparency log

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

Download URL oapi_gen-0.1.10-py3-none-any.whl
Size 49.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ee2b5fe67c91f4025b48dc9a7bd99e5f03d45c16b5e38b682823764e465e77d
BLAKE2b-256 checksum
How to use checksums
297b63015141869f2410fd46eccb2320839e276106695ca7cee302aefd871e3a
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 Sep 22, 2026.

Transparency log

Security for oapi-gen 0.1.10

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.10.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 Sep 22, 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