Skip to main content

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

Project description

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]

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.1.tar.gz (6.1 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.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: toml_cli-0.6.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.1 Linux/6.5.0-1017-azure

File hashes

Hashes for toml_cli-0.6.1.tar.gz
Algorithm Hash digest
SHA256 7a7fb28f90c04519191752dacfbf823ab129edd658bd182bac2487d82d7917ed
MD5 add92c485b9593e8a0388ab0e593230d
BLAKE2b-256 23d8178ee406bf75e76c62aa121c363f0857990eb3bc884f628c98f51da579ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: toml_cli-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.1 Linux/6.5.0-1017-azure

File hashes

Hashes for toml_cli-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1aeba7a0aa21ee818051fc40211a79c0ce3041c3ebd96705110d782725120d71
MD5 af1e7bad92748a7cf5dc9c0f409d1cef
BLAKE2b-256 9e24d177a31376f6575ff13445799e9d188f57f9989c7a83f6045cbbad5eaf8b

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