-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ISO 3166-1 for overseas departments and regions of France
- Loading branch information
Showing
28 changed files
with
920 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# python-holidays | ||
# --------------- | ||
# A fast, efficient Python library for generating country, province and state | ||
# specific sets of holidays on the fly. It aims to make determining whether a | ||
# specific date is a holiday as fast and flexible as possible. | ||
# | ||
# Authors: dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023 | ||
# ryanss <ryanssdev@icloud.com> (c) 2014-2017 | ||
# Website: https://github.com/dr-prodigy/python-holidays | ||
# License: MIT (see LICENSE file) | ||
|
||
from holidays.countries.france import FR | ||
|
||
|
||
class FrenchPolynesia(FR): | ||
# Alias of a FR subdivision that is also officially assigned its own | ||
# country code in ISO 3166-1. See | ||
# https://en.wikipedia.org/wiki/ISO_3166-2:FR#Subdivisions_included_in_ISO_3166-1 | ||
|
||
country = "PF" | ||
subdivisions = [] | ||
|
||
def _populate(self, year: int) -> None: | ||
self.subdiv = "Polynésie Française" | ||
super()._populate(year) | ||
|
||
|
||
class PF(FrenchPolynesia): | ||
pass | ||
|
||
|
||
class PYF(FrenchPolynesia): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# python-holidays | ||
# --------------- | ||
# A fast, efficient Python library for generating country, province and state | ||
# specific sets of holidays on the fly. It aims to make determining whether a | ||
# specific date is a holiday as fast and flexible as possible. | ||
# | ||
# Authors: dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023 | ||
# ryanss <ryanssdev@icloud.com> (c) 2014-2017 | ||
# Website: https://github.com/dr-prodigy/python-holidays | ||
# License: MIT (see LICENSE file) | ||
|
||
from holidays.countries.france import FR | ||
|
||
|
||
class FrenchSouthernTerritories(FR): | ||
# Alias of a FR subdivision that is also officially assigned its own | ||
# country code in ISO 3166-1. See | ||
# https://en.wikipedia.org/wiki/ISO_3166-2:FR#Subdivisions_included_in_ISO_3166-1 | ||
|
||
country = "TF" | ||
subdivisions = [] | ||
|
||
def _populate(self, year: int) -> None: | ||
super()._populate(year) | ||
|
||
|
||
class TF(FrenchSouthernTerritories): | ||
pass | ||
|
||
|
||
class ATF(FrenchSouthernTerritories): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# python-holidays | ||
# --------------- | ||
# A fast, efficient Python library for generating country, province and state | ||
# specific sets of holidays on the fly. It aims to make determining whether a | ||
# specific date is a holiday as fast and flexible as possible. | ||
# | ||
# Authors: dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023 | ||
# ryanss <ryanssdev@icloud.com> (c) 2014-2017 | ||
# Website: https://github.com/dr-prodigy/python-holidays | ||
# License: MIT (see LICENSE file) | ||
|
||
from holidays.countries.france import FR | ||
|
||
|
||
class Guadeloupe(FR): | ||
# Alias of a FR subdivision that is also officially assigned its own | ||
# country code in ISO 3166-1. See | ||
# https://en.wikipedia.org/wiki/ISO_3166-2:FR#Subdivisions_included_in_ISO_3166-1 | ||
|
||
country = "GP" | ||
subdivisions = [] | ||
|
||
def _populate(self, year: int) -> None: | ||
self.subdiv = "Guadeloupe" | ||
super()._populate(year) | ||
|
||
|
||
class GP(Guadeloupe): | ||
pass | ||
|
||
|
||
class GLP(Guadeloupe): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# python-holidays | ||
# --------------- | ||
# A fast, efficient Python library for generating country, province and state | ||
# specific sets of holidays on the fly. It aims to make determining whether a | ||
# specific date is a holiday as fast and flexible as possible. | ||
# | ||
# Authors: dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023 | ||
# ryanss <ryanssdev@icloud.com> (c) 2014-2017 | ||
# Website: https://github.com/dr-prodigy/python-holidays | ||
# License: MIT (see LICENSE file) | ||
|
||
from holidays.countries.france import FR | ||
|
||
|
||
class Guyana(FR): | ||
# Alias of a FR subdivision that is also officially assigned its own | ||
# country code in ISO 3166-1. See | ||
# https://en.wikipedia.org/wiki/ISO_3166-2:FR#Subdivisions_included_in_ISO_3166-1 | ||
|
||
country = "GY" | ||
subdivisions = [] | ||
|
||
def _populate(self, year: int) -> None: | ||
self.subdiv = "Guyane" | ||
super()._populate(year) | ||
|
||
|
||
class GY(Guyana): | ||
pass | ||
|
||
|
||
class GUY(Guyana): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# python-holidays | ||
# --------------- | ||
# A fast, efficient Python library for generating country, province and state | ||
# specific sets of holidays on the fly. It aims to make determining whether a | ||
# specific date is a holiday as fast and flexible as possible. | ||
# | ||
# Authors: dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023 | ||
# ryanss <ryanssdev@icloud.com> (c) 2014-2017 | ||
# Website: https://github.com/dr-prodigy/python-holidays | ||
# License: MIT (see LICENSE file) | ||
|
||
from holidays.countries.france import FR | ||
|
||
|
||
class Martinique(FR): | ||
# Alias of a FR subdivision that is also officially assigned its own | ||
# country code in ISO 3166-1. See | ||
# https://en.wikipedia.org/wiki/ISO_3166-2:FR#Subdivisions_included_in_ISO_3166-1 | ||
|
||
country = "MQ" | ||
subdivisions = [] | ||
|
||
def _populate(self, year: int) -> None: | ||
self.subdiv = "Martinique" | ||
super()._populate(year) | ||
|
||
|
||
class MQ(Martinique): | ||
pass | ||
|
||
|
||
class MTQ(Martinique): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# python-holidays | ||
# --------------- | ||
# A fast, efficient Python library for generating country, province and state | ||
# specific sets of holidays on the fly. It aims to make determining whether a | ||
# specific date is a holiday as fast and flexible as possible. | ||
# | ||
# Authors: dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023 | ||
# ryanss <ryanssdev@icloud.com> (c) 2014-2017 | ||
# Website: https://github.com/dr-prodigy/python-holidays | ||
# License: MIT (see LICENSE file) | ||
|
||
from holidays.countries.france import FR | ||
|
||
|
||
class Mayotte(FR): | ||
# Alias of a FR subdivision that is also officially assigned its own | ||
# country code in ISO 3166-1. See | ||
# https://en.wikipedia.org/wiki/ISO_3166-2:FR#Subdivisions_included_in_ISO_3166-1 | ||
|
||
country = "YT" | ||
subdivisions = [] | ||
|
||
def _populate(self, year: int) -> None: | ||
self.subdiv = "Mayotte" | ||
super()._populate(year) | ||
|
||
|
||
class YT(Mayotte): | ||
pass | ||
|
||
|
||
class MYT(Mayotte): | ||
pass |
Oops, something went wrong.