AstroWay/api v2.74.2 · ja
すべてのシステムが正常です
// sdk · Python

AstroWay API 用 Python SDK

公式 `astroway` on PyPI — `Astroway` (同期) + `AsyncAstroway` (非同期) on `httpx`。同一のサーフェス — 両クライアントに同じ API。ステンレススタイルのエラーハイアラキー、408/409/429/5xx におけるリトライ、PEP 561 型付きパッケージ。Python 3.9+、トラステッド パブリッシャー OIDC。

// 01 / install

インストール

pip install astroway

インポート: from astroway import Astroway

// 02 / highlights

特長

// 03 / first request

最初のリクエスト

from astroway import Astroway

aw = Astroway(api_key=os.environ['ASTROWAY_API_KEY'])

chart = aw.post('/chart', body={
    'date': '1990-07-14',
    'time': '14:30:00',
    'timezoneOffset': 3,
    'latitude': 50.4501,
    'longitude': 30.5234,
    'houseSystem': 'P',
})

print(chart['angles']['asc'])

Pythonを始める

月額10,000クレジットを無料で利用可能。Open-source SDKで、OpenAPI 3.1から自動生成され、常にバックエンドと同期しています。

99.9% SLA · 有料プラン · 30日間 ステータス →