Metadata-Version: 2.4
Name: oapi-gen
Version: 0.1.9
Summary: Strict OpenAPI-first server contract generator for Starlette and msgspec
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: black==26.5.1
Requires-Dist: datamodel-code-generator==0.76.2
Requires-Dist: isort==8.0.1
Requires-Dist: msgspec==0.21.1
Requires-Dist: starlette==1.6.0
Requires-Dist: PyYAML==6.0.3

# 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.

```bash
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](https://github.com/mishamyrt/oapi-gen#readme)
for supported OpenAPI features, development and releases.

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