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.0.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file crudtoml-0.1.0.tar.gz
.
File metadata
- Download URL: crudtoml-0.1.0.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 | 973090292f19b2f8058c226ba6eeb950937093bf572950e59775c05525d7562d |
|
MD5 | 5a68e1fe649106eb9b19ca3e20602c40 |
|
BLAKE2b-256 | 13eb3b1a99712b2090177f29a09993af7cc4b2fd43cd91767b3d4511a95e9373 |
File details
Details for the file crudtoml-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: crudtoml-0.1.0-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 | 16533d7e7564fbfa9081ed224d6344b3413ab7c13a5ef25be9fea99b29fb9f64 |
|
MD5 | a00bd215b13bbfcc2576fe61287c2e89 |
|
BLAKE2b-256 | f4288c0f3ffb274390cd4cfa27f1f0d074c1d3666ffc6fbc2b1703a3e4c9193a |