Skip to main content

A Python package to calculate Islamic prayer times for any location in the world.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aladhan-api-6.1.0.tar.gz (13.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page