Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Releases: Kh4lidMD/AlAdhan

v6.1.0 (Alpha)

03 Jan 10:36
Compare
Choose a tag to compare
  • New api_status method to the aladhan.Client class, for checking API status.
  • New module file aladhan/countries.py which has a countries dictionary variable with a list of all countries alpha-2, alpha-3 codes, and CLDR country names for searching and validating countries stuff better (see dict source)
  • Added a validator for the country_query (country previously) arg in the aladhan.City object, raises InvalidLocationExeption if invalid.
  • The aladhan.City's country_query argument now accepts alpha-3 and CLDR country names in addition to alpha-2 codes.
  • Now you can use aladhan.Adhan directly instead of aladhan.adhan.Adhan.
  • Added a threading.Thread return type to the aladhan.Adhan.wait when threaded_wait arg is True.
  • Documentation quality improved.

Full Changelog: v6.0.0-alpha...v6.1.0-alpha

v6.0.0 (Alpha)

20 Dec 09:52
Compare
Choose a tag to compare
  • Removed the Wiki pages documentation.
  • New documentation built with Sphinx using a theme provided by Read the Docs.
  • New aladhan.InvalidLocationException raised when a invalid location is provided.
  • Added validator for the aladhan.Coordinates class, raises aladhan.InvalidLocationException if invalid.
  • Added missing *args argument to the aladhan.Adhan.wait method, allowing passing arguments to callback not only keyword arguments.
  • Renamed aladhan.Aladhan to aladhan.Client
  • Replaced aladhan.Adhan.get_name with get_en_name and get_ar_name.

v5.0.0 (Alpha)

09 Dec 15:09
Compare
Choose a tag to compare
  • Set threaded_wait default argument in the Adhan.wait method from True to False.
  • Added missing file aladhan/exceptions.py to the repository. which was included in the package but not in the repository.
  • Changed RateLimitException to RateLimitedException (typo fix).
  • Added sunnan_al_rawatib function to the Adhan object, returns a dictionary with before and after keys, each one contains the sunnan al rawatib rakat number.
  • Added __version__ attribute to the aladhan module, a version tuple like (major, minor, patch).

v4.1.0 (Alpha)

03 Dec 02:31
fe52480
Compare
Choose a tag to compare

Added custom exceptions especially for the following return codes:

  • 400 Bad Request error: BadRequestException
  • 429 Rate limited error: RateLimitedException
  • 500 Internal Server error: ServerErrorException

They're avaialble in the aladhan.exceptions, could be directly imported from the aladhan module.

Started to save a copy of the Wiki pages in every release.

v4.0.0 (Alpha)

02 Dec 00:36
381d74b
Compare
Choose a tag to compare
  • Removed the get_prayer_times method, replaced with get_today_times, get_calendar_times, and get_annual_times methods.
  • Fixed missing usage of year and month arguments in the calendar method.
  • Added callback and threaded_wait arguments to the Adhan.wait method.
  • Better code structure.
  • These Wiki pages have been updated:

v3.0.0 (Alpha)

29 Nov 14:09
2e81005
Compare
Choose a tag to compare
  • Changed get_calendar name to get_prayer_times.
  • Added today_only parameter to get_prayer_times.
  • Folder documentation removed.
  • New better documentation hosted in the repository Wiki.
  • All aladhan.location_types objects are now available in the main import directly (e.g. aladhan.location_types.City could be aladhan.City).
  • Removed ValueError when only one of the year or month parameters is passed to get_prayer_times. Because the API does not return an error when one of them is missing.

v2.2.0 (Alpha)

26 Nov 13:18
5f5b01a
Compare
Choose a tag to compare
  • Added rakat method for the Adhan object, returns the number of rakat in salah.
  • New Documentation

v2.0.1 (Alpha)

25 Nov 15:08
994b380
Compare
Choose a tag to compare
  • Fixed import error (renamed aladhan/location.py to aladhan/location_types.py

v2.0.0 (Alpha)

25 Nov 14:52
2b474c0
Compare
Choose a tag to compare
  • Changed PIP installation to aladhan-api