Skip to main content

A Python libray for astronomical calculations.

Project description

VedAstro Python

License GitHub Issues

This is a Python wrapper library 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 ...

Installation

Before installing VedAstro, please ensure that you have DotNET 7 installed on your system. If you don't have it yet, you can download and install it from the official Microsoft website:

Download .NET 7

You can install VedAstro using pip:

pip install vedastro

Usage

Here's a simple example.

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

# 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

# Create a SaturnInAries calculator object for the given time and person
saturn_aries = SaturnInAries(time_ob, john_doe)

# Calculate the occurrence of Saturn in Aries
occurrence = saturn_aries.occuring

# Get the related celestial body for Saturn in Aries
related_body = saturn_aries.related_body

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

For more examples and detailed documentation, please refer to the documentation provided.

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-0.1b0.tar.gz (971.4 kB view hashes)

Uploaded Source

Built Distribution

vedastro-0.1b0-py3-none-any.whl (929.9 kB 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