Workalendar
Overview
Workalendar is a Python module that offers classes able to handle calendars, list legal / religious holidays and gives workday-related computation functions.
Status
This is barely beta. Please consider this module as a work in progres.
Usage sample
>>> from datetime import date
>>> from workalendar.europe import FranceCalendar
>>> cal = FranceCalendar()
>>> cal.get_calendar_holidays(2012)
set([datetime.date(2012, 5, 17),
datetime.date(2012, 11, 11),
datetime.date(2012, 11, 1),
datetime.date(2012, 5, 8),
datetime.date(2012, 5, 28),
datetime.date(2012, 7, 14),
datetime.date(2012, 5, 1),
datetime.date(2012, 4, 9),
datetime.date(2012, 1, 1),
datetime.date(2012, 8, 15),
datetime.date(2012, 12, 25)])
>>> cal.is_workday(date(2012, 12, 25)) # it's Christmas
False
>>> cal.is_workday(date(2012, 12, 30)) # it's Sunday
False
>>> cal.is_workday(date(2012, 12, 26))
True
Tests
Travis status:
To run test, just install nose with pip install nose and run:
nosetests
from the command line.
License
This library is published under the terms of the MIT License. Please check the LICENSE file for more details.
Metadata
Release files for workalendar 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| workalendar-0.0.1.tar.gz | 3.9 kB | Without provenance | Details |
Release files / workalendar-0.0.1.tar.gz
| Download URL | workalendar-0.0.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb65c5f5bddde5a47e7a24387d7e31227689cbbff2e83bcf0239adde1de912d6
|
|
BLAKE2b-256 checksum How to use checksums |
6d17c848d01c1922703ec6f3be48d86adfa4b64551ec3a64d60e0ad3bd25a7d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for workalendar 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.