Skip to main content

Al Adhan - Islamic prayer times API in Python!

Without any API keys, authentication, or registration, you can use this API to get the Islamic Adhan (a call to prayer) times for any location in the world for free using Python, this project uses the aladhan.com official prayer times API (thanks to them for the great work and free API). I have made this API to convert the JSON responses from the aladhan.com API and simplify them to a Python objects and classes, so you can use them in your Python projects and they are easy to use.

This is still the alpha version, there is a lot of coming features, also note that any big changes in the API will happen at any time! If you find any bugs or problems, please report them in the issues page.


Learn more about Adhan in Wikipedia


Features

  • Get the prayer times for any location in the world.
  • Get the prayer times for any date.
  • No API keys, authentication, or registration required.
  • Converting the JSON responses to Python objects and OOP based.
  • More adhan metadata made by the module, such as the number of rakat in salah, sunnan al rawatib rakat number, is hijri or secret salah, etc.

Installation

The project is available on PyPI, so you can install it using pip:

pip install aladhan-api

If you have an older version of the API, you can update it to the latest version using:

pip install aladhan-api --upgrade

Documentation

Detailed documentation for the API can be found at Read the Docs.


Versioning

v6.1.0 (Alpha) Latest

v6.0.0 (Alpha)

v5.0.0 (Alpha)

v4.1.0 (Alpha)

v4.0.0 (Alpha)

v3.0.0 (Alpha)

v2.2.0 (Alpha)

v2.0.1 (Alpha)

v2.0.0 (Alpha)

v1.0.0 (Alpha) - initial release


See all the releases here.

Metadata

Release files for aladhan-api 6.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 aladhan-api 6.1.0
File Size Uploaded Provenance Actions
aladhan-api-6.1.0.tar.gz 13.0 kB Without provenance Details for aladhan-api-6.1.0.tar.gz

Release files / aladhan-api-6.1.0.tar.gz

Download URL aladhan-api-6.1.0.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0924fd9b284f6df03c3ff90469bdbce733d90784f5c944469485d20843c55561
BLAKE2b-256 checksum
How to use checksums
40ef5c788fc963a18e5b1d5e7ad86ffcaa73105a1214f0207f334b1efa431380
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Security for aladhan-api 6.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.

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