json-sort
Just a tiny tool to sort keys in a json file
Quickstart
First, install json-sort using pip:
sh-4.2$ pip install json-sort
Next, use json-sort-fromfile or json-sort-fromremote:
sh-4.2$ json-sort-fromremote http://headers.jsontest.com/
{
"Accept": "application/json",
"Content-Type": "application/json",
"Host": "headers.jsontest.com",
"User-Agent": "python-requests/2.10.0",
"X-Cloud-Trace-Context": "8de3c28b6c503d26d38c1c7d6111bfa6/11298559371430510765"
}
Arguments
To see binaries usage, just set -h:
usage: json-sort-fromfile [-h] [--output FILE] [--verbose] file
positional arguments:
file input file
optional arguments:
-h, --help show this help message and exit
--output FILE, -o FILE
output file (default: stdout)
--verbose increase output verbosity
Example:
sh-4.2$ json-sort-fromfile --verbose --output test2.json ../test.json DEBUG : Checking file: /tmp/test.json DEBUG : Saving to: /tmp/json-sort/test2.json
License
Apache License 2.0
Metadata
Release files for json-sort 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| json-sort-0.1.2.tar.gz | 3.0 kB | Without provenance | Details |
Release files / json-sort-0.1.2.tar.gz
| Download URL | json-sort-0.1.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d51ab543ce0f43aeed8ecbec097c12584b1a02f788cbc596efd11740a794bab
|
|
BLAKE2b-256 checksum How to use checksums |
20194c53681215577329cf6644f352ebdf605e79cba83c5500bd96f32058b7d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for json-sort 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.