Libretto
A Simple task runner for pyproject.toml, written in Rust.
Install
uv tool install libretto
Configuration
Libretto can be configured in the [tool.libretto] section of your pyproject.toml file.
venv
Specifies the path to the virtual environment to use when running tasks.
[tool.libretto]
venv = ".venv"
Example
[tool.libretto]
venv = ".venv"
[tool.libretto.tasks]
hello = "echo Hello, World!"
Usage
Libretto reads tasks from the pyproject.toml file in the current directory. Tasks are defined in the [tool.libretto.tasks] section.
To run a task, use the libretto command followed by the task name:
libretto <task_name>
# can execute with uv-task
uv-task <task_name>
For example, to run the hello task from the example above:
libretto hello
This will output:
Hello, World!
Passing Additional Arguments
You can pass additional arguments to your tasks. For example, if you have a task defined as:
[tool.libretto.tasks]
greet = "echo Hello"
You can run it with an additional argument:
libretto greet -- John
This will output:
Hello John
Command Lists
You can also define a list of commands for a single task. Libretto will execute them in order.
[tool.libretto.tasks]
build = [
"echo Building...",
"py -m build"
]
Running libretto build will execute both commands.
Platform-Specific Commands
You can define platform-specific commands by using a list of tables. list of available platforms is here.
[tool.libretto.tasks]
test = [
{ cmd = "rm --rf dist", platforms = ["linux", "macos"] },
{ cmd = "rmdir /s /q dist", platforms = ["windows"] }
]
Libretto will only execute the command that matches the current platform.
Metadata
Release files for libretto 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| libretto-0.2.1.tar.gz | 10.4 kB | Without provenance | Details for libretto-0.2.1.tar.gz |
Built distributions (wheels)
Total release size: 42.4 MB
Release files / libretto-0.2.1.tar.gz
| Download URL | libretto-0.2.1.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03e07f0293d6ac3eedc45e5ff60c3556f29252a8c65c12811a04c7bde498eb57
|
|
BLAKE2b-256 checksum How to use checksums |
ae5c5307e22757a325230467299a8eeef211083ff6d40ae7bf4ef05f2e14f765
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-win_arm64.whl
| Download URL | libretto-0.2.1-py3-none-win_arm64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
d0078fff28a550939a01096d66f14a23b55e789210f43870d502273b9265f8fd
|
|
BLAKE2b-256 checksum How to use checksums |
5a14f9062b98f8925240306233c64fa7b187b47fd5d59ac9d442d722c9b80041
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-win_amd64.whl
| Download URL | libretto-0.2.1-py3-none-win_amd64.whl |
|---|---|
| Size | 2.7 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4e98fdb3de9d07044bbcaffd12e6160b6a91b0c442d5dea54ab4f9b1ceae13f2
|
|
BLAKE2b-256 checksum How to use checksums |
64b5142371f3dfdf578f53d86dbdbd59d43f7681b095d7a261719f30ffbfe99a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-win32.whl
| Download URL | libretto-0.2.1-py3-none-win32.whl |
|---|---|
| Size | 2.5 MB |
| Tags | Python 3 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
4151aa3a586e868fd31a993b356b05a163fd86ef1ee7df215a8b11ca2d4e43bd
|
|
BLAKE2b-256 checksum How to use checksums |
3ab3fb830a143566a48ece486cf67510f432764bf78c6387b30224ad80232c1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-musllinux_1_2_x86_64.whl
| Download URL | libretto-0.2.1-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 3.0 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
29d0c3a1e976db8576b61fe6c5d7f4804ad60b78fe32edbe1b4592067973d64e
|
|
BLAKE2b-256 checksum How to use checksums |
ffb6feeab09d2878eb6f5ed197fa23b0f84fec5c4da377ec66ab8a8f20845fd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-musllinux_1_2_i686.whl
| Download URL | libretto-0.2.1-py3-none-musllinux_1_2_i686.whl |
|---|---|
| Size | 2.9 MB |
| Tags | Linux musl 1.2+ x86-32 Python 3 |
|
SHA-256 checksum How to use checksums |
35afd6dbf760cda0d43bbad334e7a7ad04331318b6121d94114eec8d28812edb
|
|
BLAKE2b-256 checksum How to use checksums |
e5619270355a83afbc66baff11922659087d9607a7e9ed49e11930de08420975
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-musllinux_1_2_armv7l.whl
| Download URL | libretto-0.2.1-py3-none-musllinux_1_2_armv7l.whl |
|---|---|
| Size | 2.6 MB |
| Tags | Linux musl 1.2+ ARMv7l Python 3 |
|
SHA-256 checksum How to use checksums |
0eaac459bd920a23b01b87fc20c6eb6ed68e31b7236c4751747d8fdacf261952
|
|
BLAKE2b-256 checksum How to use checksums |
0223670c084e1d9f61ab60b7b6f1485c9721764fc7536a9f399b6d69f0e13b20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-musllinux_1_2_aarch64.whl
| Download URL | libretto-0.2.1-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 2.7 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
655e3f1ccb622f66d33ab466f7fd1ccb0ebdf7837b947d523efcf8fa1e02cf33
|
|
BLAKE2b-256 checksum How to use checksums |
321bca804b96202c2d05028bcf540e6b7a1a48c1e51b03c0c0efe8ec946f7bf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | libretto-0.2.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
e5b43e0a873394713ac4c18bc6da1f0bb3e5d0f0e2c4098429c7c9412b6589f2
|
|
BLAKE2b-256 checksum How to use checksums |
86728a4b6dcfd3c9248eb5fc78d3b46a526867521a891df4b22302456be69b53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
| Download URL | libretto-0.2.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl |
|---|---|
| Size | 3.0 MB |
| Tags | Linux glibc 2.17+ IBM System/390x Python 3 |
|
SHA-256 checksum How to use checksums |
6ca05ccc14966c39e631418c7b873ef098ddb7c74f38821ab9f99539d1c6b2ea
|
|
BLAKE2b-256 checksum How to use checksums |
1b159a0b39c43c819db83cadb0119626bc387d1133bbde7a8f8b07f505623401
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
| Download URL | libretto-0.2.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl |
|---|---|
| Size | 3.4 MB |
| Tags | Linux glibc 2.17+ PowerPC 64-le Python 3 |
|
SHA-256 checksum How to use checksums |
dd0ffe9a1513f8de7cc9197ea6c9f5fe56dabb2a90e92c3583556482970fde95
|
|
BLAKE2b-256 checksum How to use checksums |
10a71e01b65cbd26a09b4d57a2a4a9b7239bd543610c4996b1dad42badd4719b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | libretto-0.2.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 3.0 MB |
| Tags | Linux glibc 2.17+ x86-32 Python 3 |
|
SHA-256 checksum How to use checksums |
9d1322a84ba697166f7528ddd0ab9a0fe09f466c4342340ddf4c5e2a51dcf9c7
|
|
BLAKE2b-256 checksum How to use checksums |
207547f522300c0c2441f6cd039e1cea09b2d19a8badd6c6103fe4812742053e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | libretto-0.2.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 2.6 MB |
| Tags | Linux glibc 2.17+ ARMv7l Python 3 |
|
SHA-256 checksum How to use checksums |
df813225852d91af91692dff953258a3e950a80ba6643f841929651e4529c8b9
|
|
BLAKE2b-256 checksum How to use checksums |
aec3e9dd5e3542545ad56ac03cfc388335da28dbc323fd1b8c021e5dd013bf7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | libretto-0.2.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 2.7 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
6c873a2b5b2023eb363e4a07eb9a930ef5b3121a46df7d268819c7621266c2bd
|
|
BLAKE2b-256 checksum How to use checksums |
f03e99fc56b56cfa9a128f9c74a1f396d432db68e7773eee6144838c162374c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-macosx_11_0_arm64.whl
| Download URL | libretto-0.2.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.7 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9a74cd84287a0e614d17cf0f2d14034bc7b0bf95c2552c782674cc9a0d099d02
|
|
BLAKE2b-256 checksum How to use checksums |
60679cfb49ce657db352e7969691c330c532c65ac4d3a77522c7c3afae2a488b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Release files / libretto-0.2.1-py3-none-macosx_10_12_x86_64.whl
| Download URL | libretto-0.2.1-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 2.8 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
7a6174652698193aaf974af01378a5f806f89fe680d99889c2b7db0da188cf23
|
|
BLAKE2b-256 checksum How to use checksums |
4f6afcdb01f449720bc1990d2e15118ba714bb686f27c10bd6a223962d2e93e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.10.2
|
Security for libretto 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.