Skip to main content

Tool to load UK bank holidays from GOV.UK

Project description

Usage

Install using pip install govuk-bank-holidays. Sample usage:

from govuk_bank_holidays.bank_holidays import BankHolidays

bank_holidays = BankHolidays()
for bank_holiday in bank_holidays.get_holidays():
    print(bank_holiday['title'], '>', bank_holiday['date'])
print(bank_holidays.get_next_holiday())

# choose a different locale for holiday titles and notes
bank_holidays = BankHolidays(locale='cy')

Development

https://travis-ci.org/ministryofjustice/govuk-bank-holidays.svg?branch=master

Please report bugs and open pull requests on GitHub.

Update translation files using python setup.py makemessages, e.g. when updating the i18n module or when adding new languages. Compile them using python setup.py compilemessages; this is required before testing and distribution.

Use python setup.py compilemessages test to run all tests.

Distribute a new version by updating the VERSION tuple in govuk_bank_holidays and run python setup.py compilemessages sdist bdist_wheel upload.

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

govuk-bank-holidays-0.3.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

govuk_bank_holidays-0.3-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file govuk-bank-holidays-0.3.tar.gz.

File metadata

File hashes

Hashes for govuk-bank-holidays-0.3.tar.gz
Algorithm Hash digest
SHA256 76dba5a72c4edf63c9319f467ac8f85df4f0dd3d769e3a0dd990ae7b2420dcd2
MD5 61fb839bece2d8e7cb300e46e0481f30
BLAKE2b-256 30f4ee2d2651d8cba8b1b4d4710717ba889d22eb3ef47627ccadf376f6db7e73

See more details on using hashes here.

File details

Details for the file govuk_bank_holidays-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for govuk_bank_holidays-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7b6c42688715bdbf7b23a3e16d6d44920b253b17db9c4a8ee413752da35ad4c8
MD5 9d3c0c7d8d84a848058ec1443ae12b2a
BLAKE2b-256 c614b77369a51046e4869d8300fcf56b621c218ed042a6617bf472a21b9839e5

See more details on using hashes here.

Supported by

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