Kriya — Python client for the Insights by Omkar astrology API. 109+ endpoints, zero runtime dependencies.
Project description
Kriya — Python SDK
Official Python client for Kriya — the Insights by Omkar astrology API. 109+ v1 endpoints across Western, Vedic, Hellenistic, Jaimini, KP, and electional traditions. Computed from first principles on a home-grown VSOP87D + ELP2000 + DOPRI8 engine.
Zero runtime dependencies. Uses Python stdlib urllib.request. Works on Python 3.9+.
Install
pip install kriya-astrology
Quick start
from kriya_astrology import KriyaAstrologyClient
client = KriyaAstrologyClient(api_key="sk_live_...")
chart = client.chart_natal({
"datetime": "1990-06-15T12:00:00Z",
"latitude": 19.076,
"longitude": 72.8777,
})
print(chart["bodies"])
# Ask-chart grounded in the actual ephemeris:
answer = client.ask_chart({
"natal": {
"datetime": "1990-06-15T12:00:00Z",
"latitude": 19.076,
"longitude": 72.8777,
},
"question": "What is the dominant theme of this chart?",
"tradition": "vedic",
})
print(answer["answer"])
Errors
Errors are raised as KriyaAstrologyError with status, body, and request_id attributes for correlation with server logs.
from kriya_astrology import KriyaAstrologyError
try:
client.chart_natal({...})
except KriyaAstrologyError as err:
print(f"API {err.status} (request {err.request_id}):", err.body)
raise
Generated from OpenAPI
This SDK is regenerated from the Kriya OpenAPI 3.1 spec on every API release. Endpoint coverage tracks the server automatically.
Related
- Kriya API docs — interactive Scalar explorer
- Pricing — Developer (free) / Studio ($49/mo) / Scale (custom)
- TypeScript SDK —
npm install kriya-astrology - Go SDK —
go get github.com/omkarjaliparthi/kriya-go
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kriya_astrology-1.0.0.tar.gz.
File metadata
- Download URL: kriya_astrology-1.0.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32dfd33804979f6cdc23191d5dda881294be98128abfde47e53e3c08c7184ef4
|
|
| MD5 |
849d992e3ceeedcbd5e521238397f1f7
|
|
| BLAKE2b-256 |
e7612eab0c0f700de025c3e2b4bb351cec218d1a78d308d86d441cfdfe8fe185
|
File details
Details for the file kriya_astrology-1.0.0-py3-none-any.whl.
File metadata
- Download URL: kriya_astrology-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1a7519c167c026e26d3277088bf76834dfb96efec2020f7c323e2997fe3c877
|
|
| MD5 |
fc825b7ac298b37aecdb7490f51ce4b8
|
|
| BLAKE2b-256 |
c347933cc5b98560205f7cf2dedf178f9f58768ba8a3afeeeca86915132fec34
|