GeezDate
A Python package for calculating and converting dates between the Ethiopian (Geez) and Gregorian calendars.
Features
- Convert dates between Ethiopian (Geez) and Gregorian calendars.
- Format Ethiopian dates in Amharic, Tigrigna, or English.
- Simple, intuitive API for developers.
- Utility functions for date formatting and localization.
Installation
pip install geezdate
Requirements: Python 3.11 or later.
Usage
Basic usage with conversion and formatting:
from geezdate import GeezDate, FormatType
import datetime
# Convert Gregorian to Ethiopian (Geez)
gregorian = datetime.date(2024, 5, 1)
geez = GeezDate.from_date(gregorian)
print(f"Gregorian: {gregorian} → Geez: {geez}") # Example: Gregorian: 2024-05-01 → Geez: 2016-08-23
# Convert Geez back to Gregorian
print(f"Geez: {geez} → Gregorian: {geez.to_date}")
# Format the Geez date in different languages
print(geez.format('.d/.m/.y', FormatType.Amharic)) # 23/08/2016 (Amharic)
print(geez.format('.D .M .Y', FormatType.Tigrigna)) # ረቡዕ ግንቦት 2016 (Tigrigna)
print(geez.format('.D, .M .y (.E)', FormatType.English)) # WEDNESDAY, MAY 16 (GC)
Project Structure
geezdate/
│
├── src/
│ ├── __init__.py
│ ├── geezdate.py
│ ├── format.py
│ └── demo.py
├── test/
│ └── main.py
└── pyproject.toml
Development
Run the test/demo script:
python test/main.py
Or to run the simple demo:
python -m src
License
This project is licensed under the MIT License.
Contact
- Author: Kidus
- Email: kidus.meab@gmail.com
- GitHub: kidusdev/geezdate
Issues
Found a bug or have a feature request? Open an issue.
Metadata
Release files for geezdate 0.1.3
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 |
|---|---|---|---|---|
| geezdate-0.1.3.tar.gz | 4.8 kB | Without provenance | Details for geezdate-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geezdate-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for geezdate-0.1.3-py3-none-any.whl |
Total release size: 10.3 kB
Release files / geezdate-0.1.3.tar.gz
| Download URL | geezdate-0.1.3.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
092cd19a021ec1c38a60729fa132d9370c918d819e1ed8b70181e480c01ff8df
|
|
BLAKE2b-256 checksum How to use checksums |
701cf17ab59fbcc403ce62407b863fec8c81dfcb99dcb82631ac7023f36c92b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.7
|
Release files / geezdate-0.1.3-py3-none-any.whl
| Download URL | geezdate-0.1.3-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10d9c7a22b7252dbaddb653466b59472287a24ae0e69c7a133e82ba909830a98
|
|
BLAKE2b-256 checksum How to use checksums |
daac8fb1439ceae37a7da98245255500da8c6ab306744e8b11566ef8071eb38d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.7
|
Security for geezdate 0.1.3
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.