Skip to main content

Jason (https://jason.co.jp) JSON Builder

Project description

jason logo jason-json

PyPI version CI

ghcr latest ghcr size

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.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jason_json-1.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file jason_json-1.1.0.tar.gz.

File metadata

  • Download URL: jason_json-1.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","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

Hashes for jason_json-1.1.0.tar.gz
Algorithm Hash digest
SHA256 de3d3251ed773427a309e50e003ceecffff9b32c7deb79f80828d5fa736947b0
MD5 e5d9a5a03dc69c6667018b8c75827c7c
BLAKE2b-256 ed0aaf8a782a62f1566a1fefccc305c41b49d2eccad4008802126cb3de8eb2f2

See more details on using hashes here.

File details

Details for the file jason_json-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: jason_json-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","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

Hashes for jason_json-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c8353341d87f461c901d61fa530806780b2c0c2130555f928f5427d54525d3d
MD5 e972e3f6de7a26100b3eabc7b5982e64
BLAKE2b-256 809ec61a28c4e7fca87bff9bfb4f8b4c7fffd75f65b4a13e17add93dacf24a37

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page