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.3.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.3-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ekispert-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 26ba6c852c6dd986ee048706f440761ee549236fb595cf94e1f87196970611d2
MD5 d46965b1cde73b92ed21ed3adc759e74
BLAKE2b-256 53f768bb0b11380b6496dedd207076b71d5c37b1cac144aba7b073dc27b10515

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ekispert-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2bd3270b8c4361347c41e64fec316b1f2e2398c51d29f16c0b6e3ab049fc89a9
MD5 cbbf15871060dad8bd07cf6b5a5e4d5a
BLAKE2b-256 eedac5cbb6033e4d0f9085fc92fbea26e3e62e60a36dceeb95614242043164cf

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