Jason (https://jason.co.jp) JSON Builder
Project description
jason-json
Jason JSON Builder
Install
pip install git+https://github.com/eggplants/jason-json
# or...
pip install jason-json
CLI Usage
You can run this program as jason-json or jason.json on CLI.
$ jason.json | jq '[to_entries[] | {(.key): .value | length}] | add'
{
"東京都": 27,
"千葉県": 33,
"神奈川県": 1,
"埼玉県": 29,
"茨城県": 18,
"栃木県": 4,
"群馬県": 5
}
$ jason.json | jq '."東京都"[0]'
{
"name": "足立鹿浜店",
"address": "東京都足立区鹿浜6-34-19",
"link": "http://jason.co.jp/wptest/?p=5079",
"business_time": {
"begin_sec": 36000,
"end_sec": 79200,
"duration_sec": 43200,
"duration_str": "10:00~22:00"
}
}
jason.json is the result with running jason.json -O -s jason.json -i 2.
Help
$ jason.json -h
usage: jason.json [-i INDENT] [-O] [-s SAVE] [-u URL] [-V] [-h]
Jason (https://jason.co.jp) JSON Builder.
options:
-i INDENT, --indent INDENT
number of indentation spaces in json (default: 2)
-O, --overwrite overwrite if save path already exists (default: False)
-s SAVE, --save SAVE save json to given path (default: None)
-u URL, --url URL target url (default: https://jason.co.jp/network)
-V, --version show program's version number and exit (default: False)
-h, --help show this help message and exit
from Docker
Try:
docker run -it ghcr.io/eggplants/jason-json -h
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jason_json-1.1.1.tar.gz
(6.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 jason_json-1.1.1.tar.gz.
File metadata
- Download URL: jason_json-1.1.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f05effc90fe3532979442215cd33b178ce8ebbb93295d1b2fbd42e47142c20c
|
|
| MD5 |
5b614292285e9baa8f3e06f3798eb8ef
|
|
| BLAKE2b-256 |
c848996f2686d636dbafc21f2566633e0ce3e470a309577f4d6233c07f56c103
|
File details
Details for the file jason_json-1.1.1-py3-none-any.whl.
File metadata
- Download URL: jason_json-1.1.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96eecdc1d93327916146e404fb28b20cf816d9f5dfd26dbd830f382b3c0fcbaf
|
|
| MD5 |
e85d6e26510f9d4a2ec840cb4cb69987
|
|
| BLAKE2b-256 |
6d99115713b0ccd9855426643534f5a56666bd31a3d218d5b47663db837ebd1e
|