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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oapi_gen-0.1.9.tar.gz (94.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oapi_gen-0.1.9-py3-none-any.whl (49.0 kB view details)

Uploaded Python 3

File details

Details for the file oapi_gen-0.1.9.tar.gz.

File metadata

  • Download URL: oapi_gen-0.1.9.tar.gz
  • Upload date:
  • Size: 94.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for oapi_gen-0.1.9.tar.gz
Algorithm Hash digest
SHA256 28de40d33e59e7c6d99d4c98e0a08ab5a80e977472c6cc7d0195f4f0c24a2533
MD5 4b6f03cf7c0c2e2c6f73940704ec1531
BLAKE2b-256 5fb41c3184bb962a6e75569bcf76c3c3ca45862f956cc3e1958e6017e89cfe18

See more details on using hashes here.

Provenance

The following attestation bundles were made for oapi_gen-0.1.9.tar.gz:

Publisher: release.yml on mishamyrt/oapi-gen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file oapi_gen-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: oapi_gen-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 49.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for oapi_gen-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 133e1424210b50f17b66bb1205c8bebf4262250b41cdc85a95cf420a107c9bcb
MD5 b11ebbc9994c70c3aed7560584490bc7
BLAKE2b-256 2a926790b0843df2d97fcfe97dda8845a32a0541d0247bee8d1a543dcd285350

See more details on using hashes here.

Provenance

The following attestation bundles were made for oapi_gen-0.1.9-py3-none-any.whl:

Publisher: release.yml on mishamyrt/oapi-gen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

1 file

0.1.0

2 files

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