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-httpx

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-httpx

Usage

metaengine-openapi-httpx <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-httpx ./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_httpx-1.0.0-py3-none-win_amd64.whl (30.5 MB view details)

Uploaded Python 3Windows x86-64

metaengine_openapi_httpx-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_httpx-1.0.0-py3-none-manylinux_2_28_aarch64.whl (28.9 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

metaengine_openapi_httpx-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_httpx-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_httpx-1.0.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for metaengine_openapi_httpx-1.0.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 92ee1aba50f7120aa8d9fa50a6af4e4654582f0a12270e4b6e10302f833579a1
MD5 191de1d2cbd39634f77e3825e892b633
BLAKE2b-256 b7bf94820855ce97aa923aa1b4567c02985e7fce6545abff8afb3d6d163df3f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for metaengine_openapi_httpx-1.0.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1eba697c2b10611788e27486792fb762b5d14d3af62d5c0b204e8407816e6bb1
MD5 f9ad36d5923a1f5b9ca39452d28987ac
BLAKE2b-256 32110a04cdf7875b9b2752eb8d91eb5f4d0e4ae293603475c4d4e99814c8d3a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for metaengine_openapi_httpx-1.0.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d8f88fd3869d4b2f334796acd851426f267b51e7851ddfeba647290400ce2a4f
MD5 980faf0fb7f9000083536bd5f64e7c01
BLAKE2b-256 836eddaef4170b7798f709291eb3ebafd2febd9e97812c511c0e5f0e26aa1ef8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for metaengine_openapi_httpx-1.0.0-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 66d7bfec7b24d60dd5be2ff8561f786d822cc099761f4a4226f8ddcce17d4352
MD5 ae23dd8eac875315e06a52d83914b901
BLAKE2b-256 873d329930568a592a06dcf5e317fa3bc46df0d79f3a6d4da7d08e50ec5b2a74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for metaengine_openapi_httpx-1.0.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a18a8082c5a76fe1d2de4a398c8e25ac046522f7df32bb3b50f6a798f2eefafb
MD5 e783c687e06a711d829225b18d8c1bf6
BLAKE2b-256 460e60ab050551338a103837e55eaf50bc8f8422964439f9d3fc19c036ee006c

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