Skip to main content

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

Project description

✨ Vedic Astrology in Python

License GitHub Issues

🗺️ What can this do?

Easily code complex vedic astrology math and logic. 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.

🏎️ Quick Start

Step 1: Download and install .NET 7 Runtime (How?)

Step 2: Run pip install vedastro

Step 3: Do astro calculation in less than 10 lines

from vedastro import * 

#PART 1 : PREPARE NEEDED DATA
#-----------------------------------

# set birth location
geolocation = GeoLocation("Tokyo, Japan", 139.83, 35.65)

# group all birth time data together (day/month/year)
birth_time = Time("23:40 31/12/2010 +08:00", geolocation)

#PART 2 : CALCULATE ALL DATA
#-----------------------------------

#PLANETS
allPlanetDataList = Calculate.AllPlanetData(PlanetName.Sun, birth_time)
Tools.Print(allPlanetDataList)

#HOUSES
allHouseDataList = Calculate.AllHouseData(HouseName.House1, birth_time)
Tools.Print(allHouseDataList)

#ZODIAC SIGNS
allZodiacDataList = Calculate.AllZodiacSignData(ZodiacName.Gemini, birth_time)
Tools.Print(allZodiacDataList)

⚙️ How it works

Coded & compiled in C# for maximum CPU computation efficency and speed, then wrapped in Python .NET Core CLR wrapper. Can be run in Linux, Windows & Mac OS.


.NET 7 Download & Install

Download .NET 7 for Windows

Download .NET 7 for Ubuntu

sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-7.0

DESIGN NOTES

  • Vedastro Lib code is compiled into VedAstro.dll (Release always) and injected into this python code base
  • All calls needing location data both local or production python server, will contact Live vedastro API server
  • custom 3rd party API keys not supported as in C# version

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.22.0.tar.gz (8.4 MB view details)

Uploaded Source

Built Distribution

vedastro-1.22.0-py3-none-any.whl (8.5 MB view details)

Uploaded Python 3

File details

Details for the file vedastro-1.22.0.tar.gz.

File metadata

  • Download URL: vedastro-1.22.0.tar.gz
  • Upload date:
  • Size: 8.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for vedastro-1.22.0.tar.gz
Algorithm Hash digest
SHA256 86567db9f7a678da63a2b9795a95d5a5f4006eb6ec6f68761255e2a30610e0ea
MD5 49d19df0ec93bf31031756c3d8b82a42
BLAKE2b-256 03e333b8fce14dfa352929a219b801f9f82e3c82101d6b73138bce675219075d

See more details on using hashes here.

File details

Details for the file vedastro-1.22.0-py3-none-any.whl.

File metadata

  • Download URL: vedastro-1.22.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for vedastro-1.22.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22a78239b4911ec8974ce7dd6df509fdd7a60d55f00bd04fd975c8a30ef626fb
MD5 e52855ace0421341a61cc587b689d27a
BLAKE2b-256 da824dd690240667c9d663d5f9d03dceb54e063863daa16d0f33d97ed73646b0

See more details on using hashes here.

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