SDK for Ekispert API
Project description
駅すぱあと API SDK for Python
駅すぱあと APIをPythonから利用するためのSDKです。
インストール
pip でインストールします。
pip install ekispert
初期化
初期化時には、駅すぱあと APIのAPIキーを指定します。APIキーはトライアル申し込みより取得してください。
from ekispert.client import Ekispert
client = Ekispert("YOUR_API_KEY")
駅情報の取得
駅情報取得APIを実行します。検索条件、結果は駅情報 - 駅すぱあと API Documents 駅データ・経路検索のWebAPIを参照してください。
query = StationQuery()
query.code = 22828
points = query.execute()
assert len(points) == 1
assert points[0].station.name == '東京'
assert points[0].geo_point.lati_d == 35.678083
assert points[0].prefecture.name == '東京都'
assert points[0].prefecture.code == 13
ライセンス
MITライセンスです。
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
ekispert-0.1.0.tar.gz
(3.5 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 ekispert-0.1.0.tar.gz.
File metadata
- Download URL: ekispert-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f2ac226693bdb5b2613e3df9c1a030bef1643d1794dd170a65de17366306990
|
|
| MD5 |
d08e7d701ad253c7e736002419cb4579
|
|
| BLAKE2b-256 |
9359fcf0ec4a5ac663801318a1afd8a0af7f4f281779001aa5973522ad877ae8
|
File details
Details for the file ekispert-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ekispert-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
253aa3a88ed5ee54e2b1f1ee8877b7608745009d9c08148cf2a949fe346e4a0b
|
|
| MD5 |
d178a3e68ddd0f30cffff0c681acb147
|
|
| BLAKE2b-256 |
3a395064889c799537c0896327037788742c155cb64ccaeb8c00017683aa62f7
|