Aladhan-py

Latest version: v1.1.0

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

Scan your dependencies

Page 1 of 2

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:`~aladhan.BaseDate`
- :class:`~aladhan.enums.Shafaq`
- Added a ``shafaq`` parameter for :class:`Parameters`
- :exc:`~aladhan.exceptions.InvalidShafaq`

**Changed**

- Fixed date converters, they were switched around :l

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``

0.1.3

------

**Added**

- :meth:`AsyncClient.get_qibla`
- :meth:`AsyncClient.get_asma`
- :meth:`AsyncClient.get_all_asma`
- :class:`Qibla`
- :class:`Ism`

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.