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),
#     '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.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))

# The Alsace-Moselle region has 2 extra bank holidays.
# You can include them this way
res = JoursFeries.for_year(2018, include_alsace=True)

print (JoursFeries.vendrediSaint(2018))
print (JoursFeries.saintEtienne(2018))

Data

If you just want a CSV dump, check out the "Jours fériés en France" opendata dataset available on data.gouv.fr.

School holidays

Interested in school holidays as well (vacances scolaires in French)? There is another pip package for this! Check out https://github.com/AntoineAugusti/vacances-scolaires-france

Notice

This software is available under the MIT license and was developed as part of the Entrepreneur d'Intérêt Général program by the French government.

Projet développé dans le cadre du programme « Entrepreneur d’intérêt général ».

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.3.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

jours_feries_france-0.3.1-py2.py3-none-any.whl (3.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: jours_feries_france-0.3.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15

File hashes

Hashes for jours_feries_france-0.3.1.tar.gz
Algorithm Hash digest
SHA256 3176c8de662b581d07775dcf74dd43b95cb1a1366005a45954da3594c5bf4b65
MD5 6d0f8b2992ee90a7a9e3736c86d78d2d
BLAKE2b-256 8cb1f90e63661bae28f4197f1f027bb33c31f187f8775a2a12ca422c9d4357bb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: jours_feries_france-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15

File hashes

Hashes for jours_feries_france-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 db415714351b30d8ba5daa294cc3a285fc1f2f33298c2d2c6f685135c454a9e3
MD5 6212f508b7c5080516e559d093277ac8
BLAKE2b-256 ae77c03175b7aec829aa7c9a33f7e13efe2b21935b4ec563ef6a64af39ab749c

See more details on using hashes here.

Provenance

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