Generate native, self-contained Python SDKs and CLIs from OpenAPI specs.
Project description
Phantasos
Phantasos generates Python SDKs and command-line tools from OpenAPI specs for Palo Alto Networks products
You describe an API in a small products/<name>/ folder. The OpenAPI spec plus a short sdk.yml.
Phantasos runs OpenAPI Generator and adds what the raw generator leaves out:
- Spec cleanup,
- Fixes for known codegen bugs
- Ready-made auth
- Pagination
- Error handling
- Project Scaffold (tests, CI, docs)
From the built SDK you then generate a matching command-line interface. Each result is a
standalone project that depends only on httpx, urllib3 and pydantic.
Quick start
git clone https://github.com/kaisero/phantasos && cd phantasos
pip install -e .
# generate an SDK from products/prisma-browser
phantasos sdk build prisma-browser
# generate a CLI from the built SDK
phantasos cli build prisma-browser
No Java setup needed: the first build downloads OpenAPI Generator and a pinned
JRE once into ~/.cache/phantasos.
Documentation
Guides, Configuration reference and architecture live at kaisero.github.io/phantasos.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phantasos-0.1.0a1.tar.gz.
File metadata
- Download URL: phantasos-0.1.0a1.tar.gz
- Upload date:
- Size: 74.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f1b37f3493b2f12d223256c32f36e7154cde529a5d716ac563094fa33f678f7
|
|
| MD5 |
1cb10f6747980e8ff51896f1e8744f4e
|
|
| BLAKE2b-256 |
da901231a9f3e4ad81240eae0b8ec69d3e36fd33f060253c6985ea8d194cddbe
|
Provenance
The following attestation bundles were made for phantasos-0.1.0a1.tar.gz:
Publisher:
release.yml on kaisero/phantasos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phantasos-0.1.0a1.tar.gz -
Subject digest:
8f1b37f3493b2f12d223256c32f36e7154cde529a5d716ac563094fa33f678f7 - Sigstore transparency entry: 1809516687
- Sigstore integration time:
-
Permalink:
kaisero/phantasos@c8225ac689b274f0a582668528a57f515b779663 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kaisero
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c8225ac689b274f0a582668528a57f515b779663 -
Trigger Event:
push
-
Statement type:
File details
Details for the file phantasos-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: phantasos-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 101.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a9df5f9177bef0899d8539e6aad44cb3f53026971e21b49108e91783a91ce0f
|
|
| MD5 |
96da2827a82a52367449069cbf4ce776
|
|
| BLAKE2b-256 |
7897cd881031da341edfec91e3d70f11e5d33908b61deb36652afc7bf1d28906
|
Provenance
The following attestation bundles were made for phantasos-0.1.0a1-py3-none-any.whl:
Publisher:
release.yml on kaisero/phantasos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phantasos-0.1.0a1-py3-none-any.whl -
Subject digest:
5a9df5f9177bef0899d8539e6aad44cb3f53026971e21b49108e91783a91ce0f - Sigstore transparency entry: 1809516716
- Sigstore integration time:
-
Permalink:
kaisero/phantasos@c8225ac689b274f0a582668528a57f515b779663 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kaisero
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c8225ac689b274f0a582668528a57f515b779663 -
Trigger Event:
push
-
Statement type: