Skip to main content

SolarAge

SolarAge is a Python package designed to provide detailed information about a person's birthday, including zodiac signs, animal years, age calculations, and season of birth. It supports conversions between the Persian (Jalali), Gregorian, and Islamic calendars.

Features

  • Zodiac Sign: Get the zodiac sign based on the Gregorian birthdate.
  • Animal Year: Calculate the Chinese Zodiac animal year.
  • Birthstone: Get the birthstone based on the Persian month.
  • Age Calculation: Calculate a person's age in years, months, and days.
  • Season: Determine the season of birth (Spring, Summer, Autumn, or Winter).
  • Moon Rotation: Get the approximate number of moon rotations since the birthdate.
  • Date Conversions: Convert birthdate between Persian, Gregorian, and Islamic calendars.
  • Days Until Next Birthday: Calculate the number of days until the next birthday.

Installation

You can install the package using pip:

pip install SolarAge

Usage

Here's an example of how to use the SolarAge class:

from SolarAge import BirthdayInfo

# Create an instance of BirthdayInfo with a Persian birthdate (year, month, day)
bd = BirthdayInfo(1386, 2, 3)

# Get detailed birthday information
info = bd.get_info()

# Print the information
print(info)

Output Example:

{
    "birthday": "3 Ordibehesht، 1386",
    "miladi": "2007 ، April 23",
    "ghamari": "1428 7 23",
    "age_years": 17,
    "age_months": 9,
    "age_days": 18,
    "total_days": "6,516",
    "week_day": "Saturday",
    "season": "Spring",
    "zodiac_sign": "Taurus",
    "animal_year": "Pig",
    "days_until_birthday": 52,
    "moon_rotation": 241,
}

Dependencies

  • jdatetime: For working with the Persian (Jalali) calendar.
  • convertdate: For converting between Gregorian, Islamic, and Persian calendars.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Explanation:

  1. Features: Describes the key features of your package.
  2. Installation: Instructions to install the package via pip.
  3. Usage: A code snippet demonstrating how to use the SolarAge class.
  4. Dependencies: Lists the external libraries required for your package to function.
  5. License: Optional section if you're including a license for the project.

Release files for SolarAge 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SolarAge 0.0.2
File Size Uploaded
solarage-0.0.2.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for SolarAge 0.0.2
File Interpreter ABI Platform
SolarAge-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / solarage-0.0.2.tar.gz

Download URL solarage-0.0.2.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
03729423b3b4a641f43a2bcc21fe2dd2f309b0398ff55507127169965bc1008f
BLAKE2b-256 checksum
How to use checksums
23b3fe26ca4245442c8d992bbcf1bb4a05bed45b602532170f89b19829dcdb5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release files / SolarAge-0.0.2-py3-none-any.whl

Download URL SolarAge-0.0.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d43d7addf29b1f99be4ee5539c99634e2239b65d025bacd7678a2dffdea0881
BLAKE2b-256 checksum
How to use checksums
37d787201f210e73f7d24b07fbc38300c33e88b6522118ac10f16bd20fa45d22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page