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.1.tar.gz
(3.6 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.1.tar.gz.
File metadata
- Download URL: ekispert-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70327bb8141a85385483e4dafab4822e0c764e6a5541ee532c0643b826324956
|
|
| MD5 |
0d5c08d6b4502033121a35e22e39ae9a
|
|
| BLAKE2b-256 |
7178dcc3b94c1fd8af94122ca8fe536af95e645434ce0423b5b02fde9d16efa0
|
File details
Details for the file ekispert-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ekispert-0.1.1-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 |
9d24a861a02152ff80f40ff7c2dac400e040c127aeeedaac5435b6c515d32ded
|
|
| MD5 |
046c03ece64cc903a106f3241a61d0cc
|
|
| BLAKE2b-256 |
45e690601453c5c14fdfae37fc05adea7e8cf870db36f450ce12e89f6dc189f6
|