Skip to main content

A very small library that handles with Dutch calendars and holidays 🇳🇱

Project description

A very small library that handles with Dutch calendars and holidays 🇳🇱

Installing

pip install dutch-workdays

Usage

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

Diffences from Workalendar

  • All the codebase is type annotated.

  • Zero dependencies

  • Dateutil easter calculation is vendorized.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dutch-workdays-0.2.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dutch_workdays-0.2.1-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file dutch-workdays-0.2.1.tar.gz.

File metadata

  • Download URL: dutch-workdays-0.2.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.11 CPython/3.7.1 Darwin/18.2.0

File hashes

Hashes for dutch-workdays-0.2.1.tar.gz
Algorithm Hash digest
SHA256 8544e4eb03eff7f7da1565b2255cc76ae1ab9d50994115794ad88412d5941531
MD5 f8397e3dad1f11edc1d2b6ffa9d32964
BLAKE2b-256 b6fcf60556d80e7b8e8556a364f61c2874546a4f5ae851d06b09058d017985fd

See more details on using hashes here.

File details

Details for the file dutch_workdays-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: dutch_workdays-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.11 CPython/3.7.1 Darwin/18.2.0

File hashes

Hashes for dutch_workdays-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7aa161f8486c43d7ca812a88a4223e0da7071f59a50d1fc76ce0a18726a97d9
MD5 a7945f9ba36661d7cb2ff5492c78f181
BLAKE2b-256 16fd23bd91cd8592d30a41504093a97fb31b081e37c4fc1d94ac769a0aa63839

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page