Skip to main content

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)

Uploaded Source

Built Distribution

update_toml-0.2.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page