Skip to main content

Generate native, self-contained Python SDKs and CLIs from OpenAPI specs.

Project description

Phantasos

CI Docs License: Apache-2.0

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phantasos-0.1.0a1.tar.gz (74.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phantasos-0.1.0a1-py3-none-any.whl (101.3 kB view details)

Uploaded Python 3

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

Hashes for phantasos-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 8f1b37f3493b2f12d223256c32f36e7154cde529a5d716ac563094fa33f678f7
MD5 1cb10f6747980e8ff51896f1e8744f4e
BLAKE2b-256 da901231a9f3e4ad81240eae0b8ec69d3e36fd33f060253c6985ea8d194cddbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for phantasos-0.1.0a1.tar.gz:

Publisher: release.yml on kaisero/phantasos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for phantasos-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a9df5f9177bef0899d8539e6aad44cb3f53026971e21b49108e91783a91ce0f
MD5 96da2827a82a52367449069cbf4ce776
BLAKE2b-256 7897cd881031da341edfec91e3d70f11e5d33908b61deb36652afc7bf1d28906

See more details on using hashes here.

Provenance

The following attestation bundles were made for phantasos-0.1.0a1-py3-none-any.whl:

Publisher: release.yml on kaisero/phantasos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page