Skip to main content

Get bank holidays for France

Project description

Software License CircleCI

Jours Fériés France

This library computes bank holidays dates for France, for a given year.

Installation

pip install jours-feries-france

Usage

from jours_feries_france.compute import JoursFeries

res = JoursFeries.for_year(2018)
# res is now a dict
# {
#     'Armistice': datetime.date(2018, 11, 11),
#     'Ascension': datetime.date(2018, 5, 10),
#     'Assomption': datetime.date(2018, 8, 15),
#     'Fête Nationale': datetime.date(2018, 7, 14),
#     'Fête du travail': datetime.date(2018, 5, 1),
#     "Jour de l'an": datetime.date(2018, 1, 1),
#     'Lundi de Pâques': datetime.date(2018, 4, 2),
#     'Noël': datetime.date(2018, 12, 25),
#     'Pentecôte': datetime.date(2018, 5, 21),
#     'Pâques': datetime.date(2018, 4, 1),
#     'Toussaint': datetime.date(2018, 11, 1),
#     'Victoire des alliés': datetime.date(2018, 5, 8)
# }

# You can also get specific bank holidays as a datetime.date
print (JoursFeries.paques(2018))
print (JoursFeries.lundiDePaques(2018))
print (JoursFeries.ascension(2018))
print (JoursFeries.pentecote(2018))
print (JoursFeries.jourDeLAn(2018))
print (JoursFeries.feteDuTravail(2018))
print (JoursFeries.victoireDeAllies(2018))
print (JoursFeries.feteNationale(2018))
print (JoursFeries.toussaint(2018))
print (JoursFeries.assomption(2018))
print (JoursFeries.armistice(2018))
print (JoursFeries.noel(2018))

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

jours_feries_france-0.2.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

jours_feries_france-0.2.0-py2.py3-none-any.whl (3.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file jours_feries_france-0.2.0.tar.gz.

File metadata

File hashes

Hashes for jours_feries_france-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8205221b6ea4d664bde8442c31b010db8d07199fbf10d90c350ccacaa5b317e5
MD5 96861f52777c77a08ef1440208663a7b
BLAKE2b-256 a488a8b8cbc50ee1db6fc1e4a63f6a718c1370925a3564dede97728375501068

See more details on using hashes here.

File details

Details for the file jours_feries_france-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for jours_feries_france-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3982e42fb2c9c36d0123610fe7a654a3728341bafc03385c481a3a6fb13f0375
MD5 f730eabacc0046804977e90b852421dc
BLAKE2b-256 e77ffa769bf3022c5d5357fe60f9c361b588cde79edcdc61c1947aeadd390765

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