Skip to main content

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


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.4.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ekispert-0.1.4-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file ekispert-0.1.4.tar.gz.

File metadata

  • Download URL: ekispert-0.1.4.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

Hashes for ekispert-0.1.4.tar.gz
Algorithm Hash digest
SHA256 60ae55f9739ac296b6b559a04433029fe94d1d0ffde7fd53622c1f4ae324833e
MD5 235e99053d24dc6e819fed91aca8c082
BLAKE2b-256 61054582f1e61c2221d38633beafb403c789f6e595e84ebfa639baa02de74849

See more details on using hashes here.

File details

Details for the file ekispert-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ekispert-0.1.4-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

Hashes for ekispert-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2ce9d45fd792125710354a76b5ab17b3ce70ca13a8afc40cb97637a0d54e71f7
MD5 9d8958019694b953793fa9d09fec19ff
BLAKE2b-256 3c3abc9172cefd74457b1429af91e0e0a7e0f0161c4fb05c0e613f0c57f5e363

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page