New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

toml-cli

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toml-cli

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

0.7.0
PyPI
Maintainers
1

toml-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] toml get --toml-path pyproject.toml tool.poetry.name --default marc

Set a value

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.

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts