metaengine-graphql-httpx
Generate idiomatic Python clients and models from a GraphQL schema (SDL) —
Pydantic v2 models and an async httpx client, with bearer/basic auth, retries,
timeouts, error handling, custom headers, fragments, @oneOf inputs, and optional docstrings.
Powered by MetaEngine. The wheel is self-contained: it bundles a platform-native runner, so no .NET installation is required.
Install
pip install metaengine-graphql-httpx
Usage
metaengine-graphql-httpx <input> <output> [options]
| Argument / Option | Description |
|---|---|
input |
GraphQL schema file path (SDL) or inline SDL content |
output |
Output directory for generated Python files |
--fragments |
Emit reusable named fragments for object-type selections |
--one-of-inputs |
Generate idiomatic @oneOf input types (tagged-union inputs) |
--custom-scalar <Scalar>=<target> |
Map a GraphQL custom scalar to a Python type (repeatable). Targets: str, int, float, bool, datetime, Any |
--bearer-auth <ENV> |
Bearer token from env var (e.g. API_TOKEN) |
--basic-auth <USER_ENV>=<PASS_ENV> |
Basic auth from env vars |
--retries <n> |
Enable retries with exponential backoff; value sets max attempts |
--timeout <s> |
Request timeout in seconds for all operations |
--error-handling |
Smart error handling based on HTTP status semantics |
--custom-header <Header>=<ENV> |
Static header from env var (repeatable) |
--base-url-env <ENV> |
Environment variable name for base URL (default: API_BASE_URL) |
--sync-methods |
Generate synchronous service methods alongside the async client |
--middleware |
Generate httpx transport middleware infrastructure |
--documentation |
Generate docstring comments from SDL descriptions |
--camel-case-aliases |
Generate camelCase field aliases for Pydantic models |
--options-threshold <n> |
Parameter count at which a method switches to an options object (default: 4) |
--service-suffix <name> |
Service naming suffix (default: Service) |
--verbose |
Enable verbose logging |
Example
metaengine-graphql-httpx ./schema.graphql ./generated --fragments --documentation --retries 3
Supported platforms
Pre-built wheels are published for Linux (x86_64, aarch64), macOS (Apple Silicon + Intel), and Windows (x64).
License
MIT
Metadata
Release files for metaengine-graphql-httpx 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| metaengine_graphql_httpx-1.0.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for metaengine_graphql_httpx-1.0.0-py3-none-win_amd64.whl |
| metaengine_graphql_httpx-1.0.0-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details for metaengine_graphql_httpx-1.0.0-py3-none-manylinux_2_28_x86_64.whl |
| metaengine_graphql_httpx-1.0.0-py3-none-manylinux_2_28_aarch64.whl | Python 3 | none | Linux glibc 2.28+ ARM64 | Details for metaengine_graphql_httpx-1.0.0-py3-none-manylinux_2_28_aarch64.whl |
| metaengine_graphql_httpx-1.0.0-py3-none-macosx_11_0_x86_64.whl | Python 3 | none | macOS 11.0+ x86-64 | Details for metaengine_graphql_httpx-1.0.0-py3-none-macosx_11_0_x86_64.whl |
| metaengine_graphql_httpx-1.0.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for metaengine_graphql_httpx-1.0.0-py3-none-macosx_11_0_arm64.whl |
Total release size: 147.2 MB
Release files / metaengine_graphql_httpx-1.0.0-py3-none-win_amd64.whl
| Download URL | metaengine_graphql_httpx-1.0.0-py3-none-win_amd64.whl |
|---|---|
| Size | 30.1 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7f302e313e8ba7c795b16b709c49045fbb243e18d1763f99c8b4e3e96a913659
|
|
BLAKE2b-256 checksum How to use checksums |
5f5c451a995ebf89c64ce90ebe0929fe1fcf433dbbe0857f94ae4ca4df204334
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / metaengine_graphql_httpx-1.0.0-py3-none-manylinux_2_28_x86_64.whl
| Download URL | metaengine_graphql_httpx-1.0.0-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 29.7 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
bc054e50854407832c6b755f8ff1e19ed7624e6b879ff02119b7b91c1838e08c
|
|
BLAKE2b-256 checksum How to use checksums |
2b765c95ca5de2432115f15c2ac6bf71dd905cc47b193bdb826b0f6e7f764e53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / metaengine_graphql_httpx-1.0.0-py3-none-manylinux_2_28_aarch64.whl
| Download URL | metaengine_graphql_httpx-1.0.0-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 28.5 MB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
73c84432d222f26c8507e1f5fa10b1fc8856e2d93f32ca618b883457cace040a
|
|
BLAKE2b-256 checksum How to use checksums |
14b84fe419b4db561d5ed93746ca3aaf7cb447a877d4ab520a9e3d96b0a366cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / metaengine_graphql_httpx-1.0.0-py3-none-macosx_11_0_x86_64.whl
| Download URL | metaengine_graphql_httpx-1.0.0-py3-none-macosx_11_0_x86_64.whl |
|---|---|
| Size | 30.1 MB |
| Tags | Python 3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
721c77a5636825597d8bead2e9e5c2761848983d0ecca1408866c631a6cb73a8
|
|
BLAKE2b-256 checksum How to use checksums |
9f5fb66ace950243851863822b9086eaef22a7187d880cc5706d0fb21bd9e4b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / metaengine_graphql_httpx-1.0.0-py3-none-macosx_11_0_arm64.whl
| Download URL | metaengine_graphql_httpx-1.0.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 28.7 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
76b8af42018e3f21426faec643771945a4ed6d16fa06e38e5ecab1ae58fac5f1
|
|
BLAKE2b-256 checksum How to use checksums |
2f3739d9cf8db17886cc8f4357b0658174e4fdbaac40c1e6e978defd643318b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for metaengine-graphql-httpx 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.