Skip to main content

Perform CRUD operations on TOML files.

Project description

crudtoml

PyPI - Status PyPI - License PyPI - Latest Project Version

Perform CRUD operations on TOML files.

Features

  • Style-preserving edits
  • Supports indexing into arrays
  • Write back to input file with -i
  • "Shell-compatible" output à la jq with -r

Examples

$ echo -e '[project]\nname = "crudtoml"' | tee test.toml
[project]
name = "crudtoml"

Create!

$ crudtoml test.toml create project dob 2023-05-23
[project]
name = "crudtoml"
dob = 2023-06-23

Read!

$ crudtoml test.toml read project name
"crudtoml"

Update!

$ crudtoml test.toml update project name '"crudini"'
[project]
name = "crudini"

Delete!

$ crudtoml test.toml delete project name
[project]

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

crudtoml-0.1.1.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

crudtoml-0.1.1-py3-none-any.whl (5.5 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