Skip to main content

Run self-contained uv Python scripts as callable, schema-documented 'superpowers'.

Project description

supypowers

Run self-contained Python scripts (with uv script dependencies) as callable, schema-documented functions.

Install

pip install supypowers

Note: the CLI expects uv to be installed on your machine (it shells out to uv run).

Release to PyPI (recommended: GitHub Actions)

  • Create a PyPI project using Trusted Publishing for your GitHub repo.
  • Tag a release:
git tag v0.1.0
git push --tags

The workflow in .github/workflows/publish.yml will build and publish dist/* to PyPI.

Run (no venv)

From this repo root:

uv run supypowers examples docs
uv run supypowers examples run exponents:compute_sqrt \"{'x': 9}\" --secrets .env --secrets API_KEY=abc

From anywhere:

uv run --project /Users/andre/ergodic/superpowers supypowers examples docs

Install supypowers on your PATH (so you can run supypowers ...)

Use uv tool install:

cd /Users/andre/ergodic/superpowers
uv tool install --editable .
uv tool update-shell

Then open a new shell (or reload your shell config) and run:

supypowers examples docs
supypowers examples run exponents:compute_sqrt \"{'x': 9}\"

Example scripts

See examples/ (uses uv script metadata + Pydantic models).

Notes

  • The CLI executes target scripts only via uv run <script.py> ... (no imports into the CLI process).

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

supypowers-0.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

supypowers-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file supypowers-0.1.0.tar.gz.

File metadata

  • Download URL: supypowers-0.1.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for supypowers-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2a2da9d1fbd97e87bec0bda001e0fbbd9f4c1034c4ef054b2c8a97b570e2d63a
MD5 efedaa818441b126857316fa87af72f8
BLAKE2b-256 88b858e3a9d3f47779dcac249d9887ee774d4254c849e265405823f0024e3d54

See more details on using hashes here.

File details

Details for the file supypowers-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: supypowers-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for supypowers-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 243f522da672f09c29de494d5c8c71e4a0233a931d8bbb6203b8d446a1621931
MD5 0e9b616a227bd5e8c423c817217cacdc
BLAKE2b-256 f45a35d1acbd2e65d406bbf3b42ef3c023bee46e66730f782df6b0fb0a346c2b

See more details on using hashes here.

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