Skip to main content

An open source Python library for advanced astronomical calculations like planet longitude, house sign, shadbala, etc...

Project description

VedAstro Python

License GitHub Issues

This is a Python wrapper VedAstro for VedAstro. A powerful tool for astronomical calculations and data analysis. It provides a collection of functions and classes to perform various astronomical calculations, such as celestial object positions, time conversions, coordinate transformations, and more.

Features

  • Calculate the position of celestial objects (planets, stars, etc.) at a given date and time.
  • Calculate Dasas
  • Calculate Charts ( Rasi , Dasa .. etc)
  • Many more ...

Install

Step 1: Download .NET 7

Step 2: Install VedAstro using pip:

pip install vedastro

Watch Video Guide

Demo Usage

Here's a simple example.

from vedastro.calculators import SaturnInAries
from vedastro.objects import GeoLocation, Time, Person, Gender
import VedAstro.Library as VedAstro

# Create a GeoLocation object for Tokyo, Japan
geolocation = GeoLocation(location="Tokyo", latitude=35.6895, longitude=139.6917).geolocation

# Define the birth date, time, and time offset
date = "07/05/2010"
time = "06:42"
time_offset = "+09:00"

# Create a Time object for the birth date, time, and time offset
time_ob = Time(date, time, time_offset, geolocation).time_object

# Define the person's ID, user ID, notes, name, and gender
id = "1234"
user_id = "123"
notes = ""
name = "John Doe"
gender = Gender.Male

# Create a Person object for John Doe with the provided details
john_doe = Person(id=id, user_id=user_id, name=name, gender=gender, birth_time=time_ob, notes=notes).person

# do calculation to check if saturn is in aries at a given time
saturn_aries = VedAstro.HoroscopeCalculatorMethods.SaturnInAries(time_ob)

# data if the astro event occured
occurrence = saturn_aries.Occuring

# get the planets or houses related to this astro event
related_body = saturn_aries.RelatedBody

# Print the results
print("Occurrence of Saturn in Aries:", occurrence)
print("Related celestial body:", related_body)

Other Example/Demo Code

  • Calculate Events calculate Muhurtha events for a person in a time range
  • Set Custom Ayanamsa change Ayanamsa to Lahiri, Krishnamurti or Yukteswar
  • Planet & House Data calculate astrological data for a house or planet, exp: House Strenght, Planet Longitude, House Sign, etc..

Contributing

Contributions to VedAstro Python are welcome! If you find a bug, have a feature request, or want to contribute code, please open an issue or submit a pull request. Make sure to read our contribution guidelines before getting started.

License

VedAstro Python is released under the MIT License. See LICENSE for more information.

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

vedastro-1.1.7.tar.gz (2.3 MB view hashes)

Uploaded Source

Built Distribution

vedastro-1.1.7-py3-none-any.whl (2.3 MB view hashes)

Uploaded Python 3

Supported by

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