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
jqwith-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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crudtoml-0.1.1.tar.gz.
File metadata
- Download URL: crudtoml-0.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3504e56be9c33065671b0bcd2525f0ac68da02730087ba7dc275abfb759673b0
|
|
| MD5 |
2ddb4341104b79228aebb3d6d4a86ed6
|
|
| BLAKE2b-256 |
60d655d0ddc27154ab62aa23730bff3a6733439387f17527aa48ded2c3b5d449
|
File details
Details for the file crudtoml-0.1.1-py3-none-any.whl.
File metadata
- Download URL: crudtoml-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e1d6f2ebbf79cc816e73811f4954e02e521ced6d7023d484c81af84bdb86655
|
|
| MD5 |
fab62d0c724200f5081aa5349a7082c4
|
|
| BLAKE2b-256 |
46f21c9c7946f549ca3c18c4f29d26cd0f6c9f4aca51a8dc9c5c174939b53d9c
|