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 details)
Built Distribution
File details
Details for the file update_toml-0.2.1.tar.gz
.
File metadata
- Download URL: update_toml-0.2.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92870b2ef8591eeffa32df674d9b4c4fce59a428f65063e138dee253bdb5d372 |
|
MD5 | 8a285328bb0c6e257369e9570bbe5707 |
|
BLAKE2b-256 | 89fa4238c64177886003312a61a5deda93876a1cb023c6efe1ee204573209ad1 |
File details
Details for the file update_toml-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: update_toml-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90d5d9d2efbe2f273328ec78394912c33c0f741dc3b0ae744cfc4ddbe27051f7 |
|
MD5 | 440940467ef905448867e4849decb034 |
|
BLAKE2b-256 | 7394d4dd5609d95c83d85b18b79121dd834a86a2e1b57d63d9b3d5388143c4cb |