Unofficial zutool (頭痛ール: https://zutool.jp/) API Wrapper
Project description
zutool
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
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
zutool-0.0.0.tar.gz
(6.7 kB
view hashes)
Built Distribution
zutool-0.0.0-py3-none-any.whl
(8.6 kB
view hashes)