dutch-workdays-0.3.1
توضیحات
"A very small library that handles with Dutch calendars and holidays 🇳🇱"
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dutch-workdays-0.3.1 |
| نام | dutch-workdays |
| نسخه کتابخانه | 0.3.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | New10 |
| ایمیل نویسنده | pypi-admin@new10.com |
| آدرس صفحه اصلی | https://gitlab.com/new10-public/dutch-workdays/ |
| آدرس اینترنتی | https://pypi.org/project/dutch-workdays/ |
| مجوز | - |
Dutch Workdays
==============
A very small library that handles with Dutch calendars and holidays 🇳🇱
Installing
----------
```
pip install dutch-workdays
```
Usage
-----
```python
from dutch_workdays import Calendar
cal = Calendar()
cal.get_king_queen_day(2018)
# (datetime.date(2018, 4, 27), "King's day")
```
`dutch-workdays` works as a drop-in replacement of workalendar_, so for the
rest of the API please refer to
the `workdays documentation`_.
Why not just using Workalendar instead?
---------------------------------------
Workalendar is an awesome library, it's very complete and very well maintained
but it's, unfortunately, quite a big dependency as well. It not only includes
Python code to handle calendars from most of the world, but it also requires C
libraries to calculate high-precision astronomy computations. It's an overkill
if you only need to know about Dutch holidays.
Differences from Workalendar
----------------------------
- All the codebase is type annotated.
- Zero dependencies
- Dateutil easter calculation is vendorized.
.. _workalendar: https://github.com/peopledoc/workalendar
.. _workdays documentation: https://peopledoc.github.io/workalendar/
نحوه نصب
نصب پکیج whl dutch-workdays-0.3.1:
pip install dutch-workdays-0.3.1.whl
نصب پکیج tar.gz dutch-workdays-0.3.1:
pip install dutch-workdays-0.3.1.tar.gz