Skip to main content

A task runner that works well with poetry and uv.

Project description

Poe the Poet

Poe the Poet

Python versions PyPI version Download stats License

A batteries included task runner that works well with poetry or uv.

📖 Read the documentation 📖


Features

Quick start

  1. Install the Poe the Poet globally via pipx or another method.
pipx install poethepoet

Or add it as a poetry project plugin:

[tool.poetry.requires-plugins]
poethepoet = ">=0.39"
  1. Define some tasks in your pyproject.toml
[tool.poe.tasks]
test         = "pytest --cov=my_app"                         # a simple command task
serve.script = "my_app.service:run(debug=True)"              # python script based task
tunnel.shell = "ssh -N -L 0.0.0.0:8080:$PROD:8080 $PROD &"   # (posix) shell based task

# A more complete example with documentation and named arguments
[tool.poe.tasks.count-incomplete]
help = "Count incomplete tasks in DynamoDB"
cmd  = """
aws dynamodb scan --table-name tasks
                  --select "COUNT"
                  --filter-expression "status >= :status"
                  --expression-attribute-values '{":status":{"S":"incomplete"}}'
                  --no-cli-pager
"""
args = [
  # Allow $AWS_REGION to be overridden with a CLI option when calling the task
  {name = "AWS_REGION", options = ["--region", "-r"], default = "${AWS_REGION}"}
]
  1. Run your tasks via the CLI
$ poe test -v tests/unit # extra CLI arguments are appended to the underlying command
Poe => pytest --cov=my_app
...

If you're using poetry or uv, then poe will automatically use CLI tools and libraries from your project's virtualenv without you having to run poetry run / uv run

Poe can also be used as a general purpose task runner.

Contributing

There's plenty to do, come say hi in the discussions or open an issue! 👋

Also check out the CONTRIBUTING guide 🤓

License

MIT

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

poethepoet-0.44.0.tar.gz (96.0 kB view details)

Uploaded Source

Built Distribution

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

poethepoet-0.44.0-py3-none-any.whl (122.9 kB view details)

Uploaded Python 3

File details

Details for the file poethepoet-0.44.0.tar.gz.

File metadata

  • Download URL: poethepoet-0.44.0.tar.gz
  • Upload date:
  • Size: 96.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for poethepoet-0.44.0.tar.gz
Algorithm Hash digest
SHA256 c2667b513621788fb46482e371cdf81c0b04344e0e0bcb7aa8af45f84c2fce7b
MD5 d9b8822db7fb877ffe34d8eb438a13de
BLAKE2b-256 a1a4e487662f12a5ecd2ac4d77f7697e4bda481953bb80032b158e5ab55173d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for poethepoet-0.44.0.tar.gz:

Publisher: ci.yml on nat-n/poethepoet

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

File details

Details for the file poethepoet-0.44.0-py3-none-any.whl.

File metadata

  • Download URL: poethepoet-0.44.0-py3-none-any.whl
  • Upload date:
  • Size: 122.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for poethepoet-0.44.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36d3d834708ed069ac1e4f8ed77915c55265b7b6e01aeb2fe617c9fe9cfd524a
MD5 f422512b191aa395b1479a1932c01f59
BLAKE2b-256 80b7503b7d3a51b0de9a329f1323048d166e309a97bb31bdc60e6acd11d2c71f

See more details on using hashes here.

Provenance

The following attestation bundles were made for poethepoet-0.44.0-py3-none-any.whl:

Publisher: ci.yml on nat-n/poethepoet

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