Perform CRUD operations on TOML files.
Project description
crudtoml
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
Release history Release notifications | RSS feed
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)