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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: toml_cli-0.5.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.0 Linux/5.15.0-1036-azure

File hashes

Hashes for toml_cli-0.5.0.tar.gz
Algorithm Hash digest
SHA256 11599eb9c601c489e5bd2de1660facd98be0f639684866c688920f981390da71
MD5 27508b3ad36619122545f8c9ebbffd7f
BLAKE2b-256 922db514b6f1640d80d98a3d47ed7eb2aa37712a5607084ef4be5d6ab8e4d792

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for toml_cli-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c74d950d018c7570513f570d180c030cc9200b37f8039898b2051c5993fc16a
MD5 61f0b27ff374259d0e8027255ff0e7ed
BLAKE2b-256 c62b3228d86100362ee265e83c1f2e803ebc2106a7103fa7d3dd750ecea05b0c

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