Skip to content

ckstash/solarius

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Solarius

Solarius is a Python library for calculating your precise solar return β€” the exact moment the Sun returns to the same ecliptic longitude it occupied at your birth β€” according to the Gregorian calendar. This real birthday and can differ from your civil birthday in a given future year due to leap years, etc.

To give you accurate results anywhere in the world, Solarius uses:

  • skyfield to compute precise positions of celestial bodies.
  • geopy to map the names of cities and countries to coordinates.
  • timezonefinder for mapping geographical coordinates to timezones.
  • pytz to convert between UTC and local times using regional daylight-saving rules.

πŸ“¦ Installation

pip install solarius

Built for Python 3.12 or above.


πŸš€ Quick Start

from solarius.model import SolarReturnCalculator

calculator = SolarReturnCalculator(ephemeris_file="de421.bsp")

# Predict without printing
date_str, time_str, tz_name = calculator.predict(
    official_birthday="18-01-1996",
    official_birth_time="02:30",
    birth_country="France",
    birth_city="Paris",
    current_country="France",
    current_city="Paris",
    target_year="2026"
)

print(date_str, time_str, tz_name)

# Or use the convenience printer
calculator.print_real_birthday(
    official_birthday="18-01-1996",
    official_birth_time="02:30",
    birth_country="France",
    birth_city="Paris",
    current_country="France",
    current_city="Paris",
    target_year="2026"
)

πŸ“š API Reference

See here

About

Python library for predicting solar returns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages