poolster 0.5.0a1__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.
- poolster-0.5.0a1.data/purelib/poolster/__init__.py +46 -0
- poolster-0.5.0a1.data/purelib/poolster/bin/poolster-openapi.exe +0 -0
- poolster-0.5.0a1.data/purelib/poolster/bin/poolster.exe +4 -0
- poolster-0.5.0a1.dist-info/METADATA +50 -0
- poolster-0.5.0a1.dist-info/RECORD +8 -0
- poolster-0.5.0a1.dist-info/WHEEL +5 -0
- poolster-0.5.0a1.dist-info/entry_points.txt +2 -0
- poolster-0.5.0a1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Console launcher for Poolster's packaged native generator."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
import subprocess
|
|
7
|
+
import sys
|
|
8
|
+
from importlib.resources import files
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
from typing import Sequence
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def executable_path() -> Path:
|
|
14
|
+
"""Return the packaged generator executable for this installation."""
|
|
15
|
+
|
|
16
|
+
override = os.environ.get("POOLSTER_BINARY")
|
|
17
|
+
if override:
|
|
18
|
+
return Path(override).expanduser().resolve()
|
|
19
|
+
name = "poolster.exe" if os.name == "nt" else "poolster"
|
|
20
|
+
executable = Path(str(files("poolster").joinpath("bin", name)))
|
|
21
|
+
if not executable.is_file():
|
|
22
|
+
raise RuntimeError(
|
|
23
|
+
f"the bundled Poolster executable is missing: {executable}. "
|
|
24
|
+
"Reinstall poolster."
|
|
25
|
+
)
|
|
26
|
+
return executable
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def run(arguments: Sequence[str]) -> int:
|
|
30
|
+
"""Launch Poolster, preserving signals and exit status on every platform."""
|
|
31
|
+
|
|
32
|
+
executable = executable_path()
|
|
33
|
+
command = [str(executable), *arguments]
|
|
34
|
+
if os.name != "nt":
|
|
35
|
+
os.execv(str(executable), command)
|
|
36
|
+
raise AssertionError("os.execv unexpectedly returned")
|
|
37
|
+
return subprocess.run(command, check=False).returncode
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def main() -> None:
|
|
41
|
+
try:
|
|
42
|
+
code = run(sys.argv[1:])
|
|
43
|
+
except (OSError, RuntimeError) as error:
|
|
44
|
+
print(f"poolster: {error}", file=sys.stderr)
|
|
45
|
+
code = 1
|
|
46
|
+
raise SystemExit(code)
|
|
Binary file
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: poolster
|
|
3
|
+
Version: 0.5.0a1
|
|
4
|
+
Summary: Native Poolster OpenAPI SDK generator for Python environments
|
|
5
|
+
Home-page: https://github.com/rlvtapp/poolster
|
|
6
|
+
Author: Relevate
|
|
7
|
+
License: MIT
|
|
8
|
+
Project-URL: Documentation, https://github.com/rlvtapp/poolster/tree/main/docs
|
|
9
|
+
Project-URL: Source, https://github.com/rlvtapp/poolster
|
|
10
|
+
Project-URL: Issues, https://github.com/rlvtapp/poolster/issues
|
|
11
|
+
Keywords: openapi swagger sdk codegen generator
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: MacOS
|
|
16
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Topic :: Software Development :: Code Generators
|
|
21
|
+
Requires-Python: >=3.9
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
Dynamic: author
|
|
24
|
+
Dynamic: classifier
|
|
25
|
+
Dynamic: description
|
|
26
|
+
Dynamic: description-content-type
|
|
27
|
+
Dynamic: home-page
|
|
28
|
+
Dynamic: keywords
|
|
29
|
+
Dynamic: license
|
|
30
|
+
Dynamic: project-url
|
|
31
|
+
Dynamic: requires-python
|
|
32
|
+
Dynamic: summary
|
|
33
|
+
|
|
34
|
+
# poolster
|
|
35
|
+
|
|
36
|
+
`poolster` installs Poolster's native OpenAPI SDK generator through pip. It exposes
|
|
37
|
+
the same `poolster` command as the npm package, and includes the Rust generator plus
|
|
38
|
+
its adjacent Go OpenAPI compiler. Installing it does not require Node.js, Rust,
|
|
39
|
+
or Go and never downloads an executable at runtime.
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
python -m pip install poolster
|
|
43
|
+
poolster init --input ./openapi.yaml --output ./generated
|
|
44
|
+
poolster generate
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The package currently publishes wheels for macOS ARM64 and Intel, Linux x64 with
|
|
48
|
+
glibc 2.35 or later, and Windows x64. Alpine/musl and Linux ARM64 are not yet
|
|
49
|
+
packaged. See the [CLI guide](../../docs/cli.md)
|
|
50
|
+
for recipes, supported generation targets, and source-build instructions.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
poolster-0.5.0a1.data/purelib/poolster/__init__.py,sha256=9QOjPdr37ORE1TUELAaAm8gaaDfmz6C5Vc36K4fTjQ4,1435
|
|
2
|
+
poolster-0.5.0a1.data/purelib/poolster/bin/poolster-openapi.exe,sha256=Dsczq-Mnfs5w4LL65W_QhL8GG9MQItaiQFtumUUVeLc,13633024
|
|
3
|
+
poolster-0.5.0a1.data/purelib/poolster/bin/poolster.exe,sha256=l4xzLdrFp5LfYQG_cgfr1nNPIHgW5Zncx-JhqYWECwA,36821504
|
|
4
|
+
poolster-0.5.0a1.dist-info/METADATA,sha256=B5mjWKlvtRzBhPEUKDLZ5idSn_Q_Fdt8k64srGgyJ4k,1918
|
|
5
|
+
poolster-0.5.0a1.dist-info/WHEEL,sha256=Zx98gwb_dQKckJK3HEOVKnxxD52EfU_PXDG_usMJ2ng,98
|
|
6
|
+
poolster-0.5.0a1.dist-info/entry_points.txt,sha256=bV83h3j7EB_jTsGdzRxUtkw9Su9mysk0pEDuzU95vCk,43
|
|
7
|
+
poolster-0.5.0a1.dist-info/top_level.txt,sha256=qrjCtObTH3OrTYXvOlfnnqkNx72Rs-MDZCbaXyVLtZI,9
|
|
8
|
+
poolster-0.5.0a1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
poolster
|