Get bank holidays for France
Project description
OpenAPI Components Schemas to Markdown
This library computes bank holidays dates for France, for a given year.
Installation
pip install jours-feries-france
Usage
The package provides a command line tool.
from jours_feries_france.compute import JoursFeries
res = JoursFeries.for_year(2018)
# res is now
# {
# '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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for jours_feries_france-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24b3223923496154264b6786a31bec8512236bc42ba5446fb6ddb4b128245c04 |
|
MD5 | 0dde498ba5b49bc333c96b246c86ab37 |
|
BLAKE2b-256 | dc8aa646448de00cbe6cbc110417599a7cb5b0aedc5d87d8fbfba094ae0d03e3 |