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. 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 40
Matchmaking 5
Western astrology 17
Horoscope 8
Numerology 24
KP + Lal Kitab 5
Tarot 9
Crystals & dreams 7
Utilities 2

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

What makes Asterwise different

  • Structured classical interpretations on every response
  • 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.3.tar.gz (205.1 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.3-py3-none-any.whl (521.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: asterwise-0.2.3.tar.gz
  • Upload date:
  • Size: 205.1 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.3.tar.gz
Algorithm Hash digest
SHA256 8a79fd17813d77f0345bc29d2eb5a8fd492e5a3517c79e35d97b70f1270209e5
MD5 7d10945c9f41f557d1bca4f02ccded8d
BLAKE2b-256 bd0ef22357612b2d8c313176761ae8d51db84c09cfa2309fa06dfcbda7157bc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asterwise-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 521.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6bd56fa5976bc37ab3a9fde4d65fcc8d8241e88220d039642a3ff79e37c7fc64
MD5 f065209bd44f469831b11174dbee90be
BLAKE2b-256 03cb8df31bb2a7804bd910d9a247c0ee6219bd7345ef63133dca53377aeb69ae

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