Skip to main content

Unofficial zutool (頭痛ール: https://zutool.jp/) API Wrapper

Project description

zutool

PyPI version Maintainability pre-commit.ci status Test Coverage Test

ghcr latest ghcr size

Unofficial zutool (頭痛ール: https://zutool.jp/) API Wrapper

Install

pip install zutool

As Library

import zutool as z

# see: <https://nlftp.mlit.go.jp/ksj/gml/codelist/PrefCd.html>
area_code = "13" # 東京都
z.get_pain_status(area_code)

keyword = "東京都"
z.get_weather_point(keyword)

# see: <https://geoshape.ex.nii.ac.jp/city/code/?13113>
city_code = "13113" # 東京都渋谷区
z.get_weather_status(city_code)

As CLI

$ zutool -h
usage: zutool [-h] {pain_status,ps,weather_point,wp,weather_status,ws} ...

Get info of zutool <https://zutool.jp/>.

positional arguments:
  {pain_status,ps,weather_point,wp,weather_status,ws}
    pain_status (ps)    get pain status by prefecture
    weather_point (wp)  search weather point
    weather_status (ws)
                        get pain status by city

optional arguments:
  -h, --help            show this help message and exit
$ zutool ps -h
usage: zutool pain_status [-h] area_code

positional arguments:
  area_code   see: <https://nlftp.mlit.go.jp/ksj/gml/codelist/PrefCd.html>
              (ex. `13`)

optional arguments:
  -h, --help  show this help message and exit
$ zutool wp -h
usage: zutool weather_point [-h] keyword

positional arguments:
  keyword     keyword for searching city_code (ex. `東京都`)

optional arguments:
  -h, --help  show this help message and exit
$ zutool ws -h
usage: zutool weather_status [-h] city_code

positional arguments:
  city_code   see: <https://geoshape.ex.nii.ac.jp/city/code/> (ex. `13113`)

optional arguments:
  -h, --help  show this help message and exit

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

zutool-0.0.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

zutool-0.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file zutool-0.0.0.tar.gz.

File metadata

  • Download URL: zutool-0.0.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.0 Linux/5.15.0-1041-azure

File hashes

Hashes for zutool-0.0.0.tar.gz
Algorithm Hash digest
SHA256 9b6d4e52c78aa2e69aad13118bf8c71850837061bf80b1c9e9a1747fd542b482
MD5 4fe083788d52a3de5c2370688cfc9a63
BLAKE2b-256 64333cee71d7716dbe065db25087f3ef642eb6dcd2b357c76a7388229f90e9da

See more details on using hashes here.

File details

Details for the file zutool-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: zutool-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.0 Linux/5.15.0-1041-azure

File hashes

Hashes for zutool-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93f9c89f55236871f192a43fba9867b31af9024d1209acd550ce61956dbbda36
MD5 fd4bdbb6bf7c85d5c0bb18226dcc2fcf
BLAKE2b-256 18152ab69a3bcd7c8f089494d00ab569eca1ecc136ec379bd86327a01838564f

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