Update a toml value from a CLI
Project description
Update TOML
Simple CLI to update a value in a TOML file.
Installation
Install with pip:
pip install update-toml
Usage
Update
Run the following command, passing in a path and value to update in the specified .toml file:
update-toml --path project.version --value 0.0.1 --file pyproject.toml
Get
Get a value from a .toml file:
update-toml --path project.version --file pyproject.toml
# Example return: 0.0.1
Exists
Check if a path exists in a .toml file:
update-toml --path project.version --file pyproject.toml
# Example return: True or False
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
update_toml-0.2.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for update_toml-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90d5d9d2efbe2f273328ec78394912c33c0f741dc3b0ae744cfc4ddbe27051f7 |
|
MD5 | 440940467ef905448867e4849decb034 |
|
BLAKE2b-256 | 7394d4dd5609d95c83d85b18b79121dd834a86a2e1b57d63d9b3d5388143c4cb |