Aladhan.py

Latest version: v1.2.1

Safety actively analyzes 621309 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.2.1

------

**Changed**

- Fix :attr:`Prayer.time_utc`
- Fix times being one day behind.
- Fix :meth:`Client.get_next_prayer`
- Fix :meth:`Client.get_islamic_holidays`
- Remove syntax highlighting

**Removed**

- Remove :attr:`Prayer.remaining_utc`

1.2.0

------

**Added**

- Covered current event endpoints.
- :meth:`Client.get_current_time`
- :meth:`Client.get_current_date`
- :meth:`Client.get_current_timestamp`
- :meth:`Client.get_current_islamic_year`
- :meth:`Client.get_current_islamic_month`
- Covered holidays endpoints.
- :meth:`Client.get_next_hijri_holiday`
- :meth:`Client.get_hijri_holidays`
- :meth:`Client.get_islamic_holidays`
- Covered info endpoints
- :meth:`Client.get_status`
- :meth:`Client.get_special_days`
- :meth:`Client.get_islamic_months`
- Covered next prayer endpoints
- :meth:`Client.get_next_prayer_by_address`
- :class:`NextPrayerData`
- :class:`~aladhan.BaseDate`
- :class:`~aladhan.enums.Shafaq`
- Added a ``shafaq`` parameter for :class:`Parameters`
- :exc:`~aladhan.exceptions.InvalidShafaq`
- :exc:`~aladhan.exceptions.TooManyRequests`
- Adding the new changes to the api.
- :attr:`Timings.first_third`
- :attr:`Timings.last_third`
- Auto management of rate limits.

**Changed**

- Fixed date converters, they were switched around ...
- :attr:`Prayer.data` is now Union[:class:`Data`, :class:`NextPrayerData`]

**Removed**

- No longer supports Python v3.6.
- `Prayer.timings`

1.1.0

------

**Added**

- Covering more 5 endpoints about date converting
- :meth:`Client.get_hijri_from_gregorian`
- :meth:`Client.get_gregorian_from_hijri`
- :meth:`Client.get_hijri_calendar_from_gregorian`
- :meth:`Client.get_gregorian_calendar_from_hijri`
- :meth:`Client.get_islamic_year_from_gregorian_for_ramadan`

**Changed**

- The following are now optional
- :attr:`Date.data`
- :attr:`Date.readable`
- :attr:`Date.timestamp`

1.0.0

------

**Added**

- Synchronous usage for the module !
- ``__all__`` and ``__slots__`` for better performance.
- :ref:`Module exceptions <ref-exceptions>`.
- ``logging`` is now implemented.
- :meth:`Method.params_str` a string in ``"fajr,maghrib,isha"`` format.

**Changed**

- Renamed ``DefaultArgs`` to ``Parameters``
- Renamed ``Meta.default_args`` to ``Meta.parameters``
- Renamed ``defaults`` parameter in all getters to ``params``
- ``Timings.next_prayer`` now returns ``None`` instead if upcoming prayer wasn't in date. and Its no longer awaitable.
- :meth:`Method.params` changed to be a property
- :class:`Schools`, :class:`MidnightModes`, :class:`LatitudeAdjustmentMethods` are now enums.

**Removed**

- ``AsyncClient``. Replaced with ``Client(is_async=True)`` instead.

0.2.0

------

**Added**

- method ``close`` for ``AsyncClient``
- custom method.
- timezone param for :class:`DefaultArgs`
- async context manager for ``AsyncClient``

**Removed**

- beartype.

0.1.4

------

**Added**

- :attr:`Timings.as_dict`
- ``__hash__`` for the rest of base types.

**Changed**

- Renamed ``AsyncClient.__get_res`` to ``AsyncClient._get_res``
- Renamed ``AsyncClient.__get_timings`` to ``AsyncClient._get_timings``

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.