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.6.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toml_cli-0.6.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file toml_cli-0.6.0.tar.gz.

File metadata

  • Download URL: toml_cli-0.6.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1012-azure

File hashes

Hashes for toml_cli-0.6.0.tar.gz
Algorithm Hash digest
SHA256 76fac0568f105a9ca3a99b78b21e9a7835cf1be100bc6ab6a2ca77787926bc5d
MD5 4e4ba94dbd6c2b69fc78fe94fb5b0c62
BLAKE2b-256 4c8cdf898f8c1f267d7b843aa0d0fa6594a513f209b2f6107e87889cee15b7f3

See more details on using hashes here.

File details

Details for the file toml_cli-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: toml_cli-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1012-azure

File hashes

Hashes for toml_cli-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 081911c15ad4cdbf6d4b6f5069c6dd7ff62af8a6c6c904308737f7110b2383f1
MD5 b1d81484fd7fc2bb4fa336175a1f1564
BLAKE2b-256 f53378249a6131b6f8268a191b97ff7e2a4c38030d64b87f1294f99516386d33

See more details on using hashes here.

Supported by

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