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:
- Features: Describes the key features of your package.
- Installation: Instructions to install the package via
pip. - Usage: A code snippet demonstrating how to use the
SolarAgeclass. - Dependencies: Lists the external libraries required for your package to function.
- 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)
| File | Size | Uploaded | |
|---|---|---|---|
| solarage-0.0.2.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|