Skip to main content

A CLI tool to run scripts from pyproject.toml

Project description

ppp-run

ppp is a simple script/alias runner for Python - akin to npm run in javascript world.

Installation

uv add --dev ppp-run

Usage

CLI

ppp has only 2 commands

  • ppp run {script} - run a script (where {script} is a script defined in pyproject.toml)
  • ppp list - list available scripts along with their descriptions

Defining scripts

Define your scripts/aliases in pyproject.toml in [tool.ppp.scripts].

You can use comments to specify command or argument descriptions.

Example

[tool.ppp.scripts]
# Run a docker image with http server
"docker-up" = "docker run -it -v bob:the_builder nvm" # [start|stop]
"type" = "echo"                                       # any text

Will result in

List result

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

ppp_run-0.2.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

ppp_run-0.2.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file ppp_run-0.2.1.tar.gz.

File metadata

  • Download URL: ppp_run-0.2.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for ppp_run-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4de3d2af5a99c6ccbdc580a76bcb4de852675f478da5dbb1f5d8636ad300f392
MD5 fd590b9615345939b1aa6572770ec4d1
BLAKE2b-256 8b29ea803d7a290b2427d66b6b1d8ed7ea7d1d5c52fb6390c89c72a1a669d04f

See more details on using hashes here.

File details

Details for the file ppp_run-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ppp_run-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for ppp_run-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b389c41e51f6eb22cc366011d3c24b34970d1455f2292775cd1e92f0f30b9300
MD5 2a79485a1fe7116eee4bb7345c1a7eba
BLAKE2b-256 4309aec40a6a6c450e5a127981475772394f48aa40f07cb17487925a8e918af3

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