simple client for kenall.jp API service.
Project description
kenallclient
USAGE
To use kenallclient in your program, create KenAllClient with api key and call get method.
>>> from kenallclient.client import KenAllClient
>>> API_KEY = "YOUR_API_KEY"
>>> zipcode = "1008105"
>>> client = KenAllClient(API_KEY)
>>> client.get(zipcode)
KenAllResult(version='2021-01-29', data=[KenAllResultItem(jisx0402='13101', old_code='100', postal_code='1008105', prefecture_kana='', city_kana='', town_kana='', town_kana_raw='', prefecture='東京都', city='千代田区', town='大手町', koaza='', kyoto_street='', building='', floor='', town_partial=False, town_addressed_koaza=False, town_chome=False, town_multi=False, town_raw='大手町', corporation=KenAllCorporation(name='チッソ\u3000株式会社', name_kana='チツソ\u3000カブシキガイシヤ', block_lot='2丁目2-1(新大手町ビル)', post_office='銀座', code_type=0))])
To use kenallclient in command line, call kenallclient module.
python -m kenallclient --apikey="YOUR_API_KEY" 1008105
{'data': [{'building': '',
'city': '千代田区',
'city_kana': '',
'corporation': {'block_lot': '2丁目2-1(新大手町ビル)',
'code_type': 0,
'name': 'チッソ\u3000株式会社',
'name_kana': 'チツソ\u3000カブシキガイシヤ',
'post_office': '銀座'},
'floor': '',
'jisx0402': '13101',
'koaza': '',
'kyoto_street': '',
'old_code': '100',
'postal_code': '1008105',
'prefecture': '東京都',
'prefecture_kana': '',
'town': '大手町',
'town_addressed_koaza': False,
'town_chome': False,
'town_kana': '',
'town_kana_raw': '',
'town_multi': False,
'town_partial': False,
'town_raw': '大手町'}],
'version': '2021-01-29'}
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
Built Distribution
File details
Details for the file kenallclient-0.1.0.post1.tar.gz
.
File metadata
- Download URL: kenallclient-0.1.0.post1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c3013e61cc01825547578512bcc6e261fc634f5f20ca9b140b2c4bfde9b6fa7 |
|
MD5 | 22ee366b5f276beef21cd8676677c08c |
|
BLAKE2b-256 | 524635d8e13cc259897786ff4dc8054db589a9595698ef22eb278a4c33d79a78 |
File details
Details for the file kenallclient-0.1.0.post1-py3-none-any.whl
.
File metadata
- Download URL: kenallclient-0.1.0.post1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1d43cb418fd5ba613d319db259182ca2caa7493c914de83d0d57121c6a5091d |
|
MD5 | 9b588982a7a7f91be224a0f631f5111d |
|
BLAKE2b-256 | d71aaf8d48ecf8e05993748bfc4202a511d5b4e99eb8b62f29f9b6c99c181079 |