Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sidereal astrology Python library

Tags:

python

I'm trying to get planetaries positions (in the zodiac wheel) and the aspects (trines, oppositions, etc.) for a Python app. My main issue is that all the solutions I've installed until now are based on the tropical system, and I would like to have the Lahiri or Fagan-Bradley sidereal astrology ones.

I've found two great solutions :

  • Flatlib : https://github.com/flatangle/flatlib/tree/master/flatlib
  • Astrology API : https://astrologyapi.com/western-api-docs/api-ref/164/western_horoscope

Flatlib is doing perfectly what I'm looking for, i.e. :

date = Datetime('2015/03/13', '17:00', '+00:00')
pos = GeoPos('38n32', '8w54')
chart = Chart(date, pos)

sun = chart.get(const.SUN)
print(sun)
<Sun Pisces +22:47:25 +00:59:51>

...but it uses the tropical system with the Swiss Ephemeris. Soooooo sad :'(

Astrology API is providing Western and Vedic astrology. But as Vedic astrology can give me the good planetaries positions, they don't offer aspect and other functions that I need. They redirect me on their "Western Astrology" offer, but this is tropical only.

Is anybody has found a solution for that type of needs ? Many thanks :)

like image 827
Arthur C-G Avatar asked Oct 17 '25 14:10

Arthur C-G


1 Answers

There are two branches of flatlib:

  1. master
  2. sidereal

You can calculate Lahiri or Fagan-Bradley sidereal from sidereal branch

Sidereal Astrology

like image 92
Vinesh Majethiya Avatar answered Oct 19 '25 05:10

Vinesh Majethiya