AstroWay/api v2.74.2 · it
tutti i sistemi sono operativi
// sdk · Python

SDK Python per l'API AstroWay

Ufficiale `astroway` su PyPI — `Astroway` (sync) + `AsyncAstroway` (async) su `httpx`. Superficie identica — la stessa API su entrambi i client. Gerarchia degli errori in stile Stainless, ritento su 408/409/429/5xx, pacchetto tipizzato PEP 561. Python 3.9+, Editore attendibile OIDC.

// 01 / install

Installa

pip install astroway

importa: from astroway import Astroway

// 02 / highlights

Funzionalità

// 03 / first request

Prima richiesta

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

Inizia con Python

10.000 crediti gratis al mese. SDK open-source, generato da OpenAPI 3.1, sempre sincronizzato con il backend.

99.9% SLA · piani a pagamento · 30d stato →