A CLI tool to edit simple JSON and YAML data files
Project description
sde
sde
is not sed
. It's a structured data editor for CLI.
Why?
Many people asked for a simple JSON in-place editing and jq
was the solution:
- Modify a key-value in a json using jq in-place
- How to modify a key's value in a JSON file from command line
jq '.address = "abcde"' test.json|sponge test.json
Does this seem readable or elegant to you?
sde
is not a substitue for jq
or sed
.
It allows simple in-place JSON value changes, for simple data.
{
"name":"John",
"age":31,
"city":"New York",
"extra": {
"sex": "male"
}
}
Modify data
sde name Jack data.json
sde extra.sex female data.json
sde pools.0.pass secret data.json
echo $json | sde name Jack
Query simple data
sdg name data.json
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
sde-0.0.1.tar.gz
(6.4 kB
view details)
Built Distribution
sde-0.0.1-py3-none-any.whl
(6.4 kB
view details)
File details
Details for the file sde-0.0.1.tar.gz
.
File metadata
- Download URL: sde-0.0.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a12f05bd78db3fbb72917e91dfbfe95114f0c24861cbe1981420d26bd927354c |
|
MD5 | c03df8659095a5e043a6cb1028f0d652 |
|
BLAKE2b-256 | c536cd3c0530d7fe5c7b1791a9ac0ec6312c1740fffc2c107face98b95d2d6c2 |
File details
Details for the file sde-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: sde-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53be05b7c5ed8f0db1db6d8270ed56cb202eb5ec01b2b5a69c4b7b716890525d |
|
MD5 | bf7b487596392a862d736d22247c8b17 |
|
BLAKE2b-256 | e468526b68f2685f807c48efcfe1d1cdb07100d8448bddb4af186a75f57e2604 |