Skip to main content

Trouver les vacances scolaires pour la France en métropole

Project description

Software License CircleCI PyPI

Vacances scolaires France

This package can be used to find school holiday names in France, since 2009.

In French in the text: permet de connaître les dates des vacances scolaires en France, depuis 2009, pour les zones A, B et C.

Installation

pip install vacances-scolaires-france

Usage

from vacances_scolaires_france import SchoolHolidayDates

import datetime

d = SchoolHolidayDates()
# Is it an holiday for zone A, B or C?
d.is_holiday(datetime.date(2017, 12, 25))
# True
# Is it an holiday for a given zone?
d.is_holiday_for_zone(datetime.date(2009, 2, 7), 'A')
# True
# Get holidays for any zone in a year
d.holidays_for_year(2018)
# {datetime.date(2018, 1, 1): OrderedDict([('date', datetime.date(2018, 01, 01)), ('vacances_zone_a', True), ('vacances_zone_b', True), ('vacances_zone_c', True), ('nom_vacances', 'Vacances de Noël')]), ...}
# Get holiday dates given a year and an holiday name
d.holiday_for_year_by_name(2017, 'Vacances de la Toussaint')
# {datetime.date(2017, 10, 21): OrderedDict([('date', datetime.date(2017, 10, 21)), ('vacances_zone_a', True), ('vacances_zone_b', True), ('vacances_zone_c', True), ...}
# Get holiday dates for a given year and zone
d.holidays_for_year_and_zone(2017, 'A')
# {datetime.date(2017, 1, 1): OrderedDict([('date', datetime.date(2017, 01, 01)), ('vacances_zone_a', True), ('vacances_zone_b', True), ('vacances_zone_c', True), ...}
# Get holiday dates for a given year, zone and holiday name
d.holidays_for_year_zone_and_name(2017, 'A', 'Vacances de Noël')
# {datetime.date(2017, 1, 1): OrderedDict([('date', datetime.date(2017, 1, 1)), ('vacances_zone_a', True), ('vacances_zone_b', True), ('vacances_zone_c', True), ('nom_vacances', 'Vacances de Noël')]), ...}

Holiday names

You can use the following holiday names:

  • Vacances de Noël
  • Vacances d'hiver
  • Vacances de printemps
  • Vacances d'été
  • Vacances de la Toussaint

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

vacances_scolaires_france-0.1.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

vacances_scolaires_france-0.1.1-py2.py3-none-any.whl (3.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file vacances_scolaires_france-0.1.1.tar.gz.

File metadata

  • Download URL: vacances_scolaires_france-0.1.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for vacances_scolaires_france-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b277b6ccf2ffc3729f0af7b82e0986db91d16bfcf17d2f1578f9bf1b25aecdfe
MD5 a0901d725e482da7fd2ff69309a442d4
BLAKE2b-256 848b2f86e014f188170a4dd3882085719986a239fa33c9cc201b9b0628401e6c

See more details on using hashes here.

File details

Details for the file vacances_scolaires_france-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: vacances_scolaires_france-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for vacances_scolaires_france-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f35b7128fabe92774d74eda6be542dcfde26dbe514d7c75d2182f676774ee119
MD5 4d0589f7c561b0cc8a69ce25e3ca61ec
BLAKE2b-256 31b4f42a554ef3fa1eee3f7dde422e27149fddbc3b0cc08cd6b07d53566e94fb

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