AstroWay/api v2.74.2 · de
alle Systeme in Ordnung
// sdk · Python

Python-SDK für die AstroWay-API

Offizielles `astroway` auf PyPI — `Astroway` (sync) + `AsyncAstroway` (async) auf Basis von `httpx`. Identische Oberfläche — dieselbe API auf beiden Clients. Stainless-Style-Fehlerhierarchie, Wiederholung bei 408/409/429/5xx, PEP 561 typisiertes Paket. Python 3.9+, Vertrauenswürdiger Verleger OIDC.

// 01 / install

Installieren

pip install astroway

Import: from astroway import Astroway

// 02 / highlights

Highlights

// 03 / first request

Erste Anfrage

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'])

Start mit Python

10.000 Credits kostenlos pro Monat. Open-Source SDK, generiert aus OpenAPI 3.1, immer synchron mit dem Backend.

99,9% SLA · kostenpflichtige Tarife · 30 Tage Status →