A task runner that works well with poetry.
Project description
Poe the Poet
A batteries included task runner that works well with poetry.
Features
-
✅ Straight forward declaration of project tasks in your pyproject.toml (or poe_tasks.toml)
-
✅ Tasks are run in poetry's virtualenv (or another env you specify)
-
✅ Shell completion of task names (and global options too for zsh)
-
✅ The poe CLI can be used standalone, or as a plugin for poetry
-
✅ Tasks can be commands, shell scripts, python expressions, or references to python functions
-
✅ Concise commands with extra arguments passed to the task
poe [options] task [task_args]
-
✅ Easily define CLI arguments for your tasks
-
✅ Tasks can specify and reference environment variables, even without a shell
-
✅ Tasks are self documenting, with optional help messages (just run
poe
with no arguments) -
✅ Works with
.env
files -
✅ Can be used as a library to embed in other tools
-
✅ Also works fine without poetry
Quick start
- Install the Poe the Poet via pipx or another method.
pipx install poethepoet
- 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
- 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, then poe will automatically use CLI tools and libraries from your poetry managed virtualenv without you having to run poetry run
or poetry shell
Poe can also be used without poetry.
Contributing
There's plenty to do, come say hi in the discussions or open an issue! 👋
Also check out the CONTRIBUTING guide 🤓
License
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
File details
Details for the file poethepoet-0.30.0.tar.gz
.
File metadata
- Download URL: poethepoet-0.30.0.tar.gz
- Upload date:
- Size: 60.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f7ccda2d6525616ce989ca8ef973739fd668f50bef0b9d3631421d504d9ae4a |
|
MD5 | b64ae78452c2ce6c3cf2a8909d2aa468 |
|
BLAKE2b-256 | be07dfaed168414cf1e10f5c90860cdc29ffd871df80be81f3d7abd0451a4508 |
Provenance
The following attestation bundles were made for poethepoet-0.30.0.tar.gz
:
Publisher:
ci.yml
on nat-n/poethepoet
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
poethepoet-0.30.0.tar.gz
- Subject digest:
9f7ccda2d6525616ce989ca8ef973739fd668f50bef0b9d3631421d504d9ae4a
- Sigstore transparency entry: 147849543
- Sigstore integration time:
- Predicate type:
File details
Details for the file poethepoet-0.30.0-py3-none-any.whl
.
File metadata
- Download URL: poethepoet-0.30.0-py3-none-any.whl
- Upload date:
- Size: 78.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf875741407a98da9e96f2f2d0b2c4c34f56d89939a7f53a4b6b3a64b546ec4e |
|
MD5 | 2d85afac9f86216d818958461822f1ab |
|
BLAKE2b-256 | 259812bff83ac39ba78ba4736c2f217bab294187de5d71ffbfeb3e126c230704 |
Provenance
The following attestation bundles were made for poethepoet-0.30.0-py3-none-any.whl
:
Publisher:
ci.yml
on nat-n/poethepoet
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
poethepoet-0.30.0-py3-none-any.whl
- Subject digest:
bf875741407a98da9e96f2f2d0b2c4c34f56d89939a7f53a4b6b3a64b546ec4e
- Sigstore transparency entry: 147849545
- Sigstore integration time:
- Predicate type: