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.5.tar.gz
(12.7 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
ekispert-0.1.5-py3-none-any.whl
(22.1 kB
view details)
File details
Details for the file ekispert-0.1.5.tar.gz.
File metadata
- Download URL: ekispert-0.1.5.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d9aecb1a5fe8ed8288e97569361f74677e57dee497f78eb5e2ff6bbad537987
|
|
| MD5 |
e45088feb6ccdedf58a9afad6fee1f26
|
|
| BLAKE2b-256 |
9858272986b8598c95f0c0b15667495bcfb34254f13fb318371e395446e22cc8
|
File details
Details for the file ekispert-0.1.5-py3-none-any.whl.
File metadata
- Download URL: ekispert-0.1.5-py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee452e2a744cf2027db2f06d569c4092bc7c10a6643f199f99d4a84255933830
|
|
| MD5 |
5d9d7f734a38971f12e6332af941bb5e
|
|
| BLAKE2b-256 |
6781d17cf0d510c0bbd9545ccf455267d7977280a8aba75abc2e3cab7b70a2b5
|