Skip to main content

Asterwise

asterwise-python

PyPI version Python versions

The official Python library for Asterwise — Vedic + Western astrology, numerology, tarot, crystals, and dreams. 118 endpoints, generated from the API's OpenAPI document so the types match what the server sends. Every position is checked against NASA JPL Horizons, median 0.046 arcseconds over 80 positions from 1950 to 2050.

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

118 typed SDK methods across 13 API classes covering 118 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 103 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.md → python -m build → publish with twine upload.

Support

support@asterwise.com

License

Commercial. See LICENSE.

Metadata

Release files for asterwise 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asterwise 0.2.4
File Size Uploaded
asterwise-0.2.4.tar.gz 205.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for asterwise 0.2.4
File Interpreter ABI Platform
asterwise-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 727.6 kB

Release files / asterwise-0.2.4.tar.gz

Download URL asterwise-0.2.4.tar.gz
Size 205.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8ef5ec1c689cadaf2bb54dc63dd6939938fd542da936ac7061500bc00b154ed3
BLAKE2b-256 checksum
How to use checksums
d5369e7e021816ef83a8cc0c77e866f2465da8b3670cb285a30d8a3d07194497
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / asterwise-0.2.4-py3-none-any.whl

Download URL asterwise-0.2.4-py3-none-any.whl
Size 522.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a32c54c95df79c45f76736707b5f06883a3806e17f3bce7cbbec0b08c0afa469
BLAKE2b-256 checksum
How to use checksums
c4e87cb9285460247bfbeb1e3d5c6ecf90257f94e5e71adabb80e709b704743d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release history Release notifications | RSS feed

0.12.0

2 release files

0.11.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page