Skip to main content

hijri-cli

A simple command that prints and converts dates in the Umm al-Qura Hijri calendar, the official calendar of Saudi Arabia. It works like the date command, with no locale setup needed.

Install

pip install hijri-cli

Usage

Print today's Hijri date:

$ hijri
Friday 3 Jumada II 1448 14:34:5

Convert a Gregorian date to Hijri:

$ hijri -d 2024-08-05
Monday 1 Safar 1446

Convert a Hijri date to Gregorian:

$ hijri -g 1446-02-01
Monday 05 August 2024

Show help:

$ hijri --help

Accuracy

Dates from 1343 AH to 1500 AH (1924 to 2077 CE) follow the official Umm al-Qura table. Dates outside this range are calculated arithmetically and may differ from the official calendar by a day.

Credits

This tool is inspired by, and built on, the hijra project by Ojuba Linux, written by Muayyad Saleh Alsadi. Sadly, that project is no longer being developed. This tool reuses its conversion engine (hijra.py) and adds Umm al-Qura support.

The Umm al-Qura table data comes from the hijridate project by Mohammed Alshehri.

License

Released under the Waqf Public License. See LICENSE.txt.

The Umm al-Qura table data is under the MIT License. See hijridate-LICENSE.txt.

Metadata

Release files for hijri-cli 0.1.0

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

Source distribution (sdist)

Source distribution for hijri-cli 0.1.0
File Size Uploaded Provenance Actions
hijri_cli-0.1.0.tar.gz 26.4 kB Without provenance Details for hijri_cli-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hijri-cli 0.1.0
File Interpreter ABI Platform Actions
hijri_cli-0.1.0-py3-none-any.whl Python 3 none any Details for hijri_cli-0.1.0-py3-none-any.whl

Total release size: 52.6 kB

Release files / hijri_cli-0.1.0.tar.gz

Download URL hijri_cli-0.1.0.tar.gz
Size 26.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8fba4e064759562ce5a90289402ed054c3aa5b909ba08e8f24e93d59837b5222
BLAKE2b-256 checksum
How to use checksums
191e2315af6e371d206fd04067e42fb129f7a1e7ae8575e85b1db38f7d4244b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / hijri_cli-0.1.0-py3-none-any.whl

Download URL hijri_cli-0.1.0-py3-none-any.whl
Size 26.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f4ca7a32d4141f005df1197292b760b32610a61009ad980644162d2caf6db51
BLAKE2b-256 checksum
How to use checksums
faffa5b452c4b849104a6b3f51ec22df5af2891f1674e0aa5db602602659c9f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for hijri-cli 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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