// sdk · Python
Python SDK voor de AstroWay API
Officiële `astroway` op PyPI — `Astroway` (sync) + `AsyncAstroway` (async) bovenop `httpx`. Identieke surface — dezelfde API op beide clients. Stainless-stijl foutenhiërarchie, retry bij 408/409/429/5xx, PEP 561 getypeerde package. Python 3.9+, Vertrouwde Uitgever OIDC.
// 01 / install
Installeren
pip install astroway importeren: from astroway import Astroway
Bekijk in de registry → astroway
// 02 / highlights
Kenmerken
- Sync + Async clients
- httpx + Pydantic
- Ingebouwde retry + backoff
- PEP 561 getypeerd
- Vertrouwde Uitgever OIDC
// 03 / first request
Eerste verzoek
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 met Python
10.000 credits gratis per maand. Open-source SDK, gegenereerd vanuit OpenAPI 3.1, altijd synchroon met de backend.