Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

solarius-0.1.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solarius-0.1.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

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

Hashes for solarius-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f8f96d05053d772fda101a0426fe12664d4a3f818be7de4256f879a97df1b535
MD5 1f535c839367bba854d035345f69ca4f
BLAKE2b-256 23bf84e8a7e4a9e585b84a967d25a9de3bbf2c998882abc825de5474dacb0461

See more details on using hashes here.

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

Hashes for solarius-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dfdd493c5b2432c3bdba842d064560887570227c821134f04fe5025f2918b46f
MD5 ca2eb3089dfcab925016145a8ab02ba3
BLAKE2b-256 b8c876f5091609bd9b23c2e5d5ff14dc3504aca605baee5aaf015f01e2be8b8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page