Skip to main content

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]

Metadata

Release files for crudtoml 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crudtoml 0.1.1
File Size Uploaded
crudtoml-0.1.1.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crudtoml 0.1.1
File Interpreter ABI Platform
crudtoml-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / crudtoml-0.1.1.tar.gz

Download URL crudtoml-0.1.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3504e56be9c33065671b0bcd2525f0ac68da02730087ba7dc275abfb759673b0
BLAKE2b-256 checksum
How to use checksums
60d655d0ddc27154ab62aa23730bff3a6733439387f17527aa48ded2c3b5d449
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / crudtoml-0.1.1-py3-none-any.whl

Download URL crudtoml-0.1.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e1d6f2ebbf79cc816e73811f4954e02e521ced6d7023d484c81af84bdb86655
BLAKE2b-256 checksum
How to use checksums
46f21c9c7946f549ca3c18c4f29d26cd0f6c9f4aca51a8dc9c5c174939b53d9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page