Skip to main content

Command line interface to read and write keys/values to/from toml files

Project description

tom-cli

Build Hits

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

pip 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]

Set a value

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

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

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

toml_cli-0.5.0.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

toml_cli-0.5.0-py3-none-any.whl (6.7 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