metaengine-openapi-httpx 1.0.0__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ """Generate idiomatic Python (Pydantic v2 + httpx) clients and models from OpenAPI specs."""
2
+
3
+ from .cli import main
4
+
5
+ __all__ = ["main"]
@@ -0,0 +1,8 @@
1
+ """``python -m metaengine_openapi_httpx`` entry point."""
2
+
3
+ import sys
4
+
5
+ from .cli import main
6
+
7
+ if __name__ == "__main__":
8
+ sys.exit(main())
@@ -0,0 +1,32 @@
1
+ """Locate the bundled self-contained MetaEngine runner and exec it.
2
+
3
+ Each platform wheel ships exactly one runner binary under ``_bin/`` for that platform,
4
+ so there is no extraction or platform-selection logic here — we just run it and forward
5
+ the command-line arguments through.
6
+ """
7
+
8
+ import os
9
+ import subprocess
10
+ import sys
11
+ from pathlib import Path
12
+
13
+ _BIN_DIR = Path(__file__).resolve().parent / "_bin"
14
+ _EXE_NAME = "metaengine-openapi-httpx.exe" if os.name == "nt" else "metaengine-openapi-httpx"
15
+
16
+
17
+ def _runner_path() -> Path:
18
+ runner = _BIN_DIR / _EXE_NAME
19
+ if not runner.exists():
20
+ sys.stderr.write(
21
+ f"error: bundled MetaEngine runner not found at {runner}\n"
22
+ "This wheel may have been installed for a different platform.\n"
23
+ )
24
+ raise SystemExit(1)
25
+ # Wheels do not reliably preserve the unix executable bit across pip install.
26
+ if os.name != "nt" and not os.access(runner, os.X_OK):
27
+ os.chmod(runner, 0o755)
28
+ return runner
29
+
30
+
31
+ def main() -> int:
32
+ return subprocess.run([str(_runner_path()), *sys.argv[1:]]).returncode
@@ -0,0 +1,69 @@
1
+ Metadata-Version: 2.4
2
+ Name: metaengine-openapi-httpx
3
+ Version: 1.0.0
4
+ Summary: Generate idiomatic Python (Pydantic v2 + httpx) clients and models from OpenAPI specifications. Self-contained — no .NET install required.
5
+ Author: José A. Saldaña Pérez
6
+ License: MIT
7
+ Project-URL: Homepage, https://metaengine.eu
8
+ Project-URL: Repository, https://github.com/meta-engine/openapi-httpx
9
+ Project-URL: Issues, https://github.com/meta-engine/openapi-httpx/issues
10
+ Project-URL: Changelog, https://github.com/meta-engine/openapi-httpx/blob/main/CHANGELOG.md
11
+ Keywords: openapi,swagger,codegen,code-generator,openapi-generator,pydantic,httpx,client,api,metaengine
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Topic :: Software Development :: Code Generators
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Dynamic: license-file
22
+
23
+ # metaengine-openapi-httpx
24
+
25
+ Generate idiomatic **Python** clients and models from an **OpenAPI** specification —
26
+ Pydantic v2 models and an async `httpx` client, with optional docstrings, validation,
27
+ and camelCase field aliases.
28
+
29
+ Powered by [MetaEngine](https://metaengine.eu). The wheel is **self-contained**: it bundles
30
+ a platform-native runner, so **no .NET installation is required**.
31
+
32
+ ## Install
33
+
34
+ ```bash
35
+ pip install metaengine-openapi-httpx
36
+ ```
37
+
38
+ ## Usage
39
+
40
+ ```bash
41
+ metaengine-openapi-httpx <input> <output> [options]
42
+ ```
43
+
44
+ | Argument / Option | Description |
45
+ |---|---|
46
+ | `input` | OpenAPI specification file path or URL |
47
+ | `output` | Output directory for generated Python files |
48
+ | `--include-tags <tags>` | Only generate operations with these tags (comma-separated) |
49
+ | `--service-suffix <name>` | Service naming suffix (default: `Service`) |
50
+ | `--options-threshold <n>` | Parameter count at which a method switches to an options object (default: `4`) |
51
+ | `--camel-case-aliases` | Generate camelCase field aliases for Pydantic models |
52
+ | `--documentation` | Generate docstring comments |
53
+ | `--strict-validation` | Enable strict OpenAPI validation |
54
+ | `--verbose` | Enable verbose logging |
55
+
56
+ ### Example
57
+
58
+ ```bash
59
+ metaengine-openapi-httpx ./petstore.json ./generated --camel-case-aliases --documentation
60
+ ```
61
+
62
+ ## Supported platforms
63
+
64
+ Pre-built wheels are published for Linux (x86_64, aarch64), macOS (Apple Silicon + Intel),
65
+ and Windows (x64).
66
+
67
+ ## License
68
+
69
+ MIT
@@ -0,0 +1,10 @@
1
+ metaengine_openapi_httpx/__init__.py,sha256=9S7prffHS4KWQyRBRi_NBjisYMb615UpMh1RAIOr26w,136
2
+ metaengine_openapi_httpx/__main__.py,sha256=iRb6yOJc84eiKDZW4WpzM1HzdPXuo4hifVSvu_8KIaU,142
3
+ metaengine_openapi_httpx/cli.py,sha256=VvFqwxgLDroL74SpMZRpBsqV5vR5jKjaWovK61puKAk,1090
4
+ metaengine_openapi_httpx/_bin/metaengine-openapi-httpx.exe,sha256=zSGHPkfbyzBnDxHUi8rvOJ4W38CV-w1o1Jx79QvL1ac,69975690
5
+ metaengine_openapi_httpx-1.0.0.dist-info/licenses/LICENSE,sha256=UqQMultccsK7ITJxkFgo8lLoo01lXA5z0SXwQoA9k98,1081
6
+ metaengine_openapi_httpx-1.0.0.dist-info/METADATA,sha256=U75xse7cjBNqJtOFpDfPtxfpMRQcvySljAyIWPPUhpc,2515
7
+ metaengine_openapi_httpx-1.0.0.dist-info/WHEEL,sha256=QR8DNjG6Lr6bNErJWJgF4dP2dJ2N7NpY-BWly1OvcTM,97
8
+ metaengine_openapi_httpx-1.0.0.dist-info/entry_points.txt,sha256=J8gI4vipIRiZpPaCC5VEKJ7LcmPUjBFVI-4Atp8W1Ls,79
9
+ metaengine_openapi_httpx-1.0.0.dist-info/top_level.txt,sha256=O1_BPPgcIqFybEyHJWLEC_OBF-qfNFKi97Tja_EEoW0,25
10
+ metaengine_openapi_httpx-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-win_amd64
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ metaengine-openapi-httpx = metaengine_openapi_httpx.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 José A. Saldaña Pérez
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ metaengine_openapi_httpx