Skip to main content

Generate idiomatic Python (Pydantic v2 + httpx) clients and models from OpenAPI specifications. Self-contained — no .NET install required.

Project description

metaengine-openapi-fastapi

Generate idiomatic Python clients and models from an OpenAPI specification — Pydantic v2 models and an async httpx client, with optional docstrings, validation, and camelCase field aliases.

Powered by MetaEngine. The wheel is self-contained: it bundles a platform-native runner, so no .NET installation is required.

Install

pip install metaengine-openapi-fastapi

Usage

metaengine-openapi-fastapi <input> <output> [options]
Argument / Option Description
input OpenAPI specification file path or URL
output Output directory for generated Python files
--include-tags <tags> Only generate operations with these tags (comma-separated)
--service-suffix <name> Service naming suffix (default: Service)
--options-threshold <n> Parameter count at which a method switches to an options object (default: 4)
--camel-case-aliases Generate camelCase field aliases for Pydantic models
--documentation Generate docstring comments
--strict-validation Enable strict OpenAPI validation
--verbose Enable verbose logging

Example

metaengine-openapi-fastapi ./petstore.json ./generated --camel-case-aliases --documentation

Supported platforms

Pre-built wheels are published for Linux (x86_64, aarch64), macOS (Apple Silicon + Intel), and Windows (x64).

License

MIT

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

metaengine_openapi_fastapi-1.0.0-py3-none-win_amd64.whl (30.5 MB view details)

Uploaded Python 3Windows x86-64

metaengine_openapi_fastapi-1.0.0-py3-none-manylinux_2_28_x86_64.whl (30.1 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

metaengine_openapi_fastapi-1.0.0-py3-none-manylinux_2_28_aarch64.whl (28.9 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

metaengine_openapi_fastapi-1.0.0-py3-none-macosx_11_0_x86_64.whl (30.5 MB view details)

Uploaded Python 3macOS 11.0+ x86-64

metaengine_openapi_fastapi-1.0.0-py3-none-macosx_11_0_arm64.whl (29.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file metaengine_openapi_fastapi-1.0.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for metaengine_openapi_fastapi-1.0.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 161e03daec0248a771bb02a2f879205e4e9d8fc1243da538065508efeac5db99
MD5 9f1f69b437713154f89bb01ec6a69ade
BLAKE2b-256 c294bb62b976475303f66f7b135706ede19788035870f14e1dade9cb909e80d2

See more details on using hashes here.

File details

Details for the file metaengine_openapi_fastapi-1.0.0-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for metaengine_openapi_fastapi-1.0.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a454f4b3063efe84239440174dac3755d0cfdd9e195c4eac35c3fec32bb736f1
MD5 f5d55b67f2ec15b638e66051906e15f2
BLAKE2b-256 2e82a401369c13e57315e5c2b8f6700c6907a30addd5ee5249e536535f02f3ec

See more details on using hashes here.

File details

Details for the file metaengine_openapi_fastapi-1.0.0-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for metaengine_openapi_fastapi-1.0.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3380ba72dfc908a055a3d21bf26fb3ff001d5586f38f6edef0b52cdda7c9a9fc
MD5 639948dafad8b2775615382b7c40eeb1
BLAKE2b-256 9ca3b39b87c3101cc59dff6c1e812c6b9803fd8412c084b26c9845827d3a7e6f

See more details on using hashes here.

File details

Details for the file metaengine_openapi_fastapi-1.0.0-py3-none-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for metaengine_openapi_fastapi-1.0.0-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 f1ee9a378e68a5343d5c53554375cf4a0b66b2b4627bc47839e6e32bb8698395
MD5 87eade5074d22cca21bb5d7ab4ef0fbb
BLAKE2b-256 84a6bfc3398ac3353f223bc9095e9acccdbdbed7f412f865ff100d97fbb5dd38

See more details on using hashes here.

File details

Details for the file metaengine_openapi_fastapi-1.0.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for metaengine_openapi_fastapi-1.0.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e847382874d19afafc7f064fa50e801ddcd0ef495f0d97c281b293f7de80cb1e
MD5 389152db2e14333bbce484c11babc6a6
BLAKE2b-256 4deea777abc4541b841b7e8ddf748c35692c754c1792487006ba201867e16878

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page