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.2.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.2.tar.gz.
File metadata
- Download URL: ekispert-0.1.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
084d9868643486a9d7e8f1484f97ad6650e4acade9cc9b06fd4ebb62e67c5bdb
|
|
| MD5 |
fd001152a37293ae31db93346a7f80e9
|
|
| BLAKE2b-256 |
dea8fd9e626e87dbb81b21c42ab17182438a29cd1886bed690be5ec20447b256
|
File details
Details for the file ekispert-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ekispert-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.6 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 |
a6cf29df98be9b34fb310cf43b5648929fbf0415b27027f00687f66c5542fb3b
|
|
| MD5 |
fe06ca4bcb4974f14b4c04fbfe1f86a1
|
|
| BLAKE2b-256 |
410f5a6ea4f3dbd2989c50eb9942330b6f447a9044831f2b95307f4da785434f
|