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.
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| solarage-0.0.2.tar.gz | 4.4 kB | Without provenance | Details for solarage-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| SolarAge-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for SolarAge-0.0.2-py3-none-any.whl |
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
|
Security for SolarAge 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.