metaengine-protobuf-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) gRPC-Connect clients and models from Protobuf."""
2
+
3
+ from .cli import main
4
+
5
+ __all__ = ["main"]
@@ -0,0 +1,8 @@
1
+ """``python -m metaengine_protobuf_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-protobuf-httpx.exe" if os.name == "nt" else "metaengine-protobuf-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,65 @@
1
+ Metadata-Version: 2.4
2
+ Name: metaengine-protobuf-httpx
3
+ Version: 1.0.0
4
+ Summary: Generate idiomatic Python (Pydantic v2 + httpx) gRPC-Connect clients and models from Protocol Buffers definitions. 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/protobuf-httpx
9
+ Project-URL: Issues, https://github.com/meta-engine/protobuf-httpx/issues
10
+ Project-URL: Changelog, https://github.com/meta-engine/protobuf-httpx/blob/main/CHANGELOG.md
11
+ Keywords: protobuf,protocol-buffers,grpc,connect,codegen,code-generator,protobuf-codegen,pydantic,httpx,client,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-protobuf-httpx
24
+
25
+ Generate idiomatic **Python** clients and models from **Protocol Buffers** definitions —
26
+ Pydantic v2 models and an async `httpx` client speaking the gRPC-Connect protocol, with
27
+ optional docstrings and `@dataclass` models.
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-protobuf-httpx
36
+ ```
37
+
38
+ ## Usage
39
+
40
+ ```bash
41
+ metaengine-protobuf-httpx <input> <output> [options]
42
+ ```
43
+
44
+ | Argument / Option | Description |
45
+ |---|---|
46
+ | `input` | Protobuf `.proto` file path (or inline `.proto` content) |
47
+ | `output` | Output directory for generated Python files |
48
+ | `--documentation` | Generate docstring comments |
49
+ | `--dataclass` | Generate `@dataclass` models instead of Pydantic v2 models |
50
+ | `--verbose` | Enable verbose logging |
51
+
52
+ ### Example
53
+
54
+ ```bash
55
+ metaengine-protobuf-httpx ./service.proto ./generated --documentation
56
+ ```
57
+
58
+ ## Supported platforms
59
+
60
+ Pre-built wheels are published for Linux (x86_64, aarch64), macOS (Apple Silicon + Intel),
61
+ and Windows (x64).
62
+
63
+ ## License
64
+
65
+ MIT
@@ -0,0 +1,10 @@
1
+ metaengine_protobuf_httpx/__init__.py,sha256=9tG8AQ_Rcs1uBa_qggLO0htbJCf02iR7KRvDEjsub7o,144
2
+ metaengine_protobuf_httpx/__main__.py,sha256=Uu-YYGbKw1M4JGUyayUPEOCpN64driQgMfB5a56SUsE,143
3
+ metaengine_protobuf_httpx/cli.py,sha256=3vnOjoWmZkLHp2kv_EgbzRS3NXSFMXf18ZuZ76wHlC8,1092
4
+ metaengine_protobuf_httpx/_bin/metaengine-protobuf-httpx.exe,sha256=B3-nwBxNK0Y7eLpeGPSMq1im0e7xbfYg6oKEQZwmZXc,70352587
5
+ metaengine_protobuf_httpx-1.0.0.dist-info/licenses/LICENSE,sha256=UqQMultccsK7ITJxkFgo8lLoo01lXA5z0SXwQoA9k98,1081
6
+ metaengine_protobuf_httpx-1.0.0.dist-info/METADATA,sha256=YQOyEEy4qKplJyYZYp9f1ftAcjd9fcpxewXbOx3-a1A,2240
7
+ metaengine_protobuf_httpx-1.0.0.dist-info/WHEEL,sha256=QR8DNjG6Lr6bNErJWJgF4dP2dJ2N7NpY-BWly1OvcTM,97
8
+ metaengine_protobuf_httpx-1.0.0.dist-info/entry_points.txt,sha256=LoIuiVFkaymMG8gLNIud3rWksuX49AAQFhyr3epQ7iE,81
9
+ metaengine_protobuf_httpx-1.0.0.dist-info/top_level.txt,sha256=Fq_UBeEhJ2b8e7enUNZCSvdXqREKJKy74gJOKlP9A3k,26
10
+ metaengine_protobuf_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-protobuf-httpx = metaengine_protobuf_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_protobuf_httpx