AstroWay/api v2.74.2 · ko
모든 시스템 정상 작동 중
// sdk · 파이썬

AstroWay API를 위한 파이썬 SDK

공식 `astroway` on PyPI — `Astroway` (동기) + `AsyncAstroway` (비동기) on top of `httpx`. 동일한 인터페이스 — 클라이언트 모두 동일한 API. Stainless-style 오류 계층, 408/409/429/5xx에 대한 재시도, PEP 561 유형화된 패키지. 파이썬 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'])

파이썬 시작하기

월 10,000 크레딧 무료. Open-source SDK로, OpenAPI 3.1에서 생성되며 백엔드와 항상 동기화됩니다.

99.9% SLA · 유료 플랜 · 30일 상태 →