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 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

  • 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.2.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.2-py3-none-any.whl (515.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: asterwise-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8bb42368573c5c82526600ca183ab7e068a6e76a1877071165badefac0fb0252
MD5 9965075d089927ec746fdd6c84e4c26a
BLAKE2b-256 ca10253606603822c0700601de9b189d2c007838e80e43dbfa897b50710a4856

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asterwise-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 87ff39e6da3121512c8622b4ebc5852570e6141d8371bebd55cdd9e210b2e1c4
MD5 c0d31853f3d65e5d1f9eb894272ea97f
BLAKE2b-256 5a3aad4cd53de2d55509534df5fe4da2049ed9261668541f08a1be111c7c7d7b

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