AstroWay/api v2.74.2 · id
semua sistem normal
// sdk · Python

SDK Python untuk API AstroWay

Resmi `astroway` di PyPI — `Astroway` (sinkron) + `AsyncAstroway` (asinkron) di atas `httpx`. Permukaan identik — API yang sama pada kedua klien. Hierarki kesalahan gaya Stainless, ulangi pada 408/409/429/5xx, paket tipifikasi PEP 561. Python 3.9+, Penerbit Terpercaya OIDC.

// 01 / install

Pasang

pip install astroway

impor: from astroway import Astroway

// 02 / highlights

Fitur Unggulan

// 03 / first request

Permintaan pertama

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

Mulai dengan Python

10.000 kredit gratis per bulan. SDK open-source, dibuat dari OpenAPI 3.1, selalu sinkron dengan backend.

99.9% SLA · paket berbayar · 30d status →