Skip to main content

Python client for Tuffy's Astrology API

Project description

Tuffy's Astrology — Python SDK

Zero-dependency Python client for the Tuffy's Astrology API.

Install (local, for now)

pip install -e sdk/python

Usage

from tuffys_astrology import TuffysAstrology

client = TuffysAstrology(
    base_url="https://your-host.example.com",
    api_key="optional-key",
)

chart = client.natal_chart(
    datetime="1990-06-15T12:00:00Z",
    latitude=51.5,
    longitude=0,
)

vedic = client.vedic_chart(
    datetime="1990-06-15T12:00:00Z",
    latitude=51.5,
    longitude=0,
    ayanamsa="lahiri",
)

# Ashtakavarga, shadbala, transits, synastry, eclipses, muhurta, etc.
ashtaka = client.ashtakavarga(
    datetime="1990-06-15T12:00:00Z",
    latitude=51.5,
    longitude=0,
)

Errors

HTTP errors surface as TuffysAstrologyError with .status, .code, .message, .details.

Requires

Python 3.9+. No external dependencies (uses stdlib urllib).

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

tuffys_astrology-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

tuffys_astrology-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file tuffys_astrology-0.1.0.tar.gz.

File metadata

  • Download URL: tuffys_astrology-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tuffys_astrology-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b3df640e5d9f9d38c0e2cd0dbdaa8117e47700b2ad2ccde31f80fe0e759252ea
MD5 face97daf8b7c32eb7999cf037d2f24a
BLAKE2b-256 5f5e58851cccca7f4cc842e50ada09070a4d2261f363f7d5d1fbbfc24af61ab2

See more details on using hashes here.

Provenance

The following attestation bundles were made for tuffys_astrology-0.1.0.tar.gz:

Publisher: publish-pypi.yml on omkarjaliparthi/tuffys-ai-astrology

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tuffys_astrology-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tuffys_astrology-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37df56a8aefc3b4635c220a94b8975e2e390007f42b454f11db8e8dcf90062b5
MD5 18d6417f397373ec69adedfb0f0d340e
BLAKE2b-256 366221f6284b12cbaf6416146018280ba1f8edfb1c16be46d6ed12a1f8762bd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for tuffys_astrology-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on omkarjaliparthi/tuffys-ai-astrology

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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