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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28de40d33e59e7c6d99d4c98e0a08ab5a80e977472c6cc7d0195f4f0c24a2533
|
|
| MD5 |
4b6f03cf7c0c2e2c6f73940704ec1531
|
|
| BLAKE2b-256 |
5fb41c3184bb962a6e75569bcf76c3c3ca45862f956cc3e1958e6017e89cfe18
|
Provenance
The following attestation bundles were made for oapi_gen-0.1.9.tar.gz:
Publisher:
release.yml on mishamyrt/oapi-gen
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oapi_gen-0.1.9.tar.gz -
Subject digest:
28de40d33e59e7c6d99d4c98e0a08ab5a80e977472c6cc7d0195f4f0c24a2533 - Sigstore transparency entry: 2820691000
- Sigstore integration time:
-
Permalink:
mishamyrt/oapi-gen@1bc8a1e6fd2a0c4ef0c87f266dd09c78da546574 -
Branch / Tag:
refs/tags/v0.1.9 - Owner: https://github.com/mishamyrt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1bc8a1e6fd2a0c4ef0c87f266dd09c78da546574 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
133e1424210b50f17b66bb1205c8bebf4262250b41cdc85a95cf420a107c9bcb
|
|
| MD5 |
b11ebbc9994c70c3aed7560584490bc7
|
|
| BLAKE2b-256 |
2a926790b0843df2d97fcfe97dda8845a32a0541d0247bee8d1a543dcd285350
|
Provenance
The following attestation bundles were made for oapi_gen-0.1.9-py3-none-any.whl:
Publisher:
release.yml on mishamyrt/oapi-gen
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oapi_gen-0.1.9-py3-none-any.whl -
Subject digest:
133e1424210b50f17b66bb1205c8bebf4262250b41cdc85a95cf420a107c9bcb - Sigstore transparency entry: 2820675764
- Sigstore integration time:
-
Permalink:
mishamyrt/oapi-gen@1bc8a1e6fd2a0c4ef0c87f266dd09c78da546574 -
Branch / Tag:
refs/tags/v0.1.9 - Owner: https://github.com/mishamyrt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1bc8a1e6fd2a0c4ef0c87f266dd09c78da546574 -
Trigger Event:
push
-
Statement type: