Skip to main content

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)

Or run the demo function:

from geezdate import demo
demo()
# Output: Hello, World!

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

Issues

Found a bug or have a feature request? Open an issue.

Metadata

Release files for geezdate 0.1.1

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

Source distribution (sdist)

Source distribution for geezdate 0.1.1
File Size Uploaded Provenance Actions
geezdate-0.1.1.tar.gz 5.1 kB Without provenance Details for geezdate-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 10.8 kB

Release files / geezdate-0.1.1.tar.gz

Download URL geezdate-0.1.1.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
109b5225d320245e2ec25f2dc0e2be6e22f29bee71172dfb465520d723e8a0ad
BLAKE2b-256 checksum
How to use checksums
ce590e035cbdc842edde9540a0eb60f52b04b60728160317f732810528dbb7d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Release files / geezdate-0.1.1-py3-none-any.whl

Download URL geezdate-0.1.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76c0899fa6bee2a50160192d1f2e330bbedd36f4470b5dbd06a3260f3c353371
BLAKE2b-256 checksum
How to use checksums
2d4592672d04ae37cd5cc31beb3fd8f22e185f9d2ce3eed6c34641cfede43be2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Security for geezdate 0.1.1

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.

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