Red Hat business days calendar
This module builds on workdays to provide a networkdays() method that knows about the Red Hat business holidays.
Example: determine number of business days from today
import datetime
from rhcalendar import networkdays
today = datetime.date.today()
to_date = datetime.date(2023, 1, 1) # something far away...
days = networkdays(from_date=today, to_date=to_date)
print('%s is %d Red Hat business days from now.' % (to_date, days))
# prints "2023-01-01 is 522 Red Hat business days from now."
Locales
Currently this module has the Red Hat holiday calendars for the US and Quebec, Canada. Contributions welcome for other locales.
# Locale option defaults to 'en-US':
days = workdays(from_date, to_date)
# Or use Quebec, Canada holidays:
days = workdays(from_date, to_date, locale='qc-CA')
Packages that use this package
Metadata
Release files for rhcalendar 1.3.6
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 | |
|---|---|---|---|---|
| rhcalendar-1.3.6.tar.gz | 4.4 kB | Without provenance | Details |
Release files / rhcalendar-1.3.6.tar.gz
| Download URL | rhcalendar-1.3.6.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
835942adc244c43cc02db1db308fb9abc33fd05415814a775b548544687bc121
|
|
BLAKE2b-256 checksum How to use checksums |
de59d104fdc817dc279358fb7f0b6aafc33e6e03f83a14921f0ace34706ecf55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 CPython/3.10.8
|
Security for rhcalendar 1.3.6
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.