This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
Releases: Kh4lidMD/AlAdhan
Releases · Kh4lidMD/AlAdhan
v6.1.0 (Alpha)
- New
api_status
method to thealadhan.Client
class, for checking API status. - New module file
aladhan/countries.py
which has acountries
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 thealadhan.City
object, raisesInvalidLocationExeption
if invalid. - The
aladhan.City
'scountry_query
argument now accepts alpha-3 and CLDR country names in addition to alpha-2 codes. - Now you can use
aladhan.Adhan
directly instead ofaladhan.adhan.Adhan
. - Added a
threading.Thread
return type to thealadhan.Adhan.wait
whenthreaded_wait
arg isTrue
. - Documentation quality improved.
Full Changelog: v6.0.0-alpha...v6.1.0-alpha
v6.0.0 (Alpha)
- 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, raisesaladhan.InvalidLocationException
if invalid. - Added missing
*args
argument to thealadhan.Adhan.wait
method, allowing passing arguments to callback not only keyword arguments. - Renamed
aladhan.Aladhan
toaladhan.Client
- Replaced
aladhan.Adhan.get_name
withget_en_name
andget_ar_name
.
v5.0.0 (Alpha)
- Set
threaded_wait
default argument in theAdhan.wait
method fromTrue
toFalse
. - Added missing file
aladhan/exceptions.py
to the repository. which was included in the package but not in the repository. - Changed
RateLimitException
toRateLimitedException
(typo fix). - Added
sunnan_al_rawatib
function to theAdhan
object, returns a dictionary withbefore
andafter
keys, each one contains the sunnan al rawatib rakat number. - Added
__version__
attribute to thealadhan
module, a version tuple like(major, minor, patch)
.
v4.1.0 (Alpha)
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.
- New Wiki page: Exception Handling
Started to save a copy of the Wiki pages in every release.
v4.0.0 (Alpha)
- Removed the
get_prayer_times
method, replaced withget_today_times
,get_calendar_times
, andget_annual_times
methods. - Fixed missing usage of
year
andmonth
arguments in the calendar method. - Added
callback
andthreaded_wait
arguments to theAdhan.wait
method. - Better code structure.
- These Wiki pages have been updated:
v3.0.0 (Alpha)
- Changed
get_calendar
name toget_prayer_times
. - Added
today_only
parameter toget_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 bealadhan.City
). - Removed
ValueError
when only one of the year or month parameters is passed toget_prayer_times
. Because the API does not return an error when one of them is missing.
v2.2.0 (Alpha)
- Added rakat method for the Adhan object, returns the number of rakat in salah.
- New Documentation
v2.0.1 (Alpha)
- Fixed import error (renamed
aladhan/location.py
toaladhan/location_types.py
v2.0.0 (Alpha)
- Changed PIP installation to
aladhan-api