mrijken/toml-cli(opens in a new tab)
Language: Python
- stars
- 45
- watchers
- 1
- forks
- 18
- open issues
- 6
- Last updated
- 09/13/2025
Language: Python
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 via
pip install toml-cli
or
uv tool install toml-cli
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
toml search --toml-path pyproject.toml tool.uv.index[*].name
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.
toml add_section --toml-path pyproject.toml tool.poetry.new_section
toml unset --toml-path pyproject.toml tool.poetry.version