Skip to main content

Official Python SDK for the Asterwise API — Vedic and Western astrology, numerology, tarot, crystals, dreams. 115+ endpoints.

Project description

Asterwise

asterwise-python

PyPI version Python versions

The official Python library for Asterwise — Vedic + Western astrology, numerology, tarot, crystals, and dreams. 115+ endpoints. Classical accuracy. Ships in days.

Documentation · API Reference · Pricing · MCP server

Installation

pip install asterwise

Quickstart

import asterwise
from asterwise.api.astrology_api import AstrologyApi

configuration = asterwise.Configuration(
    host="https://api.asterwise.com",
    access_token="YOUR_API_KEY",
)

with asterwise.ApiClient(configuration) as client:
    api = AstrologyApi(client)
    result = api.natal_chart(
        asterwise.NatalRequest(
            date="1985-11-12",
            time="06:45",
            location="Mumbai, India",
            ayanamsa="lahiri",
        )
    )
    print(result)

Get a free API key at asterwise.com.

What you can build

Domain Operations
Vedic astrology 38
Western astrology 21
Numerology 24
Horoscope 8
Matchmaking 5
Tarot 9
Crystals & dreams 7
KP & Lal Kitab 5

117 typed SDK methods across 13 API classes; marketed as 115+ REST endpoints.

What makes Asterwise different

  • Classical BPHS source citations on every interpretation
  • 5-level Vimshottari Dasha (Maha → Antar → Pratyantar → Sookshma → Prana) — most APIs return two
  • Rajju and Vedha as hard vetoes in matchmaking — not just point scores
  • HMAC-signed responses for auditability
  • MCP server with 100+ tools for Claude and Cursor integration

Examples

from datetime import date
from asterwise.api.western_astrology_api import WesternAstrologyApi
from asterwise.api.numerology_api import NumerologyApi
from asterwise.api.tarot_api import TarotApi

with asterwise.ApiClient(configuration) as client:
    western = WesternAstrologyApi(client)
    chart = western.western_natal_chart(
        asterwise.WesternNatalRequest(
            date="1985-11-12",
            time="06:45",
            location="Mumbai, India",
        )
    )

    numerology = NumerologyApi(client)
    path = numerology.life_path(var_date=date(1985, 11, 12))

    tarot = TarotApi(client)
    spread = tarot.tarot_three_card(
        asterwise.SpreadRequest(question="What should I focus on this month?")
    )

Requirements

Python 3.9+. An API key from asterwise.com.

Documentation

Full API reference: docs.asterwise.com

Development

Regenerate from https://api.asterwise.com/openapi-sdk.json (see asterwise-api/_docs/SDK_CONTRACT.md).

Requirements: Node.js/npm (for npx), Java 11+ for OpenAPI Generator.

bash scripts/generate.sh

Versioning: regenerate → bump version in pyproject.toml and asterwise/__init__.py → update CHANGELOG.mdpython -m build → publish with twine upload.

Support

support@asterwise.com

License

Commercial. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asterwise-0.2.1.tar.gz (201.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asterwise-0.2.1-py3-none-any.whl (515.5 kB view details)

Uploaded Python 3

File details

Details for the file asterwise-0.2.1.tar.gz.

File metadata

  • Download URL: asterwise-0.2.1.tar.gz
  • Upload date:
  • Size: 201.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for asterwise-0.2.1.tar.gz
Algorithm Hash digest
SHA256 fbeb45409e2ad8688cbe41fba5305e2fcfe7f64f042666a56cd78b9edf4a02e8
MD5 11c74bbf41ec3dfba9106489feb24c93
BLAKE2b-256 bb83108606ae7ca68691e33bc288c81a657f8607036a8d717c0c1b07dc324fa3

See more details on using hashes here.

File details

Details for the file asterwise-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: asterwise-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 515.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for asterwise-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6aa709ce870293a2be265aa7eb2798b571a8481ba2cd4fa4250adc5d8154db96
MD5 654439652ebf5ade75a25f4007165e7b
BLAKE2b-256 20ad50ef18ce3bdf006715141d05ffc958e9386d5d4111ecbe787c3988938ce3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page