Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.03 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.03 KB

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-05-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]