Skip to main content

toml-cli

Build

Command line interface for toml files.

This can be usefull for getting or setting parts of a toml file without an editor. Which can be convinient when values have to be read by a script for example in continuous development steps.

Install

Install via

pip install toml-cli

or

uv tool install toml-cli

Get a value

toml get --toml-path pyproject.toml tool.poetry.name

toml get --toml-path pyproject.toml tool.poetry.authors[0]

toml get --toml-path pyproject.toml tool.poetry.name --default marc

Search with JMESPath

toml search --toml-path pyproject.toml tool.uv.index[*].name

Set a value

toml set --toml-path pyproject.toml tool.poetry.version 0.2.0

toml set --toml-path pyproject.toml tool.poetry.authors[0] "Marc Rijken <marc@rijken.org>"

When the index exists, the item is changed. Otherwise, the item will be added to the list.

Add a section

toml add_section --toml-path pyproject.toml tool.poetry.new_section

Unset a value

toml unset --toml-path pyproject.toml tool.poetry.version

Metadata

Release files for toml-cli 0.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for toml-cli 0.8.2
File Size Uploaded Provenance Actions
toml_cli-0.8.2.tar.gz 25.3 kB Without provenance Details for toml_cli-0.8.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for toml-cli 0.8.2
File Interpreter ABI Platform Actions
toml_cli-0.8.2-py3-none-any.whl Python 3 none any Details for toml_cli-0.8.2-py3-none-any.whl

Total release size: 32.7 kB

Release files / toml_cli-0.8.2.tar.gz

Download URL toml_cli-0.8.2.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ec61fbfe5f0d6f2d6bfd9e1127cad38a797b8685a93589f2e22efd168b0cc866
BLAKE2b-256 checksum
How to use checksums
aa2d24de54996541a3355d6a90e08dbe8526771434941e410ef91c5422517e7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release files / toml_cli-0.8.2-py3-none-any.whl

Download URL toml_cli-0.8.2-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7af4679ca04c53ad0f6d300dab26f45a78fedf88e8310305bfe0a8ead37fd000
BLAKE2b-256 checksum
How to use checksums
d2b8f0b9b880c03a3db8eaff63d76ca751ac7d8e45483fb7a0bb9f8e5c6ce433
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Security for toml-cli 0.8.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page