Python library for calculating precise solar returns
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file solarius-0.1.2.tar.gz.
File metadata
- Download URL: solarius-0.1.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8f96d05053d772fda101a0426fe12664d4a3f818be7de4256f879a97df1b535
|
|
| MD5 |
1f535c839367bba854d035345f69ca4f
|
|
| BLAKE2b-256 |
23bf84e8a7e4a9e585b84a967d25a9de3bbf2c998882abc825de5474dacb0461
|
File details
Details for the file solarius-0.1.2-py3-none-any.whl.
File metadata
- Download URL: solarius-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfdd493c5b2432c3bdba842d064560887570227c821134f04fe5025f2918b46f
|
|
| MD5 |
ca2eb3089dfcab925016145a8ab02ba3
|
|
| BLAKE2b-256 |
b8c876f5091609bd9b23c2e5d5ff14dc3504aca605baee5aaf015f01e2be8b8d
|