Red Hat business days calendar
==============================
.. image:: https://github.com/ktdreyer/rhcalendar/workflows/tests/badge.svg
:target: https://github.com/ktdreyer/rhcalendar/actions
.. image:: https://badge.fury.io/py/rhcalendar.svg
:target: https://badge.fury.io/py/rhcalendar
This module builds on `workdays <https://pypi.org/project/workdays/>`_ to
provide a ``networkdays()`` method that knows about the Red Hat business
holidays.
Example: determine number of business days from today
-----------------------------------------------------
.. code-block:: python
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.
.. code-block:: python
# 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
------------------------------
* `helga-productpages <https://pypi.org/project/helga-productpages/>`_
Raw data
{
"_id": null,
"home_page": "https://github.com/ktdreyer/rhcalendar",
"name": "rhcalendar",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "workdays",
"author": "Ken Dreyer",
"author_email": "ktdreyer@ktdreyer.com",
"download_url": "https://files.pythonhosted.org/packages/de/59/d104fdc817dc279358fb7f0b6aafc33e6e03f83a14921f0ace34706ecf55/rhcalendar-1.3.6.tar.gz",
"platform": null,
"description": "Red Hat business days calendar\n==============================\n\n.. image:: https://github.com/ktdreyer/rhcalendar/workflows/tests/badge.svg\n :target: https://github.com/ktdreyer/rhcalendar/actions\n\n.. image:: https://badge.fury.io/py/rhcalendar.svg\n :target: https://badge.fury.io/py/rhcalendar\n\n\nThis module builds on `workdays <https://pypi.org/project/workdays/>`_ to\nprovide a ``networkdays()`` method that knows about the Red Hat business\nholidays.\n\nExample: determine number of business days from today\n-----------------------------------------------------\n\n.. code-block:: python\n\n import datetime\n from rhcalendar import networkdays\n\n today = datetime.date.today()\n to_date = datetime.date(2023, 1, 1) # something far away...\n\n days = networkdays(from_date=today, to_date=to_date)\n\n print('%s is %d Red Hat business days from now.' % (to_date, days))\n # prints \"2023-01-01 is 522 Red Hat business days from now.\"\n\nLocales\n-------\n\nCurrently this module has the Red Hat holiday calendars for the US and Quebec,\nCanada. Contributions welcome for other locales.\n\n.. code-block:: python\n\n # Locale option defaults to 'en-US':\n days = workdays(from_date, to_date)\n\n # Or use Quebec, Canada holidays:\n days = workdays(from_date, to_date, locale='qc-CA')\n\nPackages that use this package\n------------------------------\n\n* `helga-productpages <https://pypi.org/project/helga-productpages/>`_\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Red Hat business days calendar",
"version": "1.3.6",
"split_keywords": [
"workdays"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "64144f74ac7cb656f8a93e663a6fefb9",
"sha256": "835942adc244c43cc02db1db308fb9abc33fd05415814a775b548544687bc121"
},
"downloads": -1,
"filename": "rhcalendar-1.3.6.tar.gz",
"has_sig": true,
"md5_digest": "64144f74ac7cb656f8a93e663a6fefb9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4410,
"upload_time": "2022-11-30T16:54:35",
"upload_time_iso_8601": "2022-11-30T16:54:35.035256Z",
"url": "https://files.pythonhosted.org/packages/de/59/d104fdc817dc279358fb7f0b6aafc33e6e03f83a14921f0ace34706ecf55/rhcalendar-1.3.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-11-30 16:54:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "ktdreyer",
"github_project": "rhcalendar",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "rhcalendar"
}