Skip to content

Edward-Knight/crudtoml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

Perform CRUD operations on TOML files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages