diff options
Diffstat (limited to 'venv/lib/python3.11/site-packages/faker/providers/date_time')
84 files changed, 9118 insertions, 0 deletions
diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/__init__.py new file mode 100644 index 0000000..752d437 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/__init__.py @@ -0,0 +1,2513 @@ +import platform +import re + +from calendar import timegm +from datetime import MAXYEAR +from datetime import date as dtdate +from datetime import datetime +from datetime import time as dttime +from datetime import timedelta +from datetime import tzinfo as TzInfo +from typing import Any, Callable, Dict, Iterator, Optional, Tuple, Union + +from dateutil import relativedelta +from dateutil.tz import gettz, tzlocal, tzutc + +from faker.typing import Country, DateParseType + +from .. import BaseProvider, ElementsType + +localized = True + + +def datetime_to_timestamp(dt: Union[dtdate, datetime]) -> int: + if isinstance(dt, datetime) and getattr(dt, "tzinfo", None) is not None: + dt = dt.astimezone(tzutc()) + return timegm(dt.timetuple()) + + +def timestamp_to_datetime(timestamp: Union[int, float], tzinfo: Optional[TzInfo]) -> datetime: + if tzinfo is None: + pick = convert_timestamp_to_datetime(timestamp, tzlocal()) + return pick.astimezone(tzutc()).replace(tzinfo=None) + return convert_timestamp_to_datetime(timestamp, tzinfo) + + +def change_year(current_date: dtdate, year_diff: int) -> dtdate: + """ + Unless the current_date is February 29th, it is fine to just subtract years. + If it is a leap day, and we are rolling back to a non-leap year, it will + cause a ValueError. + Since this is relatively uncommon, just catch the error and roll forward to + March 1 + + current_date: date object + year_diff: int year delta value, positive or negative + """ + year = current_date.year + year_diff + try: + return current_date.replace(year=year) + except ValueError as e: + # ValueError thrown if trying to move date to a non-leap year if the current + # date is February 29th + if year != 0 and current_date.month == 2 and current_date.day == 29: + return current_date.replace(month=3, day=1, year=year) + else: + raise e + + +class ParseError(ValueError): + pass + + +timedelta_pattern: str = r"" +for name, sym in [ + ("years", "y"), + ("months", "M"), + ("weeks", "w"), + ("days", "d"), + ("hours", "h"), + ("minutes", "m"), + ("seconds", "s"), +]: + timedelta_pattern += r"((?P<{}>(?:\+|-)\d+?){})?".format(name, sym) + + +class Provider(BaseProvider): + # NOTE: Windows only guarantee second precision, in order to emulate that + # we need to inspect the platform to determine which function is most + # appropriate to generate random seconds with. + if platform.system() == "Windows": + + def _rand_seconds(self, start_datetime: int, end_datetime: int) -> float: + return self.generator.random.randint(start_datetime, end_datetime) + + else: + + def _rand_seconds(self, start_datetime: int, end_datetime: int) -> float: + if start_datetime > end_datetime: + raise ValueError("empty range for _rand_seconds: start datetime must be before than end datetime") + return self.generator.random.uniform(start_datetime, end_datetime) + + centuries: ElementsType[str] = [ + "I", + "II", + "III", + "IV", + "V", + "VI", + "VII", + "VIII", + "IX", + "X", + "XI", + "XII", + "XIII", + "XIV", + "XV", + "XVI", + "XVII", + "XVIII", + "XIX", + "XX", + "XXI", + ] + + countries = [ + Country( + timezones=["Europe/Andorra"], + alpha_2_code="AD", + alpha_3_code="AND", + continent="Europe", + name="Andorra", + capital="Andorra la Vella", + ), + Country( + timezones=["Asia/Kabul"], + alpha_2_code="AF", + alpha_3_code="AFG", + continent="Asia", + name="Afghanistan", + capital="Kabul", + ), + Country( + timezones=["America/Antigua"], + alpha_2_code="AG", + alpha_3_code="ATG", + continent="North America", + name="Antigua and Barbuda", + capital="St. John's", + ), + Country( + timezones=["Europe/Tirane"], + alpha_2_code="AL", + alpha_3_code="ALB", + continent="Europe", + name="Albania", + capital="Tirana", + ), + Country( + timezones=["Asia/Yerevan"], + alpha_2_code="AM", + alpha_3_code="ARM", + continent="Asia", + name="Armenia", + capital="Yerevan", + ), + Country( + timezones=["Africa/Luanda"], + alpha_2_code="AO", + alpha_3_code="AGO", + continent="Africa", + name="Angola", + capital="Luanda", + ), + Country( + timezones=[ + "America/Argentina/Buenos_Aires", + "America/Argentina/Cordoba", + "America/Argentina/Jujuy", + "America/Argentina/Tucuman", + "America/Argentina/Catamarca", + "America/Argentina/La_Rioja", + "America/Argentina/San_Juan", + "America/Argentina/Mendoza", + "America/Argentina/Rio_Gallegos", + "America/Argentina/Ushuaia", + ], + alpha_2_code="AR", + alpha_3_code="ARG", + continent="South America", + name="Argentina", + capital="Buenos Aires", + ), + Country( + timezones=["Europe/Vienna"], + alpha_2_code="AT", + alpha_3_code="AUT", + continent="Europe", + name="Austria", + capital="Vienna", + ), + Country( + timezones=[ + "Australia/Lord_Howe", + "Australia/Hobart", + "Australia/Currie", + "Australia/Melbourne", + "Australia/Sydney", + "Australia/Broken_Hill", + "Australia/Brisbane", + "Australia/Lindeman", + "Australia/Adelaide", + "Australia/Darwin", + "Australia/Perth", + ], + alpha_2_code="AU", + alpha_3_code="AUS", + continent="Oceania", + name="Australia", + capital="Canberra", + ), + Country( + timezones=["Asia/Baku"], + alpha_2_code="AZ", + alpha_3_code="AZE", + continent="Asia", + name="Azerbaijan", + capital="Baku", + ), + Country( + timezones=["America/Barbados"], + alpha_2_code="BB", + alpha_3_code="BRB", + continent="North America", + name="Barbados", + capital="Bridgetown", + ), + Country( + timezones=["Asia/Dhaka"], + alpha_2_code="BD", + alpha_3_code="BGD", + continent="Asia", + name="Bangladesh", + capital="Dhaka", + ), + Country( + timezones=["Europe/Brussels"], + alpha_2_code="BE", + alpha_3_code="BEL", + continent="Europe", + name="Belgium", + capital="Brussels", + ), + Country( + timezones=["Africa/Ouagadougou"], + alpha_2_code="BF", + alpha_3_code="BFA", + continent="Africa", + name="Burkina Faso", + capital="Ouagadougou", + ), + Country( + timezones=["Europe/Sofia"], + alpha_2_code="BG", + alpha_3_code="BGR", + continent="Europe", + name="Bulgaria", + capital="Sofia", + ), + Country( + timezones=["Asia/Bahrain"], + alpha_2_code="BH", + alpha_3_code="BHR", + continent="Asia", + name="Bahrain", + capital="Manama", + ), + Country( + timezones=["Africa/Bujumbura"], + alpha_2_code="BI", + alpha_3_code="BDI", + continent="Africa", + name="Burundi", + capital="Bujumbura", + ), + Country( + timezones=["Africa/Porto-Novo"], + alpha_2_code="BJ", + alpha_3_code="BEN", + continent="Africa", + name="Benin", + capital="Porto-Novo", + ), + Country( + timezones=["Asia/Brunei"], + alpha_2_code="BN", + alpha_3_code="BRN", + continent="Asia", + name="Brunei Darussalam", + capital="Bandar Seri Begawan", + ), + Country( + timezones=["America/La_Paz"], + alpha_2_code="BO", + alpha_3_code="BOL", + continent="South America", + name="Bolivia", + capital="Sucre", + ), + Country( + timezones=[ + "America/Noronha", + "America/Belem", + "America/Fortaleza", + "America/Recife", + "America/Araguaina", + "America/Maceio", + "America/Bahia", + "America/Sao_Paulo", + "America/Campo_Grande", + "America/Cuiaba", + "America/Porto_Velho", + "America/Boa_Vista", + "America/Manaus", + "America/Eirunepe", + "America/Rio_Branco", + ], + alpha_2_code="BR", + alpha_3_code="BRA", + continent="South America", + name="Brazil", + capital="Bras\xc3\xadlia", + ), + Country( + timezones=["America/Nassau"], + alpha_2_code="BS", + alpha_3_code="BHS", + continent="North America", + name="Bahamas", + capital="Nassau", + ), + Country( + timezones=["Asia/Thimphu"], + alpha_2_code="BT", + alpha_3_code="BTN", + continent="Asia", + name="Bhutan", + capital="Thimphu", + ), + Country( + timezones=["Africa/Gaborone"], + alpha_2_code="BW", + alpha_3_code="BWA", + continent="Africa", + name="Botswana", + capital="Gaborone", + ), + Country( + timezones=["Europe/Minsk"], + alpha_2_code="BY", + alpha_3_code="BLR", + continent="Europe", + name="Belarus", + capital="Minsk", + ), + Country( + timezones=["America/Belize"], + alpha_2_code="BZ", + alpha_3_code="BLZ", + continent="North America", + name="Belize", + capital="Belmopan", + ), + Country( + timezones=[ + "America/St_Johns", + "America/Halifax", + "America/Glace_Bay", + "America/Moncton", + "America/Goose_Bay", + "America/Blanc-Sablon", + "America/Montreal", + "America/Toronto", + "America/Nipigon", + "America/Thunder_Bay", + "America/Pangnirtung", + "America/Iqaluit", + "America/Atikokan", + "America/Rankin_Inlet", + "America/Winnipeg", + "America/Rainy_River", + "America/Cambridge_Bay", + "America/Regina", + "America/Swift_Current", + "America/Edmonton", + "America/Yellowknife", + "America/Inuvik", + "America/Dawson_Creek", + "America/Vancouver", + "America/Whitehorse", + "America/Dawson", + ], + alpha_2_code="CA", + alpha_3_code="CAN", + continent="North America", + name="Canada", + capital="Ottawa", + ), + Country( + timezones=["Africa/Kinshasa", "Africa/Lubumbashi"], + alpha_2_code="CD", + alpha_3_code="COD", + continent="Africa", + name="Democratic Republic of the Congo", + capital="Kinshasa", + ), + Country( + timezones=["Africa/Brazzaville"], + alpha_2_code="CG", + alpha_3_code="COG", + continent="Africa", + name="Republic of the Congo", + capital="Brazzaville", + ), + Country( + timezones=["Africa/Abidjan"], + alpha_2_code="CI", + alpha_3_code="CIV", + continent="Africa", + name="C\xc3\xb4te d'Ivoire", + capital="Yamoussoukro", + ), + Country( + timezones=["America/Santiago", "Pacific/Easter"], + alpha_2_code="CL", + alpha_3_code="CHL", + continent="South America", + name="Chile", + capital="Santiago", + ), + Country( + timezones=["Africa/Douala"], + alpha_2_code="CM", + alpha_3_code="CMR", + continent="Africa", + name="Cameroon", + capital="Yaound\xc3\xa9", + ), + Country( + timezones=[ + "Asia/Shanghai", + "Asia/Harbin", + "Asia/Chongqing", + "Asia/Urumqi", + "Asia/Kashgar", + ], + alpha_2_code="CN", + alpha_3_code="CHN", + continent="Asia", + name="People's Republic of China", + capital="Beijing", + ), + Country( + timezones=["America/Bogota"], + alpha_2_code="CO", + alpha_3_code="COL", + continent="South America", + name="Colombia", + capital="Bogot\xc3\xa1", + ), + Country( + timezones=["America/Costa_Rica"], + alpha_2_code="CR", + alpha_3_code="CRI", + continent="North America", + name="Costa Rica", + capital="San Jos\xc3\xa9", + ), + Country( + timezones=["America/Havana"], + alpha_2_code="CU", + alpha_3_code="CUB", + continent="North America", + name="Cuba", + capital="Havana", + ), + Country( + timezones=["Atlantic/Cape_Verde"], + alpha_2_code="CV", + alpha_3_code="CPV", + continent="Africa", + name="Cape Verde", + capital="Praia", + ), + Country( + timezones=["Asia/Nicosia"], + alpha_2_code="CY", + alpha_3_code="CYP", + continent="Asia", + name="Cyprus", + capital="Nicosia", + ), + Country( + timezones=["Europe/Prague"], + alpha_2_code="CZ", + alpha_3_code="CZE", + continent="Europe", + name="Czech Republic", + capital="Prague", + ), + Country( + timezones=["Europe/Berlin"], + alpha_2_code="DE", + alpha_3_code="DEU", + continent="Europe", + name="Germany", + capital="Berlin", + ), + Country( + timezones=["Africa/Djibouti"], + alpha_2_code="DJ", + alpha_3_code="DJI", + continent="Africa", + name="Djibouti", + capital="Djibouti City", + ), + Country( + timezones=["Europe/Copenhagen"], + alpha_2_code="DK", + alpha_3_code="DNK", + continent="Europe", + name="Denmark", + capital="Copenhagen", + ), + Country( + timezones=["America/Dominica"], + alpha_2_code="DM", + alpha_3_code="DMA", + continent="North America", + name="Dominica", + capital="Roseau", + ), + Country( + timezones=["America/Santo_Domingo"], + alpha_2_code="DO", + alpha_3_code="DOM", + continent="North America", + name="Dominican Republic", + capital="Santo Domingo", + ), + Country( + timezones=["America/Guayaquil", "Pacific/Galapagos"], + alpha_2_code="EC", + alpha_3_code="ECU", + continent="South America", + name="Ecuador", + capital="Quito", + ), + Country( + timezones=["Europe/Tallinn"], + alpha_2_code="EE", + alpha_3_code="EST", + continent="Europe", + name="Estonia", + capital="Tallinn", + ), + Country( + timezones=["Africa/Cairo"], + alpha_2_code="EG", + alpha_3_code="EGY", + continent="Africa", + name="Egypt", + capital="Cairo", + ), + Country( + timezones=["Africa/Asmera"], + alpha_2_code="ER", + alpha_3_code="ERI", + continent="Africa", + name="Eritrea", + capital="Asmara", + ), + Country( + timezones=["Africa/Addis_Ababa"], + alpha_2_code="ET", + alpha_3_code="ETH", + continent="Africa", + name="Ethiopia", + capital="Addis Ababa", + ), + Country( + timezones=["Europe/Helsinki"], + alpha_2_code="FI", + alpha_3_code="FIN", + continent="Europe", + name="Finland", + capital="Helsinki", + ), + Country( + timezones=["Pacific/Fiji"], + alpha_2_code="FJ", + alpha_3_code="FJI", + continent="Oceania", + name="Fiji", + capital="Suva", + ), + Country( + timezones=["Europe/Paris"], + alpha_2_code="FR", + alpha_3_code="FRA", + continent="Europe", + name="France", + capital="Paris", + ), + Country( + timezones=["Africa/Libreville"], + alpha_2_code="GA", + alpha_3_code="GAB", + continent="Africa", + name="Gabon", + capital="Libreville", + ), + Country( + timezones=["Asia/Tbilisi"], + alpha_2_code="GE", + alpha_3_code="GEO", + continent="Asia", + name="Georgia", + capital="Tbilisi", + ), + Country( + timezones=["Africa/Accra"], + alpha_2_code="GH", + alpha_3_code="GHA", + continent="Africa", + name="Ghana", + capital="Accra", + ), + Country( + timezones=["Africa/Banjul"], + alpha_2_code="GM", + alpha_3_code="GMB", + continent="Africa", + name="The Gambia", + capital="Banjul", + ), + Country( + timezones=["Africa/Conakry"], + alpha_2_code="GN", + alpha_3_code="GIN", + continent="Africa", + name="Guinea", + capital="Conakry", + ), + Country( + timezones=["Europe/Athens"], + alpha_2_code="GR", + alpha_3_code="GRC", + continent="Europe", + name="Greece", + capital="Athens", + ), + Country( + timezones=["America/Guatemala"], + alpha_2_code="GT", + alpha_3_code="GTM", + continent="North America", + name="Guatemala", + capital="Guatemala City", + ), + Country( + timezones=["America/Guatemala"], + alpha_2_code="HT", + alpha_3_code="HTI", + continent="North America", + name="Haiti", + capital="Port-au-Prince", + ), + Country( + timezones=["Africa/Bissau"], + alpha_2_code="GW", + alpha_3_code="GNB", + continent="Africa", + name="Guinea-Bissau", + capital="Bissau", + ), + Country( + timezones=["America/Guyana"], + alpha_2_code="GY", + alpha_3_code="GUY", + continent="South America", + name="Guyana", + capital="Georgetown", + ), + Country( + timezones=["America/Tegucigalpa"], + alpha_2_code="HN", + alpha_3_code="HND", + continent="North America", + name="Honduras", + capital="Tegucigalpa", + ), + Country( + timezones=["Europe/Budapest"], + alpha_2_code="HU", + alpha_3_code="HUN", + continent="Europe", + name="Hungary", + capital="Budapest", + ), + Country( + timezones=[ + "Asia/Jakarta", + "Asia/Pontianak", + "Asia/Makassar", + "Asia/Jayapura", + ], + alpha_2_code="ID", + alpha_3_code="IDN", + continent="Asia", + name="Indonesia", + capital="Jakarta", + ), + Country( + timezones=["Europe/Dublin"], + alpha_2_code="IE", + alpha_3_code="IRL", + continent="Europe", + name="Republic of Ireland", + capital="Dublin", + ), + Country( + timezones=["Asia/Jerusalem"], + alpha_2_code="IL", + alpha_3_code="ISR", + continent="Asia", + name="Israel", + capital="Jerusalem", + ), + Country( + timezones=["Asia/Calcutta"], + alpha_2_code="IN", + alpha_3_code="IND", + continent="Asia", + name="India", + capital="New Delhi", + ), + Country( + timezones=["Asia/Baghdad"], + alpha_2_code="IQ", + alpha_3_code="IRQ", + continent="Asia", + name="Iraq", + capital="Baghdad", + ), + Country( + timezones=["Asia/Tehran"], + alpha_2_code="IR", + alpha_3_code="IRN", + continent="Asia", + name="Iran", + capital="Tehran", + ), + Country( + timezones=["Atlantic/Reykjavik"], + alpha_2_code="IS", + alpha_3_code="ISL", + continent="Europe", + name="Iceland", + capital="Reykjav\xc3\xadk", + ), + Country( + timezones=["Europe/Rome"], + alpha_2_code="IT", + alpha_3_code="ITA", + continent="Europe", + name="Italy", + capital="Rome", + ), + Country( + timezones=["America/Jamaica"], + alpha_2_code="JM", + alpha_3_code="JAM", + continent="North America", + name="Jamaica", + capital="Kingston", + ), + Country( + timezones=["Asia/Amman"], + alpha_2_code="JO", + alpha_3_code="JOR", + continent="Asia", + name="Jordan", + capital="Amman", + ), + Country( + timezones=["Asia/Tokyo"], + alpha_2_code="JP", + alpha_3_code="JPN", + continent="Asia", + name="Japan", + capital="Tokyo", + ), + Country( + timezones=["Africa/Nairobi"], + alpha_2_code="KE", + alpha_3_code="KEN", + continent="Africa", + name="Kenya", + capital="Nairobi", + ), + Country( + timezones=["Asia/Bishkek"], + alpha_2_code="KG", + alpha_3_code="KGZ", + continent="Asia", + name="Kyrgyzstan", + capital="Bishkek", + ), + Country( + timezones=["Pacific/Tarawa", "Pacific/Enderbury", "Pacific/Kiritimati"], + alpha_2_code="KI", + alpha_3_code="KIR", + continent="Oceania", + name="Kiribati", + capital="Tarawa", + ), + Country( + timezones=["Asia/Pyongyang"], + alpha_2_code="KP", + alpha_3_code="PRK", + continent="Asia", + name="North Korea", + capital="Pyongyang", + ), + Country( + timezones=["Asia/Seoul"], + alpha_2_code="KR", + alpha_3_code="KOR", + continent="Asia", + name="South Korea", + capital="Seoul", + ), + Country( + timezones=["Asia/Kuwait"], + alpha_2_code="KW", + alpha_3_code="KWT", + continent="Asia", + name="Kuwait", + capital="Kuwait City", + ), + Country( + timezones=["Asia/Beirut"], + alpha_2_code="LB", + alpha_3_code="LBN", + continent="Asia", + name="Lebanon", + capital="Beirut", + ), + Country( + timezones=["Europe/Vaduz"], + alpha_2_code="LI", + alpha_3_code="LIE", + continent="Europe", + name="Liechtenstein", + capital="Vaduz", + ), + Country( + timezones=["Africa/Monrovia"], + alpha_2_code="LR", + alpha_3_code="LBR", + continent="Africa", + name="Liberia", + capital="Monrovia", + ), + Country( + timezones=["Africa/Maseru"], + alpha_2_code="LS", + alpha_3_code="LSO", + continent="Africa", + name="Lesotho", + capital="Maseru", + ), + Country( + timezones=["Europe/Vilnius"], + alpha_2_code="LT", + alpha_3_code="LTU", + continent="Europe", + name="Lithuania", + capital="Vilnius", + ), + Country( + timezones=["Europe/Luxembourg"], + alpha_2_code="LU", + alpha_3_code="LUX", + continent="Europe", + name="Luxembourg", + capital="Luxembourg City", + ), + Country( + timezones=["Europe/Riga"], + alpha_2_code="LV", + alpha_3_code="LVA", + continent="Europe", + name="Latvia", + capital="Riga", + ), + Country( + timezones=["Africa/Tripoli"], + alpha_2_code="LY", + alpha_3_code="LBY", + continent="Africa", + name="Libya", + capital="Tripoli", + ), + Country( + timezones=["Indian/Antananarivo"], + alpha_2_code="MG", + alpha_3_code="MDG", + continent="Africa", + name="Madagascar", + capital="Antananarivo", + ), + Country( + timezones=["Pacific/Majuro", "Pacific/Kwajalein"], + alpha_2_code="MH", + alpha_3_code="MHL", + continent="Oceania", + name="Marshall Islands", + capital="Majuro", + ), + Country( + timezones=["Europe/Skopje"], + alpha_2_code="MK", + alpha_3_code="MKD", + continent="Europe", + name="North Macedonia", + capital="Skopje", + ), + Country( + timezones=["Africa/Bamako"], + alpha_2_code="ML", + alpha_3_code="MLI", + continent="Africa", + name="Mali", + capital="Bamako", + ), + Country( + timezones=["Asia/Rangoon"], + alpha_2_code="MM", + alpha_3_code="MMR", + continent="Asia", + name="Myanmar", + capital="Naypyidaw", + ), + Country( + timezones=["Asia/Ulaanbaatar", "Asia/Hovd", "Asia/Choibalsan"], + alpha_2_code="MN", + alpha_3_code="MNG", + continent="Asia", + name="Mongolia", + capital="Ulaanbaatar", + ), + Country( + timezones=["Africa/Nouakchott"], + alpha_2_code="MR", + alpha_3_code="MRT", + continent="Africa", + name="Mauritania", + capital="Nouakchott", + ), + Country( + timezones=["Europe/Malta"], + alpha_2_code="MT", + alpha_3_code="MLT", + continent="Europe", + name="Malta", + capital="Valletta", + ), + Country( + timezones=["Indian/Mauritius"], + alpha_2_code="MU", + alpha_3_code="MUS", + continent="Africa", + name="Mauritius", + capital="Port Louis", + ), + Country( + timezones=["Indian/Maldives"], + alpha_2_code="MV", + alpha_3_code="MDV", + continent="Asia", + name="Maldives", + capital="Mal\xc3\xa9", + ), + Country( + timezones=["Africa/Blantyre"], + alpha_2_code="MW", + alpha_3_code="MWI", + continent="Africa", + name="Malawi", + capital="Lilongwe", + ), + Country( + timezones=[ + "America/Mexico_City", + "America/Cancun", + "America/Merida", + "America/Monterrey", + "America/Mazatlan", + "America/Chihuahua", + "America/Hermosillo", + "America/Tijuana", + ], + alpha_2_code="MX", + alpha_3_code="MEX", + continent="North America", + name="Mexico", + capital="Mexico City", + ), + Country( + timezones=["Asia/Kuala_Lumpur", "Asia/Kuching"], + alpha_2_code="MY", + alpha_3_code="MYS", + continent="Asia", + name="Malaysia", + capital="Kuala Lumpur", + ), + Country( + timezones=["Africa/Maputo"], + alpha_2_code="MZ", + alpha_3_code="MOZ", + continent="Africa", + name="Mozambique", + capital="Maputo", + ), + Country( + timezones=["Africa/Windhoek"], + alpha_2_code="NA", + alpha_3_code="NAM", + continent="Africa", + name="Namibia", + capital="Windhoek", + ), + Country( + timezones=["Africa/Niamey"], + alpha_2_code="NE", + alpha_3_code="NER", + continent="Africa", + name="Niger", + capital="Niamey", + ), + Country( + timezones=["Africa/Lagos"], + alpha_2_code="NG", + alpha_3_code="NGA", + continent="Africa", + name="Nigeria", + capital="Abuja", + ), + Country( + timezones=["America/Managua"], + alpha_2_code="NI", + alpha_3_code="NIC", + continent="North America", + name="Nicaragua", + capital="Managua", + ), + Country( + timezones=["Europe/Amsterdam"], + alpha_2_code="NL", + alpha_3_code="NLD", + continent="Europe", + name="Kingdom of the Netherlands", + capital="Amsterdam", + ), + Country( + timezones=["Europe/Oslo"], + alpha_2_code="NO", + alpha_3_code="NOR", + continent="Europe", + name="Norway", + capital="Oslo", + ), + Country( + timezones=["Asia/Katmandu"], + alpha_2_code="NP", + alpha_3_code="NPL", + continent="Asia", + name="Nepal", + capital="Kathmandu", + ), + Country( + timezones=["Pacific/Nauru"], + alpha_2_code="NR", + alpha_3_code="NRU", + continent="Oceania", + name="Nauru", + capital="Yaren", + ), + Country( + timezones=["Pacific/Auckland", "Pacific/Chatham"], + alpha_2_code="NZ", + alpha_3_code="NZL", + continent="Oceania", + name="New Zealand", + capital="Wellington", + ), + Country( + timezones=["Asia/Muscat"], + alpha_2_code="OM", + alpha_3_code="OMN", + continent="Asia", + name="Oman", + capital="Muscat", + ), + Country( + timezones=["America/Panama"], + alpha_2_code="PA", + alpha_3_code="PAN", + continent="North America", + name="Panama", + capital="Panama City", + ), + Country( + timezones=["America/Lima"], + alpha_2_code="PE", + alpha_3_code="PER", + continent="South America", + name="Peru", + capital="Lima", + ), + Country( + timezones=["Pacific/Port_Moresby"], + alpha_2_code="PG", + alpha_3_code="PNG", + continent="Oceania", + name="Papua New Guinea", + capital="Port Moresby", + ), + Country( + timezones=["Asia/Manila"], + alpha_2_code="PH", + alpha_3_code="PHL", + continent="Asia", + name="Philippines", + capital="Manila", + ), + Country( + timezones=["Asia/Karachi"], + alpha_2_code="PK", + alpha_3_code="PAK", + continent="Asia", + name="Pakistan", + capital="Islamabad", + ), + Country( + timezones=["Europe/Warsaw"], + alpha_2_code="PL", + alpha_3_code="POL", + continent="Europe", + name="Poland", + capital="Warsaw", + ), + Country( + timezones=["Europe/Lisbon", "Atlantic/Madeira", "Atlantic/Azores"], + alpha_2_code="PT", + alpha_3_code="PRT", + continent="Europe", + name="Portugal", + capital="Lisbon", + ), + Country( + timezones=["Pacific/Palau"], + alpha_2_code="PW", + alpha_3_code="PLW", + continent="Oceania", + name="Palau", + capital="Ngerulmud", + ), + Country( + timezones=["America/Asuncion"], + alpha_2_code="PY", + alpha_3_code="PRY", + continent="South America", + name="Paraguay", + capital="Asunci\xc3\xb3n", + ), + Country( + timezones=["Asia/Qatar"], + alpha_2_code="QA", + alpha_3_code="QAT", + continent="Asia", + name="Qatar", + capital="Doha", + ), + Country( + timezones=["Europe/Bucharest"], + alpha_2_code="RO", + alpha_3_code="ROU", + continent="Europe", + name="Romania", + capital="Bucharest", + ), + Country( + timezones=[ + "Europe/Kaliningrad", + "Europe/Moscow", + "Europe/Volgograd", + "Europe/Samara", + "Asia/Yekaterinburg", + "Asia/Omsk", + "Asia/Novosibirsk", + "Asia/Krasnoyarsk", + "Asia/Irkutsk", + "Asia/Yakutsk", + "Asia/Vladivostok", + "Asia/Sakhalin", + "Asia/Magadan", + "Asia/Kamchatka", + "Asia/Anadyr", + ], + alpha_2_code="RU", + alpha_3_code="RUS", + continent="Europe", + name="Russia", + capital="Moscow", + ), + Country( + timezones=["Africa/Kigali"], + alpha_2_code="RW", + alpha_3_code="RWA", + continent="Africa", + name="Rwanda", + capital="Kigali", + ), + Country( + timezones=["Asia/Riyadh"], + alpha_2_code="SA", + alpha_3_code="SAU", + continent="Asia", + name="Saudi Arabia", + capital="Riyadh", + ), + Country( + timezones=["Pacific/Guadalcanal"], + alpha_2_code="SB", + alpha_3_code="SLB", + continent="Oceania", + name="Solomon Islands", + capital="Honiara", + ), + Country( + timezones=["Indian/Mahe"], + alpha_2_code="SC", + alpha_3_code="SYC", + continent="Africa", + name="Seychelles", + capital="Victoria", + ), + Country( + timezones=["Africa/Khartoum"], + alpha_2_code="SD", + alpha_3_code="SDN", + continent="Africa", + name="Sudan", + capital="Khartoum", + ), + Country( + timezones=["Europe/Stockholm"], + alpha_2_code="SE", + alpha_3_code="SWE", + continent="Europe", + name="Sweden", + capital="Stockholm", + ), + Country( + timezones=["Asia/Singapore"], + alpha_2_code="SG", + alpha_3_code="SGP", + continent="Asia", + name="Singapore", + capital="Singapore", + ), + Country( + timezones=["Europe/Ljubljana"], + alpha_2_code="SI", + alpha_3_code="SVN", + continent="Europe", + name="Slovenia", + capital="Ljubljana", + ), + Country( + timezones=["Europe/Bratislava"], + alpha_2_code="SK", + alpha_3_code="SVK", + continent="Europe", + name="Slovakia", + capital="Bratislava", + ), + Country( + timezones=["Africa/Freetown"], + alpha_2_code="SL", + alpha_3_code="SLE", + continent="Africa", + name="Sierra Leone", + capital="Freetown", + ), + Country( + timezones=["Europe/San_Marino"], + alpha_2_code="SM", + alpha_3_code="SMR", + continent="Europe", + name="San Marino", + capital="San Marino", + ), + Country( + timezones=["Africa/Dakar"], + alpha_2_code="SN", + alpha_3_code="SEN", + continent="Africa", + name="Senegal", + capital="Dakar", + ), + Country( + timezones=["Africa/Mogadishu"], + alpha_2_code="SO", + alpha_3_code="SOM", + continent="Africa", + name="Somalia", + capital="Mogadishu", + ), + Country( + timezones=["America/Paramaribo"], + alpha_2_code="SR", + alpha_3_code="SUR", + continent="South America", + name="Suriname", + capital="Paramaribo", + ), + Country( + timezones=["Africa/Sao_Tome"], + alpha_2_code="ST", + alpha_3_code="STP", + continent="Africa", + name="S\xc3\xa3o Tom\xc3\xa9 and Pr\xc3\xadncipe", + capital="S\xc3\xa3o Tom\xc3\xa9", + ), + Country( + timezones=["Asia/Damascus"], + alpha_2_code="SY", + alpha_3_code="SYR", + continent="Asia", + name="Syria", + capital="Damascus", + ), + Country( + timezones=["Africa/Lome"], + alpha_2_code="TG", + alpha_3_code="TGO", + continent="Africa", + name="Togo", + capital="Lom\xc3\xa9", + ), + Country( + timezones=["Asia/Bangkok"], + alpha_2_code="TH", + alpha_3_code="THA", + continent="Asia", + name="Thailand", + capital="Bangkok", + ), + Country( + timezones=["Asia/Dushanbe"], + alpha_2_code="TJ", + alpha_3_code="TJK", + continent="Asia", + name="Tajikistan", + capital="Dushanbe", + ), + Country( + timezones=["Asia/Ashgabat"], + alpha_2_code="TM", + alpha_3_code="TKM", + continent="Asia", + name="Turkmenistan", + capital="Ashgabat", + ), + Country( + timezones=["Africa/Tunis"], + alpha_2_code="TN", + alpha_3_code="TUN", + continent="Africa", + name="Tunisia", + capital="Tunis", + ), + Country( + timezones=["Pacific/Tongatapu"], + alpha_2_code="TO", + alpha_3_code="TON", + continent="Oceania", + name="Tonga", + capital="Nuku\xca\xbbalofa", + ), + Country( + timezones=["Europe/Istanbul"], + alpha_2_code="TR", + alpha_3_code="TUR", + continent="Asia", + name="Turkey", + capital="Ankara", + ), + Country( + timezones=["America/Port_of_Spain"], + alpha_2_code="TT", + alpha_3_code="TTO", + continent="North America", + name="Trinidad and Tobago", + capital="Port of Spain", + ), + Country( + timezones=["Pacific/Funafuti"], + alpha_2_code="TV", + alpha_3_code="TUV", + continent="Oceania", + name="Tuvalu", + capital="Funafuti", + ), + Country( + timezones=["Africa/Dar_es_Salaam"], + alpha_2_code="TZ", + alpha_3_code="TZA", + continent="Africa", + name="Tanzania", + capital="Dodoma", + ), + Country( + timezones=[ + "Europe/Kiev", + "Europe/Uzhgorod", + "Europe/Zaporozhye", + "Europe/Simferopol", + ], + alpha_2_code="UA", + alpha_3_code="UKR", + continent="Europe", + name="Ukraine", + capital="Kiev", + ), + Country( + timezones=["Africa/Kampala"], + alpha_2_code="UG", + alpha_3_code="UGA", + continent="Africa", + name="Uganda", + capital="Kampala", + ), + Country( + timezones=[ + "America/New_York", + "America/Detroit", + "America/Kentucky/Louisville", + "America/Kentucky/Monticello", + "America/Indiana/Indianapolis", + "America/Indiana/Marengo", + "America/Indiana/Knox", + "America/Indiana/Vevay", + "America/Chicago", + "America/Indiana/Vincennes", + "America/Indiana/Petersburg", + "America/Menominee", + "America/North_Dakota/Center", + "America/North_Dakota/New_Salem", + "America/Denver", + "America/Boise", + "America/Shiprock", + "America/Phoenix", + "America/Los_Angeles", + "America/Anchorage", + "America/Juneau", + "America/Yakutat", + "America/Nome", + "America/Adak", + "Pacific/Honolulu", + ], + alpha_2_code="US", + alpha_3_code="USA", + continent="North America", + name="United States", + capital="Washington, D.C.", + ), + Country( + timezones=["America/Montevideo"], + alpha_2_code="UY", + alpha_3_code="URY", + continent="South America", + name="Uruguay", + capital="Montevideo", + ), + Country( + timezones=["Asia/Samarkand", "Asia/Tashkent"], + alpha_2_code="UZ", + alpha_3_code="UZB", + continent="Asia", + name="Uzbekistan", + capital="Tashkent", + ), + Country( + timezones=["Europe/Vatican"], + alpha_2_code="VA", + alpha_3_code="VAT", + continent="Europe", + name="Vatican City", + capital="Vatican City", + ), + Country( + timezones=["America/Caracas"], + alpha_2_code="VE", + alpha_3_code="VEN", + continent="South America", + name="Venezuela", + capital="Caracas", + ), + Country( + timezones=["Asia/Saigon"], + alpha_2_code="VN", + alpha_3_code="VNM", + continent="Asia", + name="Vietnam", + capital="Hanoi", + ), + Country( + timezones=["Pacific/Efate"], + alpha_2_code="VU", + alpha_3_code="VUT", + continent="Oceania", + name="Vanuatu", + capital="Port Vila", + ), + Country( + timezones=["Asia/Aden"], + alpha_2_code="YE", + alpha_3_code="YEM", + continent="Asia", + name="Yemen", + capital="Sana'a", + ), + Country( + timezones=["Africa/Lusaka"], + alpha_2_code="ZM", + alpha_3_code="ZMB", + continent="Africa", + name="Zambia", + capital="Lusaka", + ), + Country( + timezones=["Africa/Harare"], + alpha_2_code="ZW", + alpha_3_code="ZWE", + continent="Africa", + name="Zimbabwe", + capital="Harare", + ), + Country( + timezones=["Africa/Algiers"], + alpha_2_code="DZ", + alpha_3_code="DZA", + continent="Africa", + name="Algeria", + capital="Algiers", + ), + Country( + timezones=["Europe/Sarajevo"], + alpha_2_code="BA", + alpha_3_code="BIH", + continent="Europe", + name="Bosnia and Herzegovina", + capital="Sarajevo", + ), + Country( + timezones=["Asia/Phnom_Penh"], + alpha_2_code="KH", + alpha_3_code="KHM", + continent="Asia", + name="Cambodia", + capital="Phnom Penh", + ), + Country( + timezones=["Africa/Bangui"], + alpha_2_code="CF", + alpha_3_code="CAF", + continent="Africa", + name="Central African Republic", + capital="Bangui", + ), + Country( + timezones=["Africa/Ndjamena"], + alpha_2_code="TD", + alpha_3_code="TCD", + continent="Africa", + name="Chad", + capital="N'Djamena", + ), + Country( + timezones=["Indian/Comoro"], + alpha_2_code="KM", + alpha_3_code="COM", + continent="Africa", + name="Comoros", + capital="Moroni", + ), + Country( + timezones=["Europe/Zagreb"], + alpha_2_code="HR", + alpha_3_code="HRV", + continent="Europe", + name="Croatia", + capital="Zagreb", + ), + Country( + timezones=["Asia/Dili"], + alpha_2_code="TL", + alpha_3_code="TLS", + continent="Asia", + name="East Timor", + capital="Dili", + ), + Country( + timezones=["America/El_Salvador"], + alpha_2_code="SV", + alpha_3_code="SLV", + continent="North America", + name="El Salvador", + capital="San Salvador", + ), + Country( + timezones=["Africa/Malabo"], + alpha_2_code="GQ", + alpha_3_code="GNQ", + continent="Africa", + name="Equatorial Guinea", + capital="Malabo", + ), + Country( + timezones=["America/Grenada"], + alpha_2_code="GD", + alpha_3_code="GRD", + continent="North America", + name="Grenada", + capital="St. George's", + ), + Country( + timezones=[ + "Asia/Almaty", + "Asia/Qyzylorda", + "Asia/Aqtobe", + "Asia/Aqtau", + "Asia/Oral", + ], + alpha_2_code="KZ", + alpha_3_code="KAZ", + continent="Asia", + name="Kazakhstan", + capital="Astana", + ), + Country( + timezones=["Asia/Vientiane"], + alpha_2_code="LA", + alpha_3_code="LAO", + continent="Asia", + name="Laos", + capital="Vientiane", + ), + Country( + timezones=["Pacific/Truk", "Pacific/Ponape", "Pacific/Kosrae"], + alpha_2_code="FM", + alpha_3_code="FSM", + continent="Oceania", + name="Federated States of Micronesia", + capital="Palikir", + ), + Country( + timezones=["Europe/Chisinau"], + alpha_2_code="MD", + alpha_3_code="MDA", + continent="Europe", + name="Moldova", + capital="Chi\xc5\x9fin\xc4\x83u", + ), + Country( + timezones=["Europe/Monaco"], + alpha_2_code="MC", + alpha_3_code="MCO", + continent="Europe", + name="Monaco", + capital="Monaco", + ), + Country( + timezones=["Europe/Podgorica"], + alpha_2_code="ME", + alpha_3_code="MNE", + continent="Europe", + name="Montenegro", + capital="Podgorica", + ), + Country( + timezones=["Africa/Casablanca"], + alpha_2_code="MA", + alpha_3_code="MAR", + continent="Africa", + name="Morocco", + capital="Rabat", + ), + Country( + timezones=["America/St_Kitts"], + alpha_2_code="KN", + alpha_3_code="KNA", + continent="North America", + name="Saint Kitts and Nevis", + capital="Basseterre", + ), + Country( + timezones=["America/St_Lucia"], + alpha_2_code="LC", + alpha_3_code="LCA", + continent="North America", + name="Saint Lucia", + capital="Castries", + ), + Country( + timezones=["America/St_Vincent"], + alpha_2_code="VC", + alpha_3_code="VCT", + continent="North America", + name="Saint Vincent and the Grenadines", + capital="Kingstown", + ), + Country( + timezones=["Pacific/Apia"], + alpha_2_code="WS", + alpha_3_code="WSM", + continent="Oceania", + name="Samoa", + capital="Apia", + ), + Country( + timezones=["Europe/Belgrade"], + alpha_2_code="RS", + alpha_3_code="SRB", + continent="Europe", + name="Serbia", + capital="Belgrade", + ), + Country( + timezones=["Africa/Johannesburg"], + alpha_2_code="ZA", + alpha_3_code="ZAF", + continent="Africa", + name="South Africa", + capital="Pretoria", + ), + Country( + timezones=["Europe/Madrid", "Africa/Ceuta", "Atlantic/Canary"], + alpha_2_code="ES", + alpha_3_code="ESP", + continent="Europe", + name="Spain", + capital="Madrid", + ), + Country( + timezones=["Asia/Colombo"], + alpha_2_code="LK", + alpha_3_code="LKA", + continent="Asia", + name="Sri Lanka", + capital="Sri Jayewardenepura Kotte", + ), + Country( + timezones=["Africa/Mbabane"], + alpha_2_code="SZ", + alpha_3_code="SWZ", + continent="Africa", + name="Swaziland", + capital="Mbabane", + ), + Country( + timezones=["Europe/Zurich"], + alpha_2_code="CH", + alpha_3_code="CHE", + continent="Europe", + name="Switzerland", + capital="Bern", + ), + Country( + timezones=["Asia/Dubai"], + alpha_2_code="AE", + alpha_3_code="ARE", + continent="Asia", + name="United Arab Emirates", + capital="Abu Dhabi", + ), + Country( + timezones=["Europe/London"], + alpha_2_code="GB", + alpha_3_code="GBR", + continent="Europe", + name="United Kingdom", + capital="London", + ), + Country( + timezones=["Asia/Taipei"], + alpha_2_code="TW", + alpha_3_code="TWN", + continent="Asia", + name="Taiwan", + capital="Taipei", + ), + Country( + timezones=["Asia/Gaza", "Asia/Hebron"], + alpha_2_code="PS", + alpha_3_code="PSE", + continent="Asia", + name="Palestine", + capital="Ramallah", + ), + ] + + regex = re.compile(timedelta_pattern) + + def unix_time( + self, + end_datetime: Optional[DateParseType] = None, + start_datetime: Optional[DateParseType] = None, + ) -> float: + """ + Get a timestamp between January 1, 1970 and now, unless passed + explicit start_datetime or end_datetime values. + + On Windows, the decimal part is always 0. + + :example: 1061306726.6 + """ + start_datetime = self._parse_start_datetime(start_datetime) + end_datetime = self._parse_end_datetime(end_datetime) + return float(self._rand_seconds(start_datetime, end_datetime)) + + def time_delta(self, end_datetime: Optional[DateParseType] = None) -> timedelta: + """ + Get a timedelta object + """ + start_datetime = self._parse_start_datetime("now") + end_datetime = self._parse_end_datetime(end_datetime) + seconds = end_datetime - start_datetime + + ts = self._rand_seconds(*sorted([0, seconds])) + return timedelta(seconds=ts) + + def date_time( + self, + tzinfo: Optional[TzInfo] = None, + end_datetime: Optional[DateParseType] = None, + ) -> datetime: + """ + Get a datetime object for a date between January 1, 1970 and now + + :param tzinfo: timezone, instance of datetime.tzinfo subclass + :example: datetime('2005-08-16 20:39:21') + :return: datetime + """ + # NOTE: On windows, the lowest value you can get from windows is 86400 + # on the first day. Known python issue: + # https://bugs.python.org/issue30684 + return datetime(1970, 1, 1, tzinfo=tzinfo) + timedelta(seconds=self.unix_time(end_datetime=end_datetime)) + + def date_time_ad( + self, + tzinfo: Optional[TzInfo] = None, + end_datetime: Optional[DateParseType] = None, + start_datetime: Optional[DateParseType] = None, + ) -> datetime: + """ + Get a datetime object for a date between January 1, 001 and now + + :param tzinfo: timezone, instance of datetime.tzinfo subclass + :example: datetime('1265-03-22 21:15:52') + :return: datetime + """ + + # 1970-01-01 00:00:00 UTC minus 62135596800 seconds is + # 0001-01-01 00:00:00 UTC. Since _parse_end_datetime() is used + # elsewhere where a default value of 0 is expected, we can't + # simply change that class method to use this magic number as a + # default value when None is provided. + + start_time = -62135596800 if start_datetime is None else self._parse_start_datetime(start_datetime) + end_datetime = self._parse_end_datetime(end_datetime) + + ts = self._rand_seconds(start_time, end_datetime) + # NOTE: using datetime.fromtimestamp(ts) directly will raise + # a "ValueError: timestamp out of range for platform time_t" + # on some platforms due to system C functions; + # see http://stackoverflow.com/a/10588133/2315612 + # NOTE: On windows, the lowest value you can get from windows is 86400 + # on the first day. Known python issue: + # https://bugs.python.org/issue30684 + return datetime(1970, 1, 1, tzinfo=tzinfo) + timedelta(seconds=ts) + + def iso8601( + self, + tzinfo: Optional[TzInfo] = None, + end_datetime: Optional[DateParseType] = None, + sep: str = "T", + timespec: str = "auto", + ) -> str: + """ + Get a timestamp in ISO 8601 format (or one of its profiles). + + :param tzinfo: timezone, instance of datetime.tzinfo subclass + :param sep: separator between date and time, defaults to 'T' + :param timespec: format specifier for the time part, defaults to 'auto' - see datetime.isoformat() documentation + :example: '2003-10-21T16:05:52+0000' + """ + return self.date_time(tzinfo, end_datetime=end_datetime).isoformat(sep, timespec) + + def date(self, pattern: str = "%Y-%m-%d", end_datetime: Optional[DateParseType] = None) -> str: + """ + Get a date string between January 1, 1970 and now. + + :param pattern: Format of the date (year-month-day by default) + :example: '2008-11-27' + :return: Date + """ + return self.date_time(end_datetime=end_datetime).strftime(pattern) + + def date_object(self, end_datetime: Optional[datetime] = None) -> dtdate: + """ + Get a date object between January 1, 1970 and now + + :example: datetime.date(2016, 9, 20) + """ + return self.date_time(end_datetime=end_datetime).date() + + def time(self, pattern: str = "%H:%M:%S", end_datetime: Optional[DateParseType] = None) -> str: + """ + Get a time string (24h format by default) + + :param pattern: format + :example: '15:02:34' + """ + return self.date_time(end_datetime=end_datetime).time().strftime(pattern) + + def time_object(self, end_datetime: Optional[DateParseType] = None) -> dttime: + """ + Get a time object + + :example: datetime.time(15, 56, 56, 772876) + """ + return self.date_time(end_datetime=end_datetime).time() + + @classmethod + def _parse_start_datetime(cls, value: Optional[DateParseType]) -> int: + if value is None: + return 0 + + return cls._parse_date_time(value) + + @classmethod + def _parse_end_datetime(cls, value: Optional[DateParseType]) -> int: + if value is None: + return datetime_to_timestamp(datetime.now()) + + return cls._parse_date_time(value) + + @classmethod + def _parse_date_string(cls, value: str) -> Dict[str, float]: + parts = cls.regex.match(value) + if not parts: + raise ParseError(f"Can't parse date string `{value}`") + parts = parts.groupdict() + time_params: Dict[str, float] = {} + for name_, param_ in parts.items(): + if param_: + time_params[name_] = int(param_) + + if "years" in time_params: + if "days" not in time_params: + time_params["days"] = 0 + time_params["days"] += 365.24 * time_params.pop("years") + if "months" in time_params: + if "days" not in time_params: + time_params["days"] = 0 + time_params["days"] += 30.42 * time_params.pop("months") + + if not time_params: + raise ParseError(f"Can't parse date string `{value}`") + return time_params + + @classmethod + def _parse_timedelta(cls, value: Union[timedelta, str, float]) -> Union[float, int]: + if isinstance(value, timedelta): + return value.total_seconds() + if isinstance(value, str): + time_params = cls._parse_date_string(value) + return timedelta(**time_params).total_seconds() # type: ignore + if isinstance(value, (int, float)): + return value + raise ParseError(f"Invalid format for timedelta {value!r}") + + @classmethod + def _parse_date_time(cls, value: DateParseType, tzinfo: Optional[TzInfo] = None) -> int: + if isinstance(value, (datetime, dtdate)): + return datetime_to_timestamp(value) + now = datetime.now(tzinfo) + if isinstance(value, timedelta): + return datetime_to_timestamp(now + value) + if isinstance(value, str): + if value == "now": + return datetime_to_timestamp(datetime.now(tzinfo)) + time_params = cls._parse_date_string(value) + return datetime_to_timestamp(now + timedelta(**time_params)) # type: ignore + if isinstance(value, int): + return value + raise ParseError(f"Invalid format for date {value!r}") + + @classmethod + def _parse_date(cls, value: DateParseType) -> dtdate: + if isinstance(value, datetime): + return value.date() + elif isinstance(value, dtdate): + return value + today = dtdate.today() + if isinstance(value, timedelta): + return today + value + if isinstance(value, str): + if value in ("today", "now"): + return today + time_params = cls._parse_date_string(value) + return today + timedelta(**time_params) # type: ignore + if isinstance(value, int): + return today + timedelta(value) + raise ParseError(f"Invalid format for date {value!r}") + + def date_time_between( + self, + start_date: DateParseType = "-30y", + end_date: DateParseType = "now", + tzinfo: Optional[TzInfo] = None, + ) -> datetime: + """ + Get a datetime object based on a random date between two given dates. + Accepts date strings that can be recognized by strtotime(). + + :param start_date: Defaults to 30 years ago + :param end_date: Defaults to "now" + :param tzinfo: timezone, instance of datetime.tzinfo subclass + :example: datetime('1999-02-02 11:42:52') + :return: datetime + """ + start_date = self._parse_date_time(start_date, tzinfo=tzinfo) + end_date = self._parse_date_time(end_date, tzinfo=tzinfo) + if end_date - start_date <= 1: + ts = start_date + self.generator.random.random() + else: + ts = self._rand_seconds(start_date, end_date) + if tzinfo is None: + return datetime(1970, 1, 1, tzinfo=tzinfo) + timedelta(seconds=ts) + else: + return (datetime(1970, 1, 1, tzinfo=tzutc()) + timedelta(seconds=ts)).astimezone(tzinfo) + + def date_between(self, start_date: DateParseType = "-30y", end_date: DateParseType = "today") -> dtdate: + """ + Get a Date object based on a random date between two given dates. + Accepts date strings that can be recognized by strtotime(). + + :param start_date: Defaults to 30 years ago + :param end_date: Defaults to "today" + :example: Date('1999-02-02') + :return: Date + """ + + start_date = self._parse_date(start_date) + end_date = self._parse_date(end_date) + return self.date_between_dates(date_start=start_date, date_end=end_date) + + def future_datetime(self, end_date: DateParseType = "+30d", tzinfo: Optional[TzInfo] = None) -> datetime: + """ + Get a datetime object based on a random date between 1 second form now + and a given date. + Accepts date strings that can be recognized by strtotime(). + + :param end_date: Defaults to "+30d" + :param tzinfo: timezone, instance of datetime.tzinfo subclass + :example: datetime('1999-02-02 11:42:52') + :return: datetime + """ + return self.date_time_between(start_date="+1s", end_date=end_date, tzinfo=tzinfo) + + def future_date(self, end_date: DateParseType = "+30d", tzinfo: Optional[TzInfo] = None) -> dtdate: + """ + Get a Date object based on a random date between 1 day from now and a + given date. + Accepts date strings that can be recognized by strtotime(). + + :param end_date: Defaults to "+30d" + :param tzinfo: timezone, instance of datetime.tzinfo subclass + :example: dtdate('2030-01-01') + :return: dtdate + """ + return self.date_between(start_date="+1d", end_date=end_date) + + def past_datetime(self, start_date: DateParseType = "-30d", tzinfo: Optional[TzInfo] = None) -> datetime: + """ + Get a datetime object based on a random date between a given date and 1 + second ago. + Accepts date strings that can be recognized by strtotime(). + + :param start_date: Defaults to "-30d" + :param tzinfo: timezone, instance of datetime.tzinfo subclass + :example: datetime('1999-02-02 11:42:52') + :return: datetime + """ + return self.date_time_between(start_date=start_date, end_date="-1s", tzinfo=tzinfo) + + def past_date(self, start_date: DateParseType = "-30d", tzinfo: Optional[TzInfo] = None) -> dtdate: + """ + Get a Date object based on a random date between a given date and 1 day + ago. + Accepts date strings that can be recognized by strtotime(). + + :param start_date: Defaults to "-30d" + :param tzinfo: timezone, instance of datetime.tzinfo subclass + :example: dtdate('1999-02-02') + :return: dtdate + """ + return self.date_between(start_date=start_date, end_date="-1d") + + def date_time_between_dates( + self, + datetime_start: Optional[DateParseType] = None, + datetime_end: Optional[DateParseType] = None, + tzinfo: Optional[TzInfo] = None, + ) -> datetime: + """ + Takes two datetime objects and returns a random datetime between the two + given datetimes. + Accepts datetime objects. + + :param datetime_start: datetime + :param datetime_end: datetime + :param tzinfo: timezone, instance of datetime.tzinfo subclass + :example: datetime('1999-02-02 11:42:52') + :return: datetime + """ + datetime_start_ = ( + datetime_to_timestamp(datetime.now(tzinfo)) + if datetime_start is None + else self._parse_date_time(datetime_start) + ) + datetime_end_ = ( + datetime_to_timestamp(datetime.now(tzinfo)) if datetime_end is None else self._parse_date_time(datetime_end) + ) + + timestamp = self._rand_seconds(datetime_start_, datetime_end_) + try: + if tzinfo is None: + pick = convert_timestamp_to_datetime(timestamp, tzlocal()) + try: + pick = pick.astimezone(tzutc()).replace(tzinfo=None) + except OSError: + pass + else: + pick = datetime.fromtimestamp(timestamp, tzinfo) + except OverflowError: + raise OverflowError( + "You specified an end date with a timestamp bigger than the maximum allowed on this" + " system. Please specify an earlier date.", + ) + return pick + + def date_between_dates( + self, + date_start: Optional[DateParseType] = None, + date_end: Optional[DateParseType] = None, + ) -> dtdate: + """ + Takes two Date objects and returns a random date between the two given dates. + Accepts Date or datetime objects + + :param date_start: Date + :param date_end: Date + :return: Date + """ + return self.date_time_between_dates(date_start, date_end).date() + + def date_time_this_century( + self, + before_now: bool = True, + after_now: bool = False, + tzinfo: Optional[TzInfo] = None, + ) -> datetime: + """ + Gets a datetime object for the current century. + + :param before_now: include days in current century before today + :param after_now: include days in current century after today + :param tzinfo: timezone, instance of datetime.tzinfo subclass + :example: datetime('2012-04-04 11:02:02') + :return: datetime + """ + now = datetime.now(tzinfo) + this_century_start = datetime(now.year - (now.year % 100), 1, 1, tzinfo=tzinfo) + next_century_start = datetime(min(this_century_start.year + 100, MAXYEAR), 1, 1, tzinfo=tzinfo) + + if before_now and after_now: + return self.date_time_between_dates(this_century_start, next_century_start, tzinfo) + elif not before_now and after_now: + return self.date_time_between_dates(now, next_century_start, tzinfo) + elif not after_now and before_now: + return self.date_time_between_dates(this_century_start, now, tzinfo) + else: + return now + + def date_time_this_decade( + self, + before_now: bool = True, + after_now: bool = False, + tzinfo: Optional[TzInfo] = None, + ) -> datetime: + """ + Gets a datetime object for the decade year. + + :param before_now: include days in current decade before today + :param after_now: include days in current decade after today + :param tzinfo: timezone, instance of datetime.tzinfo subclass + :example: datetime('2012-04-04 11:02:02') + :return: datetime + """ + now = datetime.now(tzinfo) + this_decade_start = datetime(now.year - (now.year % 10), 1, 1, tzinfo=tzinfo) + next_decade_start = datetime(min(this_decade_start.year + 10, MAXYEAR), 1, 1, tzinfo=tzinfo) + + if before_now and after_now: + return self.date_time_between_dates(this_decade_start, next_decade_start, tzinfo) + elif not before_now and after_now: + return self.date_time_between_dates(now, next_decade_start, tzinfo) + elif not after_now and before_now: + return self.date_time_between_dates(this_decade_start, now, tzinfo) + else: + return now + + def date_time_this_year( + self, + before_now: bool = True, + after_now: bool = False, + tzinfo: Optional[TzInfo] = None, + ) -> datetime: + """ + Gets a datetime object for the current year. + + :param before_now: include days in current year before today + :param after_now: include days in current year after today + :param tzinfo: timezone, instance of datetime.tzinfo subclass + :example: datetime('2012-04-04 11:02:02') + :return: datetime + """ + now = datetime.now(tzinfo) + this_year_start = now.replace(month=1, day=1, hour=0, minute=0, second=0, microsecond=0) + next_year_start = datetime(now.year + 1, 1, 1, tzinfo=tzinfo) + + if before_now and after_now: + return self.date_time_between_dates(this_year_start, next_year_start, tzinfo) + elif not before_now and after_now: + return self.date_time_between_dates(now, next_year_start, tzinfo) + elif not after_now and before_now: + return self.date_time_between_dates(this_year_start, now, tzinfo) + else: + return now + + def date_time_this_month( + self, + before_now: bool = True, + after_now: bool = False, + tzinfo: Optional[TzInfo] = None, + ) -> datetime: + """ + Gets a datetime object for the current month. + + :param before_now: include days in current month before today + :param after_now: include days in current month after today + :param tzinfo: timezone, instance of datetime.tzinfo subclass + :example: datetime('2012-04-04 11:02:02') + :return: datetime + """ + now = datetime.now(tzinfo) + this_month_start = now.replace(day=1, hour=0, minute=0, second=0, microsecond=0) + + next_month_start = this_month_start + relativedelta.relativedelta(months=1) + if before_now and after_now: + return self.date_time_between_dates(this_month_start, next_month_start, tzinfo) + elif not before_now and after_now: + return self.date_time_between_dates(now, next_month_start, tzinfo) + elif not after_now and before_now: + return self.date_time_between_dates(this_month_start, now, tzinfo) + else: + return now + + def date_this_century(self, before_today: bool = True, after_today: bool = False) -> dtdate: + """ + Gets a Date object for the current century. + + :param before_today: include days in current century before today + :param after_today: include days in current century after today + :example: Date('2012-04-04') + :return: Date + """ + today = dtdate.today() + this_century_start = dtdate(today.year - (today.year % 100), 1, 1) + next_century_start = dtdate(this_century_start.year + 100, 1, 1) + + if before_today and after_today: + return self.date_between_dates(this_century_start, next_century_start) + elif not before_today and after_today: + return self.date_between_dates(today, next_century_start) + elif not after_today and before_today: + return self.date_between_dates(this_century_start, today) + else: + return today + + def date_this_decade(self, before_today: bool = True, after_today: bool = False) -> dtdate: + """ + Gets a Date object for the decade year. + + :param before_today: include days in current decade before today + :param after_today: include days in current decade after today + :example: Date('2012-04-04') + :return: Date + """ + today = dtdate.today() + this_decade_start = dtdate(today.year - (today.year % 10), 1, 1) + next_decade_start = dtdate(this_decade_start.year + 10, 1, 1) + + if before_today and after_today: + return self.date_between_dates(this_decade_start, next_decade_start) + elif not before_today and after_today: + return self.date_between_dates(today, next_decade_start) + elif not after_today and before_today: + return self.date_between_dates(this_decade_start, today) + else: + return today + + def date_this_year(self, before_today: bool = True, after_today: bool = False) -> dtdate: + """ + Gets a Date object for the current year. + + :param before_today: include days in current year before today + :param after_today: include days in current year after today + :example: Date('2012-04-04') + :return: Date + """ + today = dtdate.today() + this_year_start = today.replace(month=1, day=1) + next_year_start = dtdate(today.year + 1, 1, 1) + + if before_today and after_today: + return self.date_between_dates(this_year_start, next_year_start) + elif not before_today and after_today: + return self.date_between_dates(today, next_year_start) + elif not after_today and before_today: + return self.date_between_dates(this_year_start, today) + else: + return today + + def date_this_month(self, before_today: bool = True, after_today: bool = False) -> dtdate: + """ + Gets a Date object for the current month. + + :param before_today: include days in current month before today + :param after_today: include days in current month after today + :example: dtdate('2012-04-04') + :return: dtdate + """ + today = dtdate.today() + this_month_start = today.replace(day=1) + + next_month_start = this_month_start + relativedelta.relativedelta(months=1) + if before_today and after_today: + return self.date_between_dates(this_month_start, next_month_start) + elif not before_today and after_today: + return self.date_between_dates(today, next_month_start) + elif not after_today and before_today: + return self.date_between_dates(this_month_start, today) + else: + return today + + def time_series( + self, + start_date: DateParseType = "-30d", + end_date: DateParseType = "now", + precision: Optional[float] = None, + distrib: Optional[Callable[[datetime], float]] = None, + tzinfo: Optional[TzInfo] = None, + ) -> Iterator[Tuple[datetime, Any]]: + """ + Returns a generator yielding tuples of ``(<datetime>, <value>)``. + + The data points will start at ``start_date``, and be at every time interval specified by + ``precision``. + ``distrib`` is a callable that accepts ``<datetime>`` and returns ``<value>`` + + """ + start_date_ = self._parse_date_time(start_date, tzinfo=tzinfo) + end_date_ = self._parse_date_time(end_date, tzinfo=tzinfo) + + if end_date_ < start_date_: + raise ValueError("`end_date` must be greater than `start_date`.") + + precision_ = self._parse_timedelta((end_date_ - start_date_) / 30 if precision is None else precision) + if distrib is None: + + def distrib(dt): + return self.generator.random.uniform(0, precision_) # noqa + + if not callable(distrib): + raise ValueError(f"`distrib` must be a callable. Got {distrib} instead.") + + datapoint: Union[float, int] = start_date_ + while datapoint < end_date_: + dt = timestamp_to_datetime(datapoint, tzinfo) + datapoint += precision_ + yield (dt, distrib(dt)) + + def am_pm(self) -> str: + return self.date("%p") + + def day_of_month(self) -> str: + return self.date("%d") + + def day_of_week(self) -> str: + return self.date("%A") + + def month(self) -> str: + return self.date("%m") + + def month_name(self) -> str: + return self.date("%B") + + def year(self) -> str: + return self.date("%Y") + + def century(self) -> str: + """ + :example: 'XVII' + """ + return self.random_element(self.centuries) + + def timezone(self) -> str: + return self.generator.random.choice(self.random_element(self.countries).timezones) # type: ignore + + def pytimezone(self, *args: Any, **kwargs: Any) -> Optional[TzInfo]: + """ + Generate a random timezone (see `faker.timezone` for any args) + and return as a python object usable as a `tzinfo` to `datetime` + or other fakers. + + :example: faker.pytimezone() + :return: dateutil.tz.tz.tzfile + """ + return gettz(self.timezone(*args, **kwargs)) # type: ignore + + def date_of_birth( + self, + tzinfo: Optional[TzInfo] = None, + minimum_age: int = 0, + maximum_age: int = 115, + ) -> dtdate: + """ + Generate a random date of birth represented as a Date object, + constrained by optional miminimum_age and maximum_age + parameters. + + :param tzinfo: Defaults to None. + :param minimum_age: Defaults to 0. + :param maximum_age: Defaults to 115. + + :example: Date('1979-02-02') + :return: Date + """ + + if not isinstance(minimum_age, int): + raise TypeError("minimum_age must be an integer.") + + if not isinstance(maximum_age, int): + raise TypeError("maximum_age must be an integer.") + + if maximum_age < 0: + raise ValueError("maximum_age must be greater than or equal to zero.") + + if minimum_age < 0: + raise ValueError("minimum_age must be greater than or equal to zero.") + + if minimum_age > maximum_age: + raise ValueError("minimum_age must be less than or equal to maximum_age.") + + # In order to return the full range of possible dates of birth, add one + # year to the potential age cap and subtract one day if we land on the + # boundary. + + now = datetime.now(tzinfo).date() + start_date = change_year(now, -(maximum_age + 1)) + end_date = change_year(now, -minimum_age) + + dob = self.date_time_ad(tzinfo=tzinfo, start_datetime=start_date, end_datetime=end_date).date() + + return dob if dob != start_date else dob + timedelta(days=1) + + +def convert_timestamp_to_datetime(timestamp: Union[int, float], tzinfo: TzInfo) -> datetime: + import datetime as dt + + if timestamp >= 0: + return dt.datetime.fromtimestamp(timestamp, tzinfo) + else: + return dt.datetime(1970, 1, 1, tzinfo=tzinfo) + dt.timedelta(seconds=int(timestamp)) diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..e3e2ca0 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/ar_AA/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/ar_AA/__init__.py new file mode 100644 index 0000000..2dbcc77 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/ar_AA/__init__.py @@ -0,0 +1,1765 @@ +from faker.typing import Country + +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "السبت", + "1": "الأحد", + "2": "الإثنين", + "3": "الثلاثاء", + "4": "الأربعاء", + "5": "الخميس", + "6": "الجمعة", + } + + MONTH_NAMES = { + "01": "كانون الثّاني", + "02": "شباط", + "03": "آذار", + "04": "نيسان", + "05": "أيّار", + "06": "حزيران", + "07": "تمّوز", + "08": "آب", + "09": "أيلول", + "10": "تشرين الأول", + "11": "تشرين الثاني", + "12": "كانون الأول", + } + + centuries = [ + "الأول", + "الثاني", + "الثالث", + "الرابع", + "الخامس", + "السادس", + "السابع", + "الثامن", + "التاسع", + "العاشر", + "الحادي عشر", + "الثاني عشر", + "الثالث عشر", + "الرابع عشر", + "الخامس عشر", + "السادس عشر", + "الثامن عشر", + "التاسع عشر", + "العشرين", + "الحادي والعشرين", + "الثاني والعشرين", + ] + + countries = [ + Country( + timezones=["أوروب/أندورا"], + alpha_2_code="AD", + alpha_3_code="AND", + continent="أوروبا", + name="أندورا", + capital="أندورا لا فيلا", + ), + Country( + timezones=["آسيا/كابل"], + alpha_2_code="AF", + alpha_3_code="AFG", + continent="آسيا", + name="أفغانستان", + capital="كابل", + ), + Country( + timezones=["أمريكا/أنتيغوا"], + alpha_2_code="AG", + alpha_3_code="ATG", + continent="أمريكا الشمالية", + name="أنتيغوا وباربودا", + capital="سانت جونز", + ), + Country( + timezones=["أوروبا/تيرانا"], + alpha_2_code="AL", + alpha_3_code="ALB", + continent="أوروبا", + name="ألبانيا", + capital="تيرانا", + ), + Country( + timezones=["آسيا/يريفان"], + alpha_2_code="AM", + alpha_3_code="ARM", + continent="آسيا", + name="أرمينيا", + capital="يريفان", + ), + Country( + timezones=["إفريقيا/لواندا"], + alpha_2_code="AO", + alpha_3_code="AGO", + continent="إفريقيا", + name="أنغولا", + capital="لواندا", + ), + Country( + timezones=[ + "أمريكا/الأرجنتين/بوينس_آيرس", + "أمريكا/الأرجنتين/Cordoba", + "أمريكا/الأرجنتين/خوخوي", + "أمريكا/الأرجنتين/توكومان", + "أمريكا/الأرجنتين/كاتاماركا", + "أمريكا/الأرجنتين/لا_ريوخا", + "أمريكا/الأرجنتين/سان_خوان", + "أمريكا/الأرجنتين/مندوزا", + "أمريكا/الأرجنتين/ريو_غاليغوس", + "أمريكا/الأرجنتين/أوشوايا", + ], + alpha_2_code="AR", + alpha_3_code="ARG", + continent="أمريكا الجنوبية", + name="الأرجنتين", + capital="بوينس آيرس", + ), + Country( + timezones=["أوروبا/النمسا"], + alpha_2_code="AT", + alpha_3_code="AUT", + continent="أوروبا", + name="النمسا", + capital="فيينا", + ), + Country( + timezones=[ + "أستراليا/لورد_هاو", + "أستراليا/هوبارت", + "أستراليا/كري", + "أستراليا/ملبورن", + "أستراليا/سدني", + "أستراليا/بروكن_هل", + "أستراليا/بريزبن", + "أستراليا/ليندمان", + "أستراليا/أديلايد", + "أستراليا/داروين", + "أستراليا/برث", + ], + alpha_2_code="AU", + alpha_3_code="AUS", + continent="أوقيانوسيا", + name="أستراليا", + capital="كانبرا", + ), + Country( + timezones=["آسيا/باكو"], + alpha_2_code="AZ", + alpha_3_code="AZE", + continent="آسيا", + name="أذربيجان", + capital="باكو", + ), + Country( + timezones=["أمريكا/باربادوس"], + alpha_2_code="BB", + alpha_3_code="BRB", + continent="أمريكا الشمالية", + name="باربادوس", + capital="بريدج تاون", + ), + Country( + timezones=["آسيا/دكا"], + alpha_2_code="BD", + alpha_3_code="BGD", + continent="آسيا", + name="بنغلادش", + capital="دكا", + ), + Country( + timezones=["أوروبا/بروكسل"], + alpha_2_code="BE", + alpha_3_code="BEL", + continent="أوروبا", + name="بلجيكا", + capital="بروكسل", + ), + Country( + timezones=["إفريقيا/واغادوغو"], + alpha_2_code="BF", + alpha_3_code="BFA", + continent="إفريقيا", + name="بوركينا فاسو", + capital="واغادوغو", + ), + Country( + timezones=["أوروبا/صوفيا"], + alpha_2_code="BG", + alpha_3_code="BGR", + continent="أوروبا", + name="بلغاريا", + capital="صوفيا", + ), + Country( + timezones=["آسيا/البحرين"], + alpha_2_code="BH", + alpha_3_code="BHR", + continent="آسيا", + name="البحرين", + capital="المنامة", + ), + Country( + timezones=["إفريقيا/بوجمبورا"], + alpha_2_code="BI", + alpha_3_code="BDI", + continent="إفريقيا", + name="بوروندي", + capital="بوجمبورا", + ), + Country( + timezones=["إفريقيا/بورتو نوفو"], + alpha_2_code="BJ", + alpha_3_code="BEN", + continent="إفريقيا", + name="بنين", + capital="بورتو نوفو", + ), + Country( + timezones=["آسيا/بروناي"], + alpha_2_code="BN", + alpha_3_code="BRN", + continent="آسيا", + name="اتحاد بروناي (دار السلام)", + capital="بندر سري بكاوان", + ), + Country( + timezones=["أمريكا/لاباز"], + alpha_2_code="BO", + alpha_3_code="BOL", + continent="أمريكا الجنوبية", + name="بوليفيا", + capital="سوكري", + ), + Country( + timezones=[ + "أمريكا/نورونها", + "أمريكا/بليم", + "أمريكا/فورتاليزا", + "أمريكا/ريسيفي", + "أمريكا/أراغوينا", + "أمريكا/ماسايو", + "أمريكا/باهيا", + "أمريكا/ساو_باولو", + "أمريكا/كامبو_غراندي", + "أمريكا/كويابا", + "أمريكا/بورتو_فاليو", + "أمريكا/بوا_فيستا", + "أمريكا/ماناوس", + "أمريكا/إيرونيبي", + "أمريكا/ريو_برانكو", + ], + alpha_2_code="BR", + alpha_3_code="BRA", + continent="أمريكا الجنوبية", + name="البرازيل", + capital="برازيليا", + ), + Country( + timezones=["أمريكا/ناساو"], + alpha_2_code="BS", + alpha_3_code="BHS", + continent="أمريكا الشمالية", + name="باهاماس", + capital="ناساو", + ), + Country( + timezones=["آسيا/تيمفو"], + alpha_2_code="BT", + alpha_3_code="BTN", + continent="آسيا", + name="بوتان", + capital="تيمفو", + ), + Country( + timezones=["إفريقيا/غابورون"], + alpha_2_code="BW", + alpha_3_code="BWA", + continent="إفريقيا", + name="بوتسوانا", + capital="غابورون", + ), + Country( + timezones=["أوروبا/مينسك"], + alpha_2_code="BY", + alpha_3_code="BLR", + continent="أوروبا", + name="روسيا البيضاء", + capital="مينسك", + ), + Country( + timezones=["أمريكا/بليز"], + alpha_2_code="BZ", + alpha_3_code="BLZ", + continent="أمريكا الشمالية", + name="بليز", + capital="بلموبان", + ), + Country( + timezones=[ + "أمريكا/سينت_جونز", + "أمريكا/هاليفاكس", + "أمريكا/جليس_باي", + "أمريكا/مونكتون", + "أمريكا/جووس_باي", + "أمريكا/بلانك_سابلون", + "أمريكا/مونتريال", + "أمريكا/تورونتو", + "أمريكا/نيبيغون", + "أمريكا/ثاندر_باي", + "أمريكا/بانغيرتانغ", + "أمريكا/إيكواليوت", + "أمريكا/أتيكوكان", + "أمريكا/رانكن_إنلت", + "أمريكا/وينيبيغ", + "أمريكا/رايني_ريفر", + "أمريكا/كامبريدج_باي", + "أمريكا/ريجينا", + "أمريكا/سويفت_كارنت", + "أمريكا/إدمونتون", + "أمريكا/يلو_نايف", + "أمريكا/إنوفك", + "أمريكا/دوسن_كريك", + "أمريكا/فانكوفر", + "أمريكا/وايت_هورس", + "أمريكا/داوسون", + ], + alpha_2_code="CA", + alpha_3_code="CAN", + continent="أمريكا الشمالية", + name="كندا", + capital="أوتاوا", + ), + Country( + timezones=["إفريقيا/كينشاسا", "إفريقيا/لوبومباشي"], + alpha_2_code="CD", + alpha_3_code="COD", + continent="إفريقيا", + name="جمهورية الكونغو الديمقراطية", + capital="كينشاسا", + ), + Country( + timezones=["إفريقيا/برازافيل"], + alpha_2_code="CG", + alpha_3_code="COG", + continent="إفريقيا", + name="جمهورية الكونغو", + capital="برازافيل", + ), + Country( + timezones=["إفريقيا/أبيدجان"], + alpha_2_code="CI", + alpha_3_code="CIV", + continent="إفريقيا", + name="ساحل العاج", + capital="ياموسوكرو", + ), + Country( + timezones=["أمريكا/سانتياغو", "المحيط_الهاديء/جزيرة_القيامة"], + alpha_2_code="CL", + alpha_3_code="CHL", + continent="أمريكا الجنوبية", + name="تشيلي", + capital="سانتياغو", + ), + Country( + timezones=["إفريقيا/دوالا"], + alpha_2_code="CM", + alpha_3_code="CMR", + continent="إفريقيا", + name="الكاميرون", + capital="ياوندي", + ), + Country( + timezones=[ + "آسيا/شانغهاي", + "آسيا/هاربن", + "آسيا/تشونغتشينغ", + "آسيا/أورومتشي", + "آسيا/كاشغر", + ], + alpha_2_code="CN", + alpha_3_code="CHN", + continent="آسيا", + name="جمهورية الصين الشعبية", + capital="بكين", + ), + Country( + timezones=["أمريكا/بوغوتا"], + alpha_2_code="CO", + alpha_3_code="COL", + continent="أمريكا الجنوبية", + name="كولومبيا", + capital="بوغوتا", + ), + Country( + timezones=["أمريكا/كوستاريكا"], + alpha_2_code="CR", + alpha_3_code="CRI", + continent="أمريكا الشمالية", + name="كوستاريكا", + capital="سان خوسيه", + ), + Country( + timezones=["أمريكا/هافانا"], + alpha_2_code="CU", + alpha_3_code="CUB", + continent="أمريكا الشمالية", + name="كوبا", + capital="هافانا", + ), + Country( + timezones=["الأطلنطي/الرأس_الأخضر"], + alpha_2_code="CV", + alpha_3_code="CPV", + continent="إفريقيا", + name="جمهورية الرأس الأخضر", + capital="برايا", + ), + Country( + timezones=["آسيا/نيقوسيا"], + alpha_2_code="CY", + alpha_3_code="CYP", + continent="آسيا", + name="قبرص", + capital="نيقوسيا", + ), + Country( + timezones=["أوروبا/براغ"], + alpha_2_code="CZ", + alpha_3_code="CZE", + continent="أوروبا", + name="جمهورية التشيك", + capital="براغ", + ), + Country( + timezones=["أوروبا/برلين"], + alpha_2_code="DE", + alpha_3_code="DEU", + continent="أوروبا", + name="ألمانيا", + capital="برلين", + ), + Country( + timezones=["إفريقيا/جيبوتي"], + alpha_2_code="DJ", + alpha_3_code="DJI", + continent="إفريقيا", + name="جيبوتي", + capital="جيبوتي", + ), + Country( + timezones=["أوروبا/كوبنهاغن"], + alpha_2_code="DK", + alpha_3_code="DNK", + continent="أوروبا", + name="الدنمارك", + capital="كوبنهاغن", + ), + Country( + timezones=["أمريكا/دومينيكا"], + alpha_2_code="DM", + alpha_3_code="DMA", + continent="أمريكا الشمالية", + name="دومينيكا", + capital="روسياو", + ), + Country( + timezones=["أمريكا/سانتو_دومينغو"], + alpha_2_code="DO", + alpha_3_code="DOM", + continent="أمريكا الشمالية", + name="جمهورية الدومينيكان", + capital="سانتو دومينغو", + ), + Country( + timezones=["أمريكا/غواياكيل", "المحيط_الهاديء/أرخبيل_غالاباغوس"], + alpha_2_code="EC", + alpha_3_code="ECU", + continent="أمريكا الجنوبية", + name="الإكوادور", + capital="كيتو", + ), + Country( + timezones=["أوروبا/تالين"], + alpha_2_code="EE", + alpha_3_code="EST", + continent="أوروبا", + name="إستونيا", + capital="تالين", + ), + Country( + timezones=["إفريقيا/القاهرة"], + alpha_2_code="EG", + alpha_3_code="EGY", + continent="إفريقيا", + name="مصر", + capital="القاهرة", + ), + Country( + timezones=["إفريقيا/أسمرة"], + alpha_2_code="ER", + alpha_3_code="ERI", + continent="إفريقيا", + name="إرتيريا", + capital="أسمرة", + ), + Country( + timezones=["إفريقيا/أديس أبابا"], + alpha_2_code="ET", + alpha_3_code="ETH", + continent="إفريقيا", + name="إثيوبيا", + capital="أديس أبابا", + ), + Country( + timezones=["أوروبا/هلسنكي"], + alpha_2_code="FI", + alpha_3_code="FIN", + continent="أوروبا", + name="فنلندا", + capital="هلسنكي", + ), + Country( + timezones=["المحيط_الهاديء/فيجي"], + alpha_2_code="FJ", + alpha_3_code="FJI", + continent="أوقيانوسيا", + name="فيجي", + capital="سوفا", + ), + Country( + timezones=["أوروبا/باريس"], + alpha_2_code="FR", + alpha_3_code="FRA", + continent="أوروبا", + name="فرنسا", + capital="باريس", + ), + Country( + timezones=["إفريقيا/ليبرفيل"], + alpha_2_code="GA", + alpha_3_code="GAB", + continent="إفريقيا", + name="الغابون", + capital="ليبرفيل", + ), + Country( + timezones=["آسيا/تبليسي"], + alpha_2_code="GE", + alpha_3_code="GEO", + continent="آسيا", + name="جورجيا", + capital="تبليسي", + ), + Country( + timezones=["إفريقيا/أكرا"], + alpha_2_code="GH", + alpha_3_code="GHA", + continent="إفريقيا", + name="غانا", + capital="أكرا", + ), + Country( + timezones=["إفريقيا/بانجول"], + alpha_2_code="GM", + alpha_3_code="GMB", + continent="إفريقيا", + name="غامبيا", + capital="بانجول", + ), + Country( + timezones=["إفريقيا/كوناكري"], + alpha_2_code="GN", + alpha_3_code="GIN", + continent="إفريقيا", + name="غينيا", + capital="كوناكري", + ), + Country( + timezones=["أوروبا/أثينا"], + alpha_2_code="GR", + alpha_3_code="GRC", + continent="أوروبا", + name="اليونان", + capital="أثينا", + ), + Country( + timezones=["أمريكا/غواتيمالا"], + alpha_2_code="GT", + alpha_3_code="GTM", + continent="أمريكا الشمالية", + name="غواتيمالا", + capital="غواتيمالا سيتي", + ), + Country( + timezones=["أمريكا/غواتيمالا"], + alpha_2_code="HT", + alpha_3_code="HTI", + continent="أمريكا الشمالية", + name="هايتي", + capital="بورت أو برانس", + ), + Country( + timezones=["إفريقيا/بيساو"], + alpha_2_code="GW", + alpha_3_code="GNB", + continent="إفريقيا", + name="غينيا بيساو", + capital="بيساو", + ), + Country( + timezones=["أمريكا/غيانا"], + alpha_2_code="GY", + alpha_3_code="GUY", + continent="أمريكا الجنوبية", + name="غيانا", + capital="جورج تاون", + ), + Country( + timezones=["أمريكا/تيجوسيجالبا"], + alpha_2_code="HN", + alpha_3_code="HND", + continent="أمريكا الشمالية", + name="هندوراس", + capital="تيجوسيجالبا", + ), + Country( + timezones=["أوروبا/بودابست"], + alpha_2_code="HU", + alpha_3_code="HUN", + continent="أوروبا", + name="هنغاريا", + capital="بودابست", + ), + Country( + timezones=[ + "آسيا/جاكرتا", + "آسيا/بونتياناك", + "آسيا/ماكاسار", + "آسيا/جايابورا", + ], + alpha_2_code="ID", + alpha_3_code="IDN", + continent="آسيا", + name="إندونسيا", + capital="جاكرتا", + ), + Country( + timezones=["أوروبا/دبلن"], + alpha_2_code="IE", + alpha_3_code="IRL", + continent="أوروبا", + name="إيرلندا", + capital="دبلن", + ), + Country( + timezones=["آسيا/القدس"], + alpha_2_code="IL", + alpha_3_code="ISR", + continent="آسيا", + name="فلسطين", + capital="القدس", + ), + Country( + timezones=["آسيا/كالكتا"], + alpha_2_code="IN", + alpha_3_code="IND", + continent="آسيا", + name="الهند", + capital="نيو دلهي", + ), + Country( + timezones=["آسيا/بغداد"], + alpha_2_code="IQ", + alpha_3_code="IRQ", + continent="آسيا", + name="العراق", + capital="بغداد", + ), + Country( + timezones=["آسيا/طهران"], + alpha_2_code="IR", + alpha_3_code="IRN", + continent="آسيا", + name="إيران", + capital="طهران", + ), + Country( + timezones=["الأطلنطي/ريكيافيك"], + alpha_2_code="IS", + alpha_3_code="ISL", + continent="أوروبا", + name="آيسلندا", + capital="ريكيافيك", + ), + Country( + timezones=["أوروبا/روما"], + alpha_2_code="IT", + alpha_3_code="ITA", + continent="أوروبا", + name="إيطاليا", + capital="روما", + ), + Country( + timezones=["أمريكا/جامايكا"], + alpha_2_code="JM", + alpha_3_code="JAM", + continent="أمريكا الشمالية", + name="جامايكا", + capital="كينغستون", + ), + Country( + timezones=["آسيا/عمّان"], + alpha_2_code="JO", + alpha_3_code="JOR", + continent="آسيا", + name="الأردن", + capital="عمّان", + ), + Country( + timezones=["آسيا/طوكيو"], + alpha_2_code="JP", + alpha_3_code="JPN", + continent="آسيا", + name="اليابان", + capital="طوكيو", + ), + Country( + timezones=["إفريقيا/نيروبي"], + alpha_2_code="KE", + alpha_3_code="KEN", + continent="إفريقيا", + name="كينيا", + capital="نيروبي", + ), + Country( + timezones=["آسيا/بشكيك"], + alpha_2_code="KG", + alpha_3_code="KGZ", + continent="آسيا", + name="قيرغيزستان", + capital="بشكيك", + ), + Country( + timezones=[ + "المحيط_الهاديء/تاراوا", + "المحيط_الهاديء/إيديربيري", + "المحيط_الهاديء/كريتيماتي", + ], + alpha_2_code="KI", + alpha_3_code="KIR", + continent="أوقيانوسيا", + name="كيريباتي", + capital="جنوب تاراوا", + ), + Country( + timezones=["آسيا/بيونغ_يانغ"], + alpha_2_code="KP", + alpha_3_code="PRK", + continent="آسيا", + name="كوريا الشمالية", + capital="بيونغ يانغ", + ), + Country( + timezones=["آسيا/سيؤول"], + alpha_2_code="KR", + alpha_3_code="KOR", + continent="آسيا", + name="؛كوريا الجنوبية", + capital="سيؤول", + ), + Country( + timezones=["آسيا/الكويت"], + alpha_2_code="KW", + alpha_3_code="KWT", + continent="آسيا", + name="الكويت", + capital="الكويت", + ), + Country( + timezones=["آسيا/بيروت"], + alpha_2_code="LB", + alpha_3_code="LBN", + continent="آسيا", + name="لبنان", + capital="بيروت", + ), + Country( + timezones=["أوروبا/فادوز"], + alpha_2_code="LI", + alpha_3_code="LIE", + continent="أوروبا", + name="ليختنشتاين", + capital="فادوز", + ), + Country( + timezones=["إفريقيا/مونروفيا"], + alpha_2_code="LR", + alpha_3_code="LBR", + continent="إفريقيا", + name="ليبيريا", + capital="مونروفيا", + ), + Country( + timezones=["إفريقيا/ماسيرو"], + alpha_2_code="LS", + alpha_3_code="LSO", + continent="إفريقيا", + name="ليسوتو", + capital="ماسيرو", + ), + Country( + timezones=["أوروبا/فيلنيوس"], + alpha_2_code="LT", + alpha_3_code="LTU", + continent="أوروبا", + name="ليتوانيا", + capital="فيلنيوس", + ), + Country( + timezones=["أوروبا/لوكسمبرغ"], + alpha_2_code="LU", + alpha_3_code="LUX", + continent="أوروبا", + name="لوكسمبرغ", + capital="لوكسمبرغ سيتي", + ), + Country( + timezones=["أوروبا/ربيغ"], + alpha_2_code="LV", + alpha_3_code="LVA", + continent="أوروبا", + name="لاتفيا", + capital="ربيغ", + ), + Country( + timezones=["إفريقيا/طرابلس"], + alpha_2_code="LY", + alpha_3_code="LBY", + continent="إفريقيا", + name="ليبيا", + capital="طرابلس", + ), + Country( + timezones=["الهندي/أنتاناناريفو"], + alpha_2_code="MG", + alpha_3_code="MDG", + continent="إفريقيا", + name="مدغشقر", + capital="أنتاناناريفو", + ), + Country( + timezones=["المحيط_الهاديء/ماجورو", "المحيط_الهاديء/كواجلين_أتول"], + alpha_2_code="MH", + alpha_3_code="MHL", + continent="أوقيانوسيا", + name="جزر مارشال", + capital="ماجورو", + ), + Country( + timezones=["أوروبا/سكوبيه"], + alpha_2_code="MK", + alpha_3_code="MKD", + continent="أوروبا", + name="جمهورية مقدونيا", + capital="سكوبيه", + ), + Country( + timezones=["إفريقيا/باماكو"], + alpha_2_code="ML", + alpha_3_code="MLI", + continent="إفريقيا", + name="مالي", + capital="باماكو", + ), + Country( + timezones=["آسيا/رانغون"], + alpha_2_code="MM", + alpha_3_code="MMR", + continent="آسيا", + name="ميانمار", + capital="نايبيداو", + ), + Country( + timezones=["آسيا/أولان_باتور", "آسيا/Hovd", "آسيا/تشويبالسان"], + alpha_2_code="MN", + alpha_3_code="MNG", + continent="آسيا", + name="مانغوليا", + capital="أولان باتور", + ), + Country( + timezones=["إفريقيا/نواكشط"], + alpha_2_code="MR", + alpha_3_code="MRT", + continent="إفريقيا", + name="موريتانيا", + capital="نواكشط", + ), + Country( + timezones=["أوروبا/مالطا"], + alpha_2_code="MT", + alpha_3_code="MLT", + continent="أوروبا", + name="مالطا", + capital="فاليتا", + ), + Country( + timezones=["الهندي/موريشيوس"], + alpha_2_code="MU", + alpha_3_code="MUS", + continent="إفريقيا", + name="موريشيوس", + capital="بور لويس", + ), + Country( + timezones=["الهندي/جزر_المالديف"], + alpha_2_code="MV", + alpha_3_code="MDV", + continent="آسيا", + name="جمهورية المالديف", + capital="ماليه", + ), + Country( + timezones=["إفريقيا/بلانتاير"], + alpha_2_code="MW", + alpha_3_code="MWI", + continent="إفريقيا", + name="ملاوي", + capital="ليلونغوي", + ), + Country( + timezones=[ + "أمريكا/ميكسيكو_سيتي", + "أمريكا/كانكون", + "أمريكا/ميرديا", + "أمريكا/مونتيري", + "أمريكا/مازاتلان", + "أمريكا/شيواوا", + "أمريكا/ارموسييو_سونورا", + "أمريكا/تيخوانا", + ], + alpha_2_code="MX", + alpha_3_code="MEX", + continent="أمريكا الشمالية", + name="المكسيك", + capital="ميكسيكو سيتي§", + ), + Country( + timezones=["آسيا/كوالا_لامبور", "آسيا/Kuching"], + alpha_2_code="MY", + alpha_3_code="MYS", + continent="آسيا", + name="ماليزيا", + capital="كوالا لامبور", + ), + Country( + timezones=["إفريقيا/مابوتو"], + alpha_2_code="MZ", + alpha_3_code="MOZ", + continent="إفريقيا", + name="موزمبيق", + capital="مابوتو", + ), + Country( + timezones=["إفريقيا/ويندهوك"], + alpha_2_code="NA", + alpha_3_code="NAM", + continent="إفريقيا", + name="ناميبيا", + capital="ويندهوك", + ), + Country( + timezones=["إفريقيا/نيامي"], + alpha_2_code="NE", + alpha_3_code="NER", + continent="إفريقيا", + name="النيجر", + capital="نيامي", + ), + Country( + timezones=["إفريقيا/لاغوس"], + alpha_2_code="NG", + alpha_3_code="NGA", + continent="إفريقيا", + name="نيجيريا", + capital="أبوجا", + ), + Country( + timezones=["أمريكا/ماناغوا"], + alpha_2_code="NI", + alpha_3_code="NIC", + continent="أمريكا الشمالية", + name="نيكاراغوا", + capital="ماناغوا", + ), + Country( + timezones=["أوروبا/أمستردام"], + alpha_2_code="NL", + alpha_3_code="NLD", + continent="أوروبا", + name="هولندا", + capital="أمستردام", + ), + Country( + timezones=["أوروبا/أوسلو"], + alpha_2_code="NO", + alpha_3_code="NOR", + continent="أوروبا", + name="النرويج", + capital="أوسلو", + ), + Country( + timezones=["آسيا/كاتماندو"], + alpha_2_code="NP", + alpha_3_code="NPL", + continent="آسيا", + name="النيبال", + capital="كاتماندو", + ), + Country( + timezones=["المحيط_الهاديء/ناورو"], + alpha_2_code="NR", + alpha_3_code="NRU", + continent="أوقيانوسيا", + name="ناورو", + capital="يارين", + ), + Country( + timezones=["المحيط_الهاديء/أوكلاند", "المحيط_الهاديء/تشاتهام"], + alpha_2_code="NZ", + alpha_3_code="NZL", + continent="أوقيانوسيا", + name="نيوزيلاندا", + capital="ويلينغتون", + ), + Country( + timezones=["آسيا/مسقط"], + alpha_2_code="OM", + alpha_3_code="OMN", + continent="آسيا", + name="عمان", + capital="مسقط", + ), + Country( + timezones=["أمريكا/بنما"], + alpha_2_code="PA", + alpha_3_code="PAN", + continent="أمريكا الشمالية", + name="بنما", + capital="بنما", + ), + Country( + timezones=["أمريكا/ليما"], + alpha_2_code="PE", + alpha_3_code="PER", + continent="أمريكا الجنوبية", + name="البيرو", + capital="ليما", + ), + Country( + timezones=["المحيط_الهاديء/بورت_مورسبي"], + alpha_2_code="PG", + alpha_3_code="PNG", + continent="أوقيانوسيا", + name="بابوا غينيا الجديدة", + capital="بورت مورسبي", + ), + Country( + timezones=["آسيا/مانيلا"], + alpha_2_code="PH", + alpha_3_code="PHL", + continent="آسيا", + name="الفيليبين", + capital="مانيلا", + ), + Country( + timezones=["آسيا/كاراتشي"], + alpha_2_code="PK", + alpha_3_code="PAK", + continent="آسيا", + name="باكستان", + capital="إسلام أباد", + ), + Country( + timezones=["أوروبا/وارسو"], + alpha_2_code="PL", + alpha_3_code="POL", + continent="أوروبا", + name="بولندا", + capital="وارسو", + ), + Country( + timezones=["أوروبا/لشبونة", "الأطلنطي/ماديرا", "الأطلنطي/الأزور"], + alpha_2_code="PT", + alpha_3_code="PRT", + continent="أوروبا", + name="البرتغال", + capital="لشبونة", + ), + Country( + timezones=["المحيط_الهاديء/بالاو"], + alpha_2_code="PW", + alpha_3_code="PLW", + continent="أوقيانوسيا", + name="بالاو", + capital="نجيرولمد", + ), + Country( + timezones=["أمريكا/أسونسيون"], + alpha_2_code="PY", + alpha_3_code="PRY", + continent="أمريكا الجنوبية", + name="بابرغوي", + capital="أسونسيون", + ), + Country( + timezones=["آسيا/قطر"], + alpha_2_code="QA", + alpha_3_code="QAT", + continent="آسيا", + name="قطر", + capital="الدوحة", + ), + Country( + timezones=["أوروبا/بوخارست"], + alpha_2_code="RO", + alpha_3_code="ROU", + continent="أوروبا", + name="رومانيا", + capital="بوخارست", + ), + Country( + timezones=[ + "أوروبا/كالينينغراد", + "أوروبا/موسكو", + "أوروبا/Volgograd", + "أوروبا/سمارة", + "آسيا/يكاترينبورغ", + "آسيا/أومسك", + "آسيا/نوفوسيبيرسك", + "آسيا/كراسنوياسك", + "آسيا/إروتسك", + "آسيا/ياكوتسك", + "آسيا/فالديفوستوك", + "آسيا/ساخالن", + "آسيا/ماغادان", + "آسيا/كامشتكا", + "آسيا/أنادير", + ], + alpha_2_code="RU", + alpha_3_code="RUS", + continent="أوروبا", + name="روسيا", + capital="موسكو", + ), + Country( + timezones=["إفريقيا/كيغالي"], + alpha_2_code="RW", + alpha_3_code="RWA", + continent="إفريقيا", + name="رواندا", + capital="كيغالي", + ), + Country( + timezones=["آسيا/الرياض"], + alpha_2_code="SA", + alpha_3_code="SAU", + continent="آسيا", + name="المملكة العربية السعودية", + capital="الرياض", + ), + Country( + timezones=["المحيط_الهاديء/غوادالكانال"], + alpha_2_code="SB", + alpha_3_code="SLB", + continent="أوقيانوسيا", + name="جزر سولمون", + capital="هونيارا", + ), + Country( + timezones=["الهندي/ماهي"], + alpha_2_code="SC", + alpha_3_code="SYC", + continent="إفريقيا", + name="سيشل", + capital="فيكتوريا", + ), + Country( + timezones=["إفريقيا/الخرطوم"], + alpha_2_code="SD", + alpha_3_code="SDN", + continent="إفريقيا", + name="السودان", + capital="الخرطوم", + ), + Country( + timezones=["أوروبا/ستوكهولم"], + alpha_2_code="SE", + alpha_3_code="SWE", + continent="أوروبا", + name="السويد", + capital="ستوكهولم", + ), + Country( + timezones=["آسيا/سنغافورة"], + alpha_2_code="SG", + alpha_3_code="SGP", + continent="آسيا", + name="سنغافورة", + capital="سنغافورة", + ), + Country( + timezones=["أوروبا/ليوبليانا"], + alpha_2_code="SI", + alpha_3_code="SVN", + continent="أوروبا", + name="سلوفانيا", + capital="ليوبليانا", + ), + Country( + timezones=["أوروبا/براتيسلافا"], + alpha_2_code="SK", + alpha_3_code="SVK", + continent="أوروبا", + name="سلوفاكيا", + capital="براتيسلافا", + ), + Country( + timezones=["إفريقيا/فريتاون"], + alpha_2_code="SL", + alpha_3_code="SLE", + continent="إفريقيا", + name="سيراليون", + capital="فريتاون", + ), + Country( + timezones=["أوروبا/سان_مارينو"], + alpha_2_code="SM", + alpha_3_code="SMR", + continent="أوروبا", + name="جمهورية سان مارينو", + capital="سان مارينو", + ), + Country( + timezones=["إفريقيا/داكار"], + alpha_2_code="SN", + alpha_3_code="SEN", + continent="إفريقيا", + name="السنغال", + capital="داكار", + ), + Country( + timezones=["إفريقيا/مقديشو"], + alpha_2_code="SO", + alpha_3_code="SOM", + continent="إفريقيا", + name="الصومال", + capital="مقديشو", + ), + Country( + timezones=["أمريكا/باراماريبو"], + alpha_2_code="SR", + alpha_3_code="SUR", + continent="أمريكا الجنوبية", + name="Suriname", + capital="باراماريبو", + ), + Country( + timezones=["إفريقيا/ساو_تومي"], + alpha_2_code="ST", + alpha_3_code="STP", + continent="إفريقيا", + name=" ساو تومي وبرينسيب", + capital="ساو تومي", + ), + Country( + timezones=["آسيا/دممشق"], + alpha_2_code="SY", + alpha_3_code="SYR", + continent="آسيا", + name="سوريا", + capital="دمشق", + ), + Country( + timezones=["إفريقيا/لومي"], + alpha_2_code="TG", + alpha_3_code="TGO", + continent="إفريقيا", + name="توغو", + capital="لومي", + ), + Country( + timezones=["آسيا/بانغوك"], + alpha_2_code="TH", + alpha_3_code="THA", + continent="آسيا", + name="تايلند", + capital="بناغوك", + ), + Country( + timezones=["آسيا/دوشنبه"], + alpha_2_code="TJ", + alpha_3_code="TJK", + continent="آسيا", + name="طاجكيستان", + capital="دوشنبه", + ), + Country( + timezones=["آسيا/عشق_آباد"], + alpha_2_code="TM", + alpha_3_code="TKM", + continent="آسيا", + name="تركمانستان", + capital="عشق آباد", + ), + Country( + timezones=["إفريقيا/تونس"], + alpha_2_code="TN", + alpha_3_code="TUN", + continent="إفريقيا", + name="تونس", + capital="تونس", + ), + Country( + timezones=["المحيط_الهاديء/تونغاتابو"], + alpha_2_code="TO", + alpha_3_code="TON", + continent="أوقيانوسيا", + name="تونغا", + capital="نوكو ألوفا", + ), + Country( + timezones=["أوروبا/إسطنبول"], + alpha_2_code="TR", + alpha_3_code="TUR", + continent="آسيا", + name="تركيا", + capital="أنقرة", + ), + Country( + timezones=["أمريكا/بورت_أوف_سبين"], + alpha_2_code="TT", + alpha_3_code="TTO", + continent="أمريكا الشمالية", + name="ترينيداد وتوباغو", + capital="بورت أوف سبين", + ), + Country( + timezones=["المحيط_الهاديء/فونافوتي"], + alpha_2_code="TV", + alpha_3_code="TUV", + continent="أوقيانوسيا", + name="توفالو", + capital="فونافوتي", + ), + Country( + timezones=["إفريقيا/دار_السلام"], + alpha_2_code="TZ", + alpha_3_code="TZA", + continent="إفريقيا", + name="تانزانيا", + capital="دودوما", + ), + Country( + timezones=[ + "أوروبا/كييف", + "أوروبا/أوجهورود", + "أوروبا/زاباروجيا", + "أوروبا/سيمفروبول", + ], + alpha_2_code="UA", + alpha_3_code="UKR", + continent="أوروبا", + name="أوكرانيا", + capital="كييف", + ), + Country( + timezones=["إفريقيا/كامبالا"], + alpha_2_code="UG", + alpha_3_code="UGA", + continent="إفريقيا", + name="أوغندا", + capital="كامبالا", + ), + Country( + timezones=[ + "أمريكا/نيويورك", + "أمريكا/ديترويت", + "أمريكا/كنتاكي/لويسفيل", + "أمريكا/كنتاكي/مونتيسللو", + "أمريكا/إنديانا/إنديانابولس", + "أمريكا/إنديانا/مارنغو", + "أمريكا/إنديانا/نوكس", + "أمريكا/إنديانا/فيفاي", + "أمريكا/شيكاغو", + "أمريكا/إنديانا/فانسان", + "أمريكا/إنديانا/بيترزبيرغ", + "أمريكا/مينومني", + "أمريكا/نورث_داكوتا/سينتر", + "أمريكا/نورث_داكوتا/نيو_سالم", + "أمريكا/دنفر", + "أمريكا/بويسي", + "أمريكا/شيبروك", + "أمريكا/فينيكس", + "أمريكا/لوس_أنجيلوس", + "أمريكا/أنكوريج", + "أمريكا/جونو", + "أمريكا/ياكوتات", + "أمريكا/نوم", + "أمريكا/أداك", + "المحيط_الهاديء/هونولولو", + ], + alpha_2_code="US", + alpha_3_code="USA", + continent="أمريكا الشمالية", + name="الولايات المتحدة الأمريكية", + capital="واشنطن", + ), + Country( + timezones=["أمريكا/مونتفيدو"], + alpha_2_code="UY", + alpha_3_code="URY", + continent="أمريكا الجنوبية", + name="أوروغواي", + capital="مونتفيدو", + ), + Country( + timezones=["آسيا/سمرقند", "آسيا/طشقند"], + alpha_2_code="UZ", + alpha_3_code="UZB", + continent="آسيا", + name="أوزبكستان", + capital="طشقند", + ), + Country( + timezones=["أوروبا/الفاتيكان"], + alpha_2_code="VA", + alpha_3_code="VAT", + continent="أوروبا", + name="الفاتيكان", + capital="الفاتيكان", + ), + Country( + timezones=["أمريكا/كاركاس"], + alpha_2_code="VE", + alpha_3_code="VEN", + continent="أمريكا الجنوبية", + name="فنزويلا", + capital="كاركاس", + ), + Country( + timezones=["آسيا/سايغون"], + alpha_2_code="VN", + alpha_3_code="VNM", + continent="آسيا", + name="فيتنام", + capital="هانوي", + ), + Country( + timezones=["المحيط_الهاديء/أيفاتي"], + alpha_2_code="VU", + alpha_3_code="VUT", + continent="أوقيانوسيا", + name="فانواتو", + capital="بورت فيلا", + ), + Country( + timezones=["آسيا/عدن"], + alpha_2_code="YE", + alpha_3_code="YEM", + continent="آسيا", + name="اليمن", + capital="صنعاء", + ), + Country( + timezones=["إفريقيا/لوساكا"], + alpha_2_code="ZM", + alpha_3_code="ZMB", + continent="إفريقيا", + name="زامبيا", + capital="لوساكا", + ), + Country( + timezones=["إفريقيا/هراري"], + alpha_2_code="ZW", + alpha_3_code="ZWE", + continent="إفريقيا", + name="زيمبابوي", + capital="هراري", + ), + Country( + timezones=["إفريقيا/الجزائر"], + alpha_2_code="DZ", + alpha_3_code="DZA", + continent="إفريقيا", + name="الجزائر", + capital="الجزائر", + ), + Country( + timezones=["أوروبا/سراييفو"], + alpha_2_code="BA", + alpha_3_code="BIH", + continent="أوروبا", + name="البوسنة والهرسك", + capital="سراييفو", + ), + Country( + timezones=["آسيا/بنوم_بنه"], + alpha_2_code="KH", + alpha_3_code="KHM", + continent="آسيا", + name="كمبوديا", + capital="بنوم بنه", + ), + Country( + timezones=["إفريقيا/بانغي"], + alpha_2_code="CF", + alpha_3_code="CAF", + continent="إفريقيا", + name="جمهورية أفريقيا الوسطى", + capital="بانغي", + ), + Country( + timezones=["إفريقيا/نجامينا"], + alpha_2_code="TD", + alpha_3_code="TCD", + continent="إفريقيا", + name="تشاد", + capital="نجامينا", + ), + Country( + timezones=["الهندي/كومورو"], + alpha_2_code="KM", + alpha_3_code="COM", + continent="إفريقيا", + name="جزر القمر", + capital="موروني", + ), + Country( + timezones=["أوروبا/زغرب"], + alpha_2_code="HR", + alpha_3_code="HRV", + continent="أوروبا", + name="كرواتيا", + capital="زغرب", + ), + Country( + timezones=["آسيا/ديلي"], + alpha_2_code="TL", + alpha_3_code="TLS", + continent="آسيا", + name="تيمور الشرقية", + capital="ديلي", + ), + Country( + timezones=["أمريكا/السلفادور"], + alpha_2_code="SV", + alpha_3_code="SLV", + continent="أمريكا الشمالية", + name="السلفادور", + capital="سان سلفادور", + ), + Country( + timezones=["إفريقيا/مالابو"], + alpha_2_code="GQ", + alpha_3_code="GNQ", + continent="إفريقيا", + name="غينيا الاستوائية", + capital="مالابو", + ), + Country( + timezones=["أمريكا/غرينادا"], + alpha_2_code="GD", + alpha_3_code="GRD", + continent="أمريكا الشمالية", + name="غرينادا", + capital="سانت جورجز", + ), + Country( + timezones=[ + "آسيا/ألماتي", + "آسيا/كيزيلوردا", + "آسيا/أقتوبي", + "آسيا/أقتاو", + "آسيا/أورال", + ], + alpha_2_code="KZ", + alpha_3_code="KAZ", + continent="آسيا", + name="كازاخستان", + capital="أستانة", + ), + Country( + timezones=["آسيا/فيينتيان"], + alpha_2_code="LA", + alpha_3_code="LAO", + continent="آسيا", + name="لاوس", + capital="فيينتيان", + ), + Country( + timezones=[ + "المحيط_الهاديء/تشوك", + "المحيط_الهاديء/بونابي", + "المحيط_الهاديء/كورساي", + ], + alpha_2_code="FM", + alpha_3_code="FSM", + continent="أوقيانوسيا", + name="ولايات ميكرونيسيا المتحدة", + capital="باليكير", + ), + Country( + timezones=["أوروبا/كيشيناو"], + alpha_2_code="MD", + alpha_3_code="MDA", + continent="أوروبا", + name="مولدافيا", + capital="كيشيناو", + ), + Country( + timezones=["أوروبا/موناكو"], + alpha_2_code="MC", + alpha_3_code="MCO", + continent="أوروبا", + name="موناكو", + capital="موناكو", + ), + Country( + timezones=["أوروبا/بودغوريتسا"], + alpha_2_code="ME", + alpha_3_code="MNE", + continent="أوروبا", + name="الجبل الأسود", + capital="بودغوريتسا", + ), + Country( + timezones=["إفريقيا/الدار_البيضاء"], + alpha_2_code="MA", + alpha_3_code="MAR", + continent="إفريقيا", + name="المغرب", + capital="الرباط", + ), + Country( + timezones=["أمريكا/سانت_كيتس"], + alpha_2_code="KN", + alpha_3_code="KNA", + continent="أمريكا الشمالية", + name="سانت كيتس ونيفيس", + capital="باستير", + ), + Country( + timezones=["أمريكا/سانت_لوسيا"], + alpha_2_code="LC", + alpha_3_code="LCA", + continent="أمريكا الشمالية", + name="سانت لوسيا", + capital="كاستريس", + ), + Country( + timezones=["أمريكا/سينت_فينسينت"], + alpha_2_code="VC", + alpha_3_code="VCT", + continent="أمريكا الشمالية", + name="سانت فينسنت والغرينادين", + capital="كينغستاون", + ), + Country( + timezones=["المحيط_الهاديء/أبيا"], + alpha_2_code="WS", + alpha_3_code="WSM", + continent="أوقيانوسيا", + name="ساموا", + capital="أبيا", + ), + Country( + timezones=["أوروبا/بلغراد"], + alpha_2_code="RS", + alpha_3_code="SRB", + continent="أوروبا", + name="صربيا", + capital="بلغراد", + ), + Country( + timezones=["إفريقيا/جوهانسبرغ"], + alpha_2_code="ZA", + alpha_3_code="ZAF", + continent="إفريقيا", + name="جنوب إفريقيا", + capital="بريتوريا", + ), + Country( + timezones=["أوروبا/مدريد", "إفريقيا/سبتة", "الأطلنطي/الكناري"], + alpha_2_code="ES", + alpha_3_code="ESP", + continent="أوروبا", + name="إسبانيا", + capital="مدريد", + ), + Country( + timezones=["آسيا/كولمبو"], + alpha_2_code="LK", + alpha_3_code="LKA", + continent="آسيا", + name="سريلانكا", + capital="سري جاياواردنابورا كوتي", + ), + Country( + timezones=["إفريقيا/مبابان"], + alpha_2_code="SZ", + alpha_3_code="SWZ", + continent="إفريقيا", + name="سوازيلاند", + capital="مبابان", + ), + Country( + timezones=["أوروبا/زيورخ"], + alpha_2_code="CH", + alpha_3_code="CHE", + continent="أوروبا", + name="سويسرا", + capital="برن", + ), + Country( + timezones=["آسيا/دبي"], + alpha_2_code="AE", + alpha_3_code="ARE", + continent="آسيا", + name="الإمارات العربية المتحدة", + capital="أبو ظبي", + ), + Country( + timezones=["أوروبا/لندن"], + alpha_2_code="GB", + alpha_3_code="GBR", + continent="أوروبا", + name="المملكة المتحدة", + capital="لندن", + ), + ] + + AM_PM = { + "AM": "ص", + "PM": "م", + } + + def month_name(self) -> str: + month = self.date("%m") + return self.MONTH_NAMES[month] + + def am_pm(self) -> str: + date = self.date("%p") + return self.AM_PM[date] + + def day_of_week(self) -> str: + day = self.date("%w") + return self.DAY_NAMES[day] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/ar_AA/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/ar_AA/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..6d0cd74 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/ar_AA/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/ar_EG/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/ar_EG/__init__.py new file mode 100644 index 0000000..1a05cd6 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/ar_EG/__init__.py @@ -0,0 +1,18 @@ +from ..ar_AA import Provider as ArabicDateTimeProvider + + +class Provider(ArabicDateTimeProvider): + MONTH_NAMES = { + "01": "يناير", + "02": "فبراير", + "03": "مارس", + "04": "أبريل", + "05": "مايو", + "06": "يونيو", + "07": "يوليو", + "08": "أغسطس", + "09": "سبتمبر", + "10": "أكتوبر", + "11": "نوفمبر", + "12": "ديسمبر", + } diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/ar_EG/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/ar_EG/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..771e12d --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/ar_EG/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/az_AZ/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/az_AZ/__init__.py new file mode 100644 index 0000000..cb2ccc5 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/az_AZ/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "Bazar", + "1": "Bazar ertəsi", + "2": "Çərşənbə axşamı", + "3": "Çərşənbə", + "4": "Cümə axşamı", + "5": "Cümə", + "6": "Şənbə", + } + + MONTH_NAMES = { + "01": "Yanvar", + "02": "Fevral", + "03": "Mart", + "04": "Aprel", + "05": "May", + "06": "İyun", + "07": "İyul", + "08": "Avqust", + "09": "Sentyabr", + "10": "Oktyabr", + "11": "Noyabr", + "12": "Dekabr", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/az_AZ/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/az_AZ/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..e6bd599 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/az_AZ/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/bn_BD/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/bn_BD/__init__.py new file mode 100644 index 0000000..87f7dc1 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/bn_BD/__init__.py @@ -0,0 +1,1740 @@ +from faker.typing import Country + +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "রবিবার", + "1": "সোমবার", + "2": "মঙ্গলবার", + "3": "বুধবার", + "4": "বৃহস্পতিবার", + "5": "শুক্রবার", + "6": "শনিবার", + } + + MONTH_NAMES = { + "01": "জানুয়ারি", + "02": "ফেব্রুয়ারি", + "03": "মার্চ", + "04": "এপ্রিল", + "05": "মে", + "06": "জুন", + "07": "জুলাই", + "08": "আগস্ট", + "09": "সেপ্টেম্বর", + "10": "অক্টোবর", + "11": "নভেম্বর", + "12": "ডিসেম্বর", + } + + countries = [ + Country( + timezones=["ইউরোপ/অ্যান্ডোরা"], + alpha_2_code="AD", + alpha_3_code="এবং", + continent="ইউরোপ", + name="অ্যান্ডোরা", + capital="অ্যান্ডোরা লা ভেলা", + ), + Country( + timezones=["এশিয়া/কাবুল"], + alpha_2_code="AF", + alpha_3_code="AFG", + continent="এশিয়া", + name="আফগানিস্তান", + capital="কাবুল", + ), + Country( + timezones=["আমেরিকা/অ্যান্টিগা"], + alpha_2_code="AG", + alpha_3_code="ATG", + continent="উত্তর আমেরিকা", + name="অ্যান্টিগা এবং বারবুডা", + capital="সেন্ট জনস", + ), + Country( + timezones=["ইউরোপ/তিরানে"], + alpha_2_code="AL", + alpha_3_code="ALB", + continent="ইউরোপ", + name="আলবেনিয়া", + capital="তিরানা", + ), + Country( + timezones=["এশিয়া/ইয়েরেভান"], + alpha_2_code="AM", + alpha_3_code="ARM", + continent="এশিয়া", + name="আর্মেনিয়া", + capital="ইয়েরেভান", + ), + Country( + timezones=["আফ্রিকা/লুয়ান্ডা"], + alpha_2_code="AO", + alpha_3_code="আগে", + continent="আফ্রিকা", + name="অ্যাঙ্গোলা", + capital="লুয়ান্ডা", + ), + Country( + timezones=[ + "আমেরিকা/আর্জেন্টিনা/বুয়েনস_আয়ার্স", + "আমেরিকা/আর্জেন্টিনা/কর্ডোবা", + "আমেরিকা/আর্জেন্টিনা/জুজুয়", + "আমেরিকা/আর্জেন্টিনা/টুকুমান", + "আমেরিকা/আর্জেন্টিনা/কাটামার্কা", + "আমেরিকা/আর্জেন্টিনা/লা_রিওজা", + "আমেরিকা/আর্জেন্টিনা/সান_জুয়ান", + "আমেরিকা/আর্জেন্টিনা/মেন্ডোজা", + "আমেরিকা/আর্জেন্টিনা/রিও_গ্যালেগোস", + "আমেরিকা/আর্জেন্টিনা/উশুইয়া", + ], + alpha_2_code="AR", + alpha_3_code="ARG", + continent="দক্ষিণ আমেরিকা", + name="আর্জেন্টিনা", + capital="বুয়েনস আইরেস", + ), + Country( + timezones=["ইউরোপ/ভিয়েনা"], + alpha_2_code="AT", + alpha_3_code="AUT", + continent="ইউরোপ", + name="অস্ট্রিয়া", + capital="ভিয়েনা", + ), + Country( + timezones=[ + "অস্ট্রেলিয়া/লর্ড_হাউ", + "অস্ট্রেলিয়া/হোবার্ট", + "অস্ট্রেলিয়া/কারি", + "অস্ট্রেলিয়া/মেলবোর্ন", + "অস্ট্রেলিয়া/সিডনি", + "অস্ট্রেলিয়া/ব্রোকেন_হিল", + "অস্ট্রেলিয়া/ব্রিসবেন", + "অস্ট্রেলিয়া/লিন্ডেম্যান", + "অস্ট্রেলিয়া/অ্যাডিলেড", + "অস্ট্রেলিয়া/ডারউইন", + "অস্ট্রেলিয়া/পার্থ", + ], + alpha_2_code="AU", + alpha_3_code="AUS", + continent="ওশেনিয়া", + name="অস্ট্রেলিয়া", + capital="ক্যানবেরা", + ), + Country( + timezones=["এশিয়া/বাকু"], + alpha_2_code="AZ", + alpha_3_code="AZE", + continent="এশিয়া", + name="আজারবাইজান", + capital="বাকু", + ), + Country( + timezones=["আমেরিকা/বার্বাডোস"], + alpha_2_code="BB", + alpha_3_code="BRB", + continent="উত্তর আমেরিকা", + name="বার্বাডোস", + capital="ব্রিজটাউন", + ), + Country( + timezones=["এশিয়া/ঢাকা"], + alpha_2_code="বিডি", + alpha_3_code="BGD", + continent="এশিয়া", + name="বাংলাদেশ", + capital="ঢাকা", + ), + Country( + timezones=["ইউরোপ/ব্রাসেলস"], + alpha_2_code="BE", + alpha_3_code="BEL", + continent="ইউরোপ", + name="বেলজিয়াম", + capital="ব্রাসেলস", + ), + Country( + timezones=["আফ্রিকা/ওগাডুগু"], + alpha_2_code="BF", + alpha_3_code="BFA", + continent="আফ্রিকা", + name="বুর্কিনা ফাসো", + capital="ওগাডুগউ", + ), + Country( + timezones=["ইউরোপ/সোফিয়া"], + alpha_2_code="বিজি", + alpha_3_code="BGR", + continent="ইউরোপ", + name="বুলগেরিয়া", + capital="সোফিয়া", + ), + Country( + timezones=["এশিয়া/বাহরাইন"], + alpha_2_code="BH", + alpha_3_code="BHR", + continent="এশিয়া", + name="বাহরাইন", + capital="মাnameা", + ), + Country( + timezones=["আফ্রিকা/বুজুম্বুরা"], + alpha_2_code="BI", + alpha_3_code="BDI", + continent="আফ্রিকা", + name="বুরুন্ডি", + capital="বুজুম্বুরা", + ), + Country( + timezones=["আফ্রিকা/পোর্টো-নোভো"], + alpha_2_code="BJ", + alpha_3_code="BEN", + continent="আফ্রিকা", + name="বেনিন", + capital="পোর্টো-নভো", + ), + Country( + timezones=["এশিয়া/ব্রুনাই"], + alpha_2_code="BN", + alpha_3_code="BRN", + continent="এশিয়া", + name="ব্রুনাই দারুসসালাম", + capital="বন্দর সেরি বেগাওয়ান", + ), + Country( + timezones=["আমেরিকা/লা_পাজ"], + alpha_2_code="BO", + alpha_3_code="BOL", + continent="দক্ষিণ আমেরিকা", + name="বলিভিয়া", + capital="সুক্রে", + ), + Country( + timezones=[ + "আমেরিকা/নরোনহা", + "আমেরিকা/বেলেম", + "আমেরিকা/ফর্তালেজা", + "আমেরিকা/রেসিফ", + "আমেরিকা/আরাগুয়েনা", + "আমেরিকা/ম্যাসিও", + "আমেরিকা/বাহিয়া", + "আমেরিকা/সাও_পাওলো", + "আমেরিকা/ক্যাম্পো_গ্রান্ডে", + "আমেরিকা/কুয়াবা", + "আমেরিকা/পোর্টো_ভেলহো", + "আমেরিকা/বোয়া_ভিস্তা", + "আমেরিকা/মানাস", + "আমেরিকা/ইরুনেপে", + "আমেরিকা/রিও_ব্র্যাঙ্কো", + ], + alpha_2_code="BR", + alpha_3_code="BRA", + continent="দক্ষিণ আমেরিকা", + name="ব্রাজিল", + capital="ব্রাসেলস", + ), + Country( + timezones=["আমেরিকা/নাসাউ"], + alpha_2_code="BS", + alpha_3_code="BHS", + continent="উত্তর আমেরিকা", + name="বাহামাস", + capital="নাসাউ", + ), + Country( + timezones=["এশিয়া/থিম্পু"], + alpha_2_code="BT", + alpha_3_code="BTN", + continent="এশিয়া", + name="ভুটান", + capital="থিম্পু", + ), + Country( + timezones=["আফ্রিকা/গ্যাবোরোন"], + alpha_2_code="BW", + alpha_3_code="BWA", + continent="আফ্রিকা", + name="বতসোয়ানা", + capital="গ্যাবরোন", + ), + Country( + timezones=["ইউরোপ/মিনস্ক"], + alpha_2_code="দ্বারা", + alpha_3_code="BLR", + continent="ইউরোপ", + name="বেলারুশ", + capital="মিনস্ক", + ), + Country( + timezones=["আমেরিকা/বেলিজ"], + alpha_2_code="BZ", + alpha_3_code="BLZ", + continent="উত্তর আমেরিকা", + name="বেলিজ", + capital="বেলমোপান", + ), + Country( + timezones=[ + "আমেরিকা/সেন্ট জনস", + "আমেরিকা/হ্যালিফ্যাক্স", + "আমেরিকা/গ্লেস_বে", + "আমেরিকা/মঙ্কটন", + "আমেরিকা/গোজ_বে", + "আমেরিকা/ব্ল্যাঙ্ক-সাবলন", + "আমেরিকা/মন্ট্রিল", + "আমেরিকা/টরন্টো", + "আমেরিকা/নিপিগন", + "আমেরিকা/থান্ডার_বে", + "আমেরিকা/পাংনিরতুং", + "আমেরিকা/ইকালুইট", + "আমেরিকা/আতিকোকান", + "আমেরিকা/র্যাঙ্কিন_ইনলেট", + "আমেরিকা/উইনিপেগ", + "আমেরিকা/বৃষ্টি_নদী", + "আমেরিকা/কেমব্রিজ_বে", + "আমেরিকা/রেজিনা", + "আমেরিকা/সুইফট_কারেন্ট", + "আমেরিকা/এডমন্টন", + "আমেরিকা/ইয়েলোনাইফ", + "আমেরিকা/ইনুভিক", + "আমেরিকা/ডসন_ক্রিক", + "আমেরিকা/ভ্যাঙ্কুভার", + "আমেরিকা/হোয়াইটহরস", + "আমেরিকা/ডসন", + ], + alpha_2_code="CA", + alpha_3_code="CAN", + continent="উত্তর আমেরিকা", + name="কানাডা", + capital="অটোয়া", + ), + Country( + timezones=["আফ্রিকা/কিনশাসা", "আফ্রিকা/লুবুম্বাশি"], + alpha_2_code="CD", + alpha_3_code="COD", + continent="আফ্রিকা", + name="কঙ্গো গণতান্ত্রিক প্রজাতন্ত্র", + capital="কিনশাসা", + ), + Country( + timezones=["আফ্রিকা/ব্রাজাভিল"], + alpha_2_code="CG", + alpha_3_code="COG", + continent="আফ্রিকা", + name="কঙ্গো প্রজাতন্ত্র", + capital="ব্রাজাভিল", + ), + Country( + timezones=["আফ্রিকা/আবিজান"], + alpha_2_code="CI", + alpha_3_code="CIV", + continent="আফ্রিকা", + name="C\xc3\xb4te d'Ivoire", + capital="ইয়ামুসুক্রো", + ), + Country( + timezones=["আমেরিকা/সান্টিয়াগো", "প্যাসিফিক/ইস্টার"], + alpha_2_code="CL", + alpha_3_code="CHL", + continent="দক্ষিণ আমেরিকা", + name="চিলি", + capital="সান্তিয়াগো", + ), + Country( + timezones=["আফ্রিকা/ডুয়ালা"], + alpha_2_code="CM", + alpha_3_code="CMR", + continent="আফ্রিকা", + name="ক্যামেরুন", + capital="ইয়াউন্ড", + ), + Country( + timezones=[ + "এশিয়া/সাংহাই", + "এশিয়া/হারবিন", + "এশিয়া/চংকিং", + "এশিয়া/উরুমকি", + "এশিয়া/কাশগর", + ], + alpha_2_code="CN", + alpha_3_code="CHN", + continent="এশিয়া", + name="গণপ্রজাতন্ত্রী চীন", + capital="বেইজিং", + ), + Country( + timezones=["আমেরিকা/বোগোটা"], + alpha_2_code="CO", + alpha_3_code="COL", + continent="দক্ষিণ আমেরিকা", + name="কলম্বিয়া", + capital="বোগোট\xc3\xa1", + ), + Country( + timezones=["আমেরিকা/কোস্টা_রিকা"], + alpha_2_code="CR", + alpha_3_code="CRI", + continent="উত্তর আমেরিকা", + name="কোস্টারিকা", + capital="সান জোস\xc3\xa9", + ), + Country( + timezones=["আমেরিকা/হাভানা"], + alpha_2_code="CU", + alpha_3_code="CUB", + continent="উত্তর আমেরিকা", + name="কিউবা", + capital="হাভানা", + ), + Country( + timezones=["আটলান্টিক/কেপ_ভার্দে"], + alpha_2_code="সিভি", + alpha_3_code="CPV", + continent="আফ্রিকা", + name="কেপ ভার্দে", + capital="প্রাইয়া", + ), + Country( + timezones=["এশিয়া/নিকোসিয়া"], + alpha_2_code="CY", + alpha_3_code="CYP", + continent="এশিয়া", + name="সাইপ্রাস", + capital="নিকোসিয়া", + ), + Country( + timezones=["ইউরোপ/প্রাগ"], + alpha_2_code="CZ", + alpha_3_code="CZE", + continent="ইউরোপ", + name="চেক প্রজাতন্ত্র", + capital="প্রাগ", + ), + Country( + timezones=["ইউরোপ/বার্লিন"], + alpha_2_code="DE", + alpha_3_code="DEU", + continent="ইউরোপ", + name="জার্মানি", + capital="বার্লিন", + ), + Country( + timezones=["আফ্রিকা/জিবুতি"], + alpha_2_code="ডিজে", + alpha_3_code="DJI", + continent="আফ্রিকা", + name="জিবুতি", + capital="জিবুতি শহর", + ), + Country( + timezones=["ইউরোপ/কোপেনহেগেন"], + alpha_2_code="DK", + alpha_3_code="DNK", + continent="ইউরোপ", + name="ডেনমার্ক", + capital="কোপেনহেগেন", + ), + Country( + timezones=["আমেরিকা/ডোমিনিকা"], + alpha_2_code="DM", + alpha_3_code="DMA", + continent="উত্তর আমেরিকা", + name="ডোমিনিকা", + capital="রোজাও", + ), + Country( + timezones=["আমেরিকা/সান্টো_ডোমিঙ্গো"], + alpha_2_code="করুন", + alpha_3_code="DOM", + continent="উত্তর আমেরিকা", + name="ডোমিনিকান রিপাবলিক", + capital="সান্তো ডোমিঙ্গো", + ), + Country( + timezones=["আমেরিকা/গুয়াকিল", "প্যাসিফিক/গালাপাগোস"], + alpha_2_code="EC", + alpha_3_code="ECU", + continent="দক্ষিণ আমেরিকা", + name="ইকুয়েডর", + capital="কুইটো", + ), + Country( + timezones=["ইউরোপ/টালিন"], + alpha_2_code="EE", + alpha_3_code="EST", + continent="ইউরোপ", + name="এস্তোনিয়া", + capital="টালিন", + ), + Country( + timezones=["আফ্রিকা/কায়রো"], + alpha_2_code="EG", + alpha_3_code="EGY", + continent="আফ্রিকা", + name="মিশর", + capital="কায়রো", + ), + Country( + timezones=["আফ্রিকা/আসমেরা"], + alpha_2_code="ER", + alpha_3_code="ERI", + continent="আফ্রিকা", + name="ইরিত্রিয়া", + capital="আসমারা", + ), + Country( + timezones=["আফ্রিকা/আদিস_আবাবা"], + alpha_2_code="ET", + alpha_3_code="ETH", + continent="আফ্রিকা", + name="ইথিওপিয়া", + capital="আদিস আবাবা", + ), + Country( + timezones=["ইউরোপ/হেলসিঙ্কি"], + alpha_2_code="FI", + alpha_3_code="FIN", + continent="ইউরোপ", + name="ফিনল্যান্ড", + capital="হেলসিঙ্কি", + ), + Country( + timezones=["প্যাসিফিক/ফিজি"], + alpha_2_code="FJ", + alpha_3_code="FJI", + continent="ওশেনিয়া", + name="ফিজি", + capital="সুভা", + ), + Country( + timezones=["ইউরোপ/প্যারিস"], + alpha_2_code="FR", + alpha_3_code="FRA", + continent="ইউরোপ", + name="ফ্রান্স", + capital="প্যারিস", + ), + Country( + timezones=["আফ্রিকা/লিব্রেভিল"], + alpha_2_code="GA", + alpha_3_code="GAB", + continent="আফ্রিকা", + name="গ্যাবন", + capital="লিব্রেভিল", + ), + Country( + timezones=["এশিয়া/টিবিলিসি"], + alpha_2_code="GE", + alpha_3_code="জিও", + continent="এশিয়া", + name="জর্জিয়া", + capital="তিবিলিসি", + ), + Country( + timezones=["আফ্রিকা/আকরা"], + alpha_2_code="GH", + alpha_3_code="GHA", + continent="আফ্রিকা", + name="ঘানা", + capital="আকরা", + ), + Country( + timezones=["আফ্রিকা/বানজুল"], + alpha_2_code="GM", + alpha_3_code="GMB", + continent="আফ্রিকা", + name="গাম্বিয়া", + capital="বানজুল", + ), + Country( + timezones=["আফ্রিকা/কোনাক্রি"], + alpha_2_code="GN", + alpha_3_code="GIN", + continent="আফ্রিকা", + name="গিনি", + capital="কোনাক্রি", + ), + Country( + timezones=["ইউরোপ/এথেন্স"], + alpha_2_code="GR", + alpha_3_code="GRC", + continent="ইউরোপ", + name="গ্রীস", + capital="এথেন্স", + ), + Country( + timezones=["আমেরিকা/গুয়েতেমালা"], + alpha_2_code="GT", + alpha_3_code="GTM", + continent="উত্তর আমেরিকা", + name="গুয়েতেমালা", + capital="গুয়েতেমালা সিটি", + ), + Country( + timezones=["আমেরিকা/গুয়েতেমালা"], + alpha_2_code="HT", + alpha_3_code="HTI", + continent="উত্তর আমেরিকা", + name="হাইতি", + capital="পোর্ট-অ-প্রিন্স", + ), + Country( + timezones=["আফ্রিকা/বিসাউ"], + alpha_2_code="GW", + alpha_3_code="GNB", + continent="আফ্রিকা", + name="গিনি-বিসাউ", + capital="বিসাউ", + ), + Country( + timezones=["আমেরিকা/গিয়ানা"], + alpha_2_code="GY", + alpha_3_code="লোক", + continent="দক্ষিণ আমেরিকা", + name="গিয়ানা", + capital="জর্জটাউন", + ), + Country( + timezones=["আমেরিকা/টেগুসিগালপা"], + alpha_2_code="HN", + alpha_3_code="HND", + continent="উত্তর আমেরিকা", + name="হন্ডুরাস", + capital="টেগুসিগালপা", + ), + Country( + timezones=["ইউরোপ/বুদাপেস্ট"], + alpha_2_code="HU", + alpha_3_code="HUN", + continent="ইউরোপ", + name="হাঙ্গেরি", + capital="বুদাপেস্ট", + ), + Country( + timezones=[ + "এশিয়া/জাকার্তা", + "এশিয়া/পন্টিয়ানাক", + "এশিয়া/মাকাসার", + "এশিয়া/জয়াপুরা", + ], + alpha_2_code="আইডি", + alpha_3_code="IDN", + continent="এশিয়া", + name="ইন্দোনেশিয়া", + capital="জাকার্তা", + ), + Country( + timezones=["ইউরোপ/ডাবলিন"], + alpha_2_code="IE", + alpha_3_code="IRL", + continent="ইউরোপ", + name="আয়ারল্যান্ড প্রজাতন্ত্র", + capital="ডাবলিন", + ), + Country( + timezones=["এশিয়া/জেরুজালেম"], + alpha_2_code="IL", + alpha_3_code="ISR", + continent="এশিয়া", + name="ইসরায়েল", + capital="জেরুজালেম", + ), + Country( + timezones=["এশিয়া/কলকাতা"], + alpha_2_code="IN", + alpha_3_code="IND", + continent="এশিয়া", + name="ভারত", + capital="নয়া দিল্লী", + ), + Country( + timezones=["এশিয়া/বাগদাদ"], + alpha_2_code="IQ", + alpha_3_code="IRQ", + continent="এশিয়া", + name="ইরাক", + capital="বাগদাদ", + ), + Country( + timezones=["এশিয়া/তেহরান"], + alpha_2_code="IR", + alpha_3_code="IRN", + continent="এশিয়া", + name="ইরান", + capital="তেহরান", + ), + Country( + timezones=["আটলান্টিক/রেকজাভিক"], + alpha_2_code="IS", + alpha_3_code="ISL", + continent="ইউরোপ", + name="আইসল্যান্ড", + capital="রেকজাভিক", + ), + Country( + timezones=["ইউরোপ/রোম"], + alpha_2_code="IT", + alpha_3_code="ITA", + continent="ইউরোপ", + name="ইতালি", + capital="রোম", + ), + Country( + timezones=["আমেরিকা/জ্যামাইকা"], + alpha_2_code="JM", + alpha_3_code="JAM", + continent="উত্তর আমেরিকা", + name="জ্যামাইকা", + capital="কিংসটন", + ), + Country( + timezones=["এশিয়া/আম্মান"], + alpha_2_code="JO", + alpha_3_code="JOR", + continent="এশিয়া", + name="জর্ডান", + capital="আম্মান", + ), + Country( + timezones=["এশিয়া/টোকিও"], + alpha_2_code="JP", + alpha_3_code="JPN", + continent="এশিয়া", + name="জাপান", + capital="টোকিও", + ), + Country( + timezones=["আফ্রিকা/নাইরোবি"], + alpha_2_code="KE", + alpha_3_code="KEN", + continent="আফ্রিকা", + name="কেনিয়া", + capital="নাইরোবি", + ), + Country( + timezones=["এশিয়া/বিশকেক"], + alpha_2_code="কেজি", + alpha_3_code="KGZ", + continent="এশিয়া", + name="কিরগিজস্তান", + capital="বিশকেক", + ), + Country( + timezones=["প্যাসিফিক/তারাওয়া", "প্যাসিফিক/এন্ডারবেরি", "প্যাসিফিক/কিরিটিমাতি"], + alpha_2_code="KI", + alpha_3_code="KIR", + continent="ওশেনিয়া", + name="কিরিবাতি", + capital="তারাওয়া", + ), + Country( + timezones=["এশিয়া/পিয়ংইয়ং"], + alpha_2_code="KP", + alpha_3_code="PRK", + continent="এশিয়া", + name="উত্তর কোরিয়া", + capital="পিয়ংইয়ং", + ), + Country( + timezones=["এশিয়া/সিউল"], + alpha_2_code="KR", + alpha_3_code="KOR", + continent="এশিয়া", + name="দক্ষিণ কোরিয়া", + capital="সিউল", + ), + Country( + timezones=["এশিয়া/কুয়েত"], + alpha_2_code="কিলোওয়াট", + alpha_3_code="KWT", + continent="এশিয়া", + name="কুয়েত", + capital="কুয়েত সিটি", + ), + Country( + timezones=["এশিয়া/বৈরুত"], + alpha_2_code="LB", + alpha_3_code="LBN", + continent="এশিয়া", + name="লেবানন", + capital="বৈরুত", + ), + Country( + timezones=["ইউরোপ/ভাদুজ"], + alpha_2_code="LI", + alpha_3_code="মিথ্যা", + continent="ইউরোপ", + name="লিচেনস্টাইন", + capital="ভাদুজ", + ), + Country( + timezones=["আফ্রিকা/মনরোভিয়া"], + alpha_2_code="LR", + alpha_3_code="LBR", + continent="আফ্রিকা", + name="লাইবেরিয়া", + capital="মনরোভিয়া", + ), + Country( + timezones=["আফ্রিকা/মাসেরু"], + alpha_2_code="LS", + alpha_3_code="LSO", + continent="আফ্রিকা", + name="লেসোথো", + capital="মাসেরু", + ), + Country( + timezones=["ইউরোপ/ভিলনিয়াস"], + alpha_2_code="LT", + alpha_3_code="LTU", + continent="ইউরোপ", + name="লিথুয়ানিয়া", + capital="ভিলনিয়াস", + ), + Country( + timezones=["ইউরোপ/লাক্সেমবার্গ"], + alpha_2_code="LU", + alpha_3_code="LUX", + continent="ইউরোপ", + name="লাক্সেমবার্গ", + capital="লাক্সেমবার্গ সিটি", + ), + Country( + timezones=["ইউরোপ/রিগা"], + alpha_2_code="LV", + alpha_3_code="LVA", + continent="ইউরোপ", + name="লাটভিয়া", + capital="রিগা", + ), + Country( + timezones=["আফ্রিকা/ত্রিপোলি"], + alpha_2_code="LY", + alpha_3_code="LBY", + continent="আফ্রিকা", + name="লিবিয়া", + capital="ত্রিপোলি", + ), + Country( + timezones=["ভারতীয়/আন্তানানারিভো"], + alpha_2_code="MG", + alpha_3_code="MDG", + continent="আফ্রিকা", + name="মাদাগাস্কার", + capital="আন্তানানারিভো", + ), + Country( + timezones=["প্যাসিফিক/মাজুরো", "প্যাসিফিক/কোয়াজালেইন"], + alpha_2_code="MH", + alpha_3_code="MHL", + continent="ওশেনিয়া", + name="মার্শাল দ্বীপপুঞ্জ", + capital="মাজুরো", + ), + Country( + timezones=["ইউরোপ/স্কোপজে"], + alpha_2_code="MK", + alpha_3_code="MKD", + continent="ইউরোপ", + name="ম্যাসিডোনিয়া", + capital="স্কোপজে", + ), + Country( + timezones=["আফ্রিকা/বামাকো"], + alpha_2_code="ML", + alpha_3_code="MLI", + continent="আফ্রিকা", + name="মালি", + capital="বামাকো", + ), + Country( + timezones=["এশিয়া/রেঙ্গুন"], + alpha_2_code="MM", + alpha_3_code="MMR", + continent="এশিয়া", + name="মিয়ানমার", + capital="নায়প্যিদা", + ), + Country( + timezones=["এশিয়া/উলানবাতার", "এশিয়া/হোভড", "এশিয়া/চোইবালসান"], + alpha_2_code="MN", + alpha_3_code="MNG", + continent="এশিয়া", + name="মঙ্গোলিয়া", + capital="উলানবাতার", + ), + Country( + timezones=["আফ্রিকা/নোয়াকচট"], + alpha_2_code="MR", + alpha_3_code="MRT", + continent="আফ্রিকা", + name="মৌরিতানিয়া", + capital="নুয়াকচট", + ), + Country( + timezones=["ইউরোপ/মাল্টা"], + alpha_2_code="MT", + alpha_3_code="MLT", + continent="ইউরোপ", + name="মাল্টা", + capital="ভ্যালেটা", + ), + Country( + timezones=["ভারতীয়/মরিশাস"], + alpha_2_code="MU", + alpha_3_code="MUS", + continent="আফ্রিকা", + name="মরিশাস", + capital="পোর্ট লুইস", + ), + Country( + timezones=["ভারতীয়/মালদ্বীপ"], + alpha_2_code="MV", + alpha_3_code="MDV", + continent="এশিয়া", + name="মালদ্বীপ", + capital="মাল\xc3\xa9", + ), + Country( + timezones=["আফ্রিকা/ব্লান্টিয়ার"], + alpha_2_code="মেগাওয়াট", + alpha_3_code="MWI", + continent="আফ্রিকা", + name="মালাউই", + capital="লিলংওয়ে", + ), + Country( + timezones=[ + "আমেরিকা/মেক্সিকো_সিটি", + "আমেরিকা/কানকুন", + "আমেরিকা/মেরিডা", + "আমেরিকা/মন্টেরে", + "আমেরিকা/মাজাতলান", + "আমেরিকা/চিহুয়াহুয়া", + "আমেরিকা/হার্মোসিলো", + "আমেরিকা/টিজুয়ানা", + ], + alpha_2_code="MX", + alpha_3_code="MEX", + continent="উত্তর আমেরিকা", + name="মেক্সিকো", + capital="মেক্সিকো সিটি", + ), + Country( + timezones=["এশিয়া/কুয়ালা_লামপুর", "এশিয়া/কুচিং"], + alpha_2_code="আমার", + alpha_3_code="MYS", + continent="এশিয়া", + name="মালয়েশিয়া", + capital="কুয়ালালামপুর", + ), + Country( + timezones=["আফ্রিকা/মাপুটো"], + alpha_2_code="MZ", + alpha_3_code="MOZ", + continent="আফ্রিকা", + name="মোজাম্বিক", + capital="মাপুতো", + ), + Country( + timezones=["আফ্রিকা/উইন্ডহোক"], + alpha_2_code="NA", + alpha_3_code="NAM", + continent="আফ্রিকা", + name="nameিবিয়া", + capital="উইন্ডহোক", + ), + Country( + timezones=["আফ্রিকা/নিয়ামে"], + alpha_2_code="NE", + alpha_3_code="NER", + continent="আফ্রিকা", + name="নাইজার", + capital="নিয়ামে", + ), + Country( + timezones=["আফ্রিকা/লাগোস"], + alpha_2_code="NG", + alpha_3_code="NGA", + continent="আফ্রিকা", + name="নাইজেরিয়া", + capital="আবুজা", + ), + Country( + timezones=["আমেরিকা/মানাগুয়া"], + alpha_2_code="NI", + alpha_3_code="NIC", + continent="উত্তর আমেরিকা", + name="নিকারাগুয়া", + capital="মানাগুয়া", + ), + Country( + timezones=["ইউরোপ/আমস্টারডাম"], + alpha_2_code="NL", + alpha_3_code="NLD", + continent="ইউরোপ", + name="নেদারল্যান্ডের রাজ্য", + capital="আমস্টারডাম", + ), + Country( + timezones=["ইউরোপ/অসলো"], + alpha_2_code="না", + alpha_3_code="NOR", + continent="ইউরোপ", + name="নরওয়ে", + capital="অসলো", + ), + Country( + timezones=["এশিয়া/কাটমান্ডু"], + alpha_2_code="NP", + alpha_3_code="NPL", + continent="এশিয়া", + name="নেপাল", + capital="কাঠমান্ডু", + ), + Country( + timezones=["প্যাসিফিক/নাউরু"], + alpha_2_code="NR", + alpha_3_code="NRU", + continent="ওশেনিয়া", + name="নাউরু", + capital="ইয়েরেন", + ), + Country( + timezones=["প্যাসিফিক/অকল্যান্ড", "প্যাসিফিক/চ্যাথাম"], + alpha_2_code="NZ", + alpha_3_code="NZL", + continent="ওশেনিয়া", + name="নিউজিল্যান্ড", + capital="ওয়েলিংটন", + ), + Country( + timezones=["এশিয়া/মাস্কাট"], + alpha_2_code="OM", + alpha_3_code="OMN", + continent="এশিয়া", + name="ওমান", + capital="মাস্কাট", + ), + Country( + timezones=["আমেরিকা/পাnameা"], + alpha_2_code="PA", + alpha_3_code="PAN", + continent="উত্তর আমেরিকা", + name="পাnameা", + capital="পাnameা সিটি", + ), + Country( + timezones=["আমেরিকা/লিমা"], + alpha_2_code="PE", + alpha_3_code="PER", + continent="দক্ষিণ আমেরিকা", + name="পেরু", + capital="লিমা", + ), + Country( + timezones=["প্যাসিফিক/পোর্ট_মোরেসবি"], + alpha_2_code="PG", + alpha_3_code="PNG", + continent="ওশেনিয়া", + name="পাপুয়া নিউ গিনি", + capital="পোর্ট মোরসবি", + ), + Country( + timezones=["এশিয়া/ম্যানিলা"], + alpha_2_code="PH", + alpha_3_code="PHL", + continent="এশিয়া", + name="ফিলিপাইন", + capital="ম্যানিলা", + ), + Country( + timezones=["এশিয়া/করাচি"], + alpha_2_code="PK", + alpha_3_code="PAK", + continent="এশিয়া", + name="পাকিস্তান", + capital="ইসলামাবাদ", + ), + Country( + timezones=["ইউরোপ/ওয়ারশ"], + alpha_2_code="PL", + alpha_3_code="POL", + continent="ইউরোপ", + name="পোল্যান্ড", + capital="ওয়ারশ", + ), + Country( + timezones=["ইউরোপ/লিসবন", "আটলান্টিক/মাদেইরা", "আটলান্টিক/আজোরস"], + alpha_2_code="PT", + alpha_3_code="PRT", + continent="ইউরোপ", + name="পর্তুগাল", + capital="লিসবন", + ), + Country( + timezones=["প্যাসিফিক/পালাউ"], + alpha_2_code="PW", + alpha_3_code="PLW", + continent="ওশেনিয়া", + name="পালাউ", + capital="এনগেরুলমুদ", + ), + Country( + timezones=["আমেরিকা/আসুনসিয়ন"], + alpha_2_code="PY", + alpha_3_code="PRY", + continent="দক্ষিণ আমেরিকা", + name="প্যারাগুয়ে", + capital="আসুন্সি\xc3\xb3n", + ), + Country( + timezones=["এশিয়া/কাতার"], + alpha_2_code="QA", + alpha_3_code="QAT", + continent="এশিয়া", + name="কাতার", + capital="দোহা", + ), + Country( + timezones=["ইউরোপ/বুখারেস্ট"], + alpha_2_code="RO", + alpha_3_code="ROU", + continent="ইউরোপ", + name="রোমানিয়া", + capital="বুখারেস্ট", + ), + Country( + timezones=[ + "ইউরোপ/ক্যালিনিনগ্রাদ", + "ইউরোপ/মস্কো", + "ইউরোপ/ভলগোগ্রাদ", + "ইউরোপ/সামারা", + "এশিয়া/ইয়েকাটেরিনবার্গ", + "এশিয়া/ওমস্ক", + "এশিয়া/নভোসিবিরস্ক", + "এশিয়া/ক্রাসনোয়ারস্ক", + "এশিয়া/ইরকুটস্ক", + "এশিয়া/ইয়াকুটস্ক", + "এশিয়া/ভ্লাদিভোস্টক", + "এশিয়া/সাখালিন", + "এশিয়া/মাগাদান", + "এশিয়া/কামচাটকা", + "এশিয়া/আনাডার", + ], + alpha_2_code="RU", + alpha_3_code="RUS", + continent="ইউরোপ", + name="রাশিয়া", + capital="মস্কো", + ), + Country( + timezones=["আফ্রিকা/কিগালি"], + alpha_2_code="RW", + alpha_3_code="RWA", + continent="আফ্রিকা", + name="রুয়ান্ডা", + capital="কিগালি", + ), + Country( + timezones=["এশিয়া/রিয়াদ"], + alpha_2_code="SA", + alpha_3_code="SAU", + continent="এশিয়া", + name="সৌদি আরব", + capital="রিয়াদ", + ), + Country( + timezones=["প্যাসিফিক/গুয়াডালকানাল"], + alpha_2_code="SB", + alpha_3_code="SLB", + continent="ওশেনিয়া", + name="সলোমন দ্বীপপুঞ্জ", + capital="হোনিয়ারা", + ), + Country( + timezones=["ভারতীয়/মাহে"], + alpha_2_code="SC", + alpha_3_code="SYC", + continent="আফ্রিকা", + name="সেশেলস", + capital="ভিক্টোরিয়া", + ), + Country( + timezones=["আফ্রিকা/খার্তুম"], + alpha_2_code="SD", + alpha_3_code="SDN", + continent="আফ্রিকা", + name="সুদান", + capital="খার্তুম", + ), + Country( + timezones=["ইউরোপ/স্টকহোম"], + alpha_2_code="SE", + alpha_3_code="SWE", + continent="ইউরোপ", + name="সুইডেন", + capital="স্টকহোম", + ), + Country( + timezones=["এশিয়া/সিঙ্গাপুর"], + alpha_2_code="SG", + alpha_3_code="SGP", + continent="এশিয়া", + name="সিঙ্গাপুর", + capital="সিঙ্গাপুর", + ), + Country( + timezones=["ইউরোপ/লুব্লজানা"], + alpha_2_code="SI", + alpha_3_code="SVN", + continent="ইউরোপ", + name="স্লোভেনিয়া", + capital="লুব্লজানা", + ), + Country( + timezones=["ইউরোপ/ব্র্যাটিস্লাভা"], + alpha_2_code="SK", + alpha_3_code="SVK", + continent="ইউরোপ", + name="স্লোভাকিয়া", + capital="ব্রাটিস্লাভা", + ), + Country( + timezones=["আফ্রিকা/ফ্রিটাউন"], + alpha_2_code="SL", + alpha_3_code="SLE", + continent="আফ্রিকা", + name="সিয়েরা লিওন", + capital="ফ্রিটাউন", + ), + Country( + timezones=["ইউরোপ/সান_মারিনো"], + alpha_2_code="SM", + alpha_3_code="SMR", + continent="ইউরোপ", + name="সান মারিনো", + capital="সান মারিনো", + ), + Country( + timezones=["আফ্রিকা/ডাকার"], + alpha_2_code="SN", + alpha_3_code="SEN", + continent="আফ্রিকা", + name="সেনেগাল", + capital="ডাকার", + ), + Country( + timezones=["আফ্রিকা/মোগাদিশু"], + alpha_2_code="SO", + alpha_3_code="SOM", + continent="আফ্রিকা", + name="সোমালিয়া", + capital="মোগাদিশু", + ), + Country( + timezones=["আমেরিকা/পারামারিবো"], + alpha_2_code="SR", + alpha_3_code="SUR", + continent="দক্ষিণ আমেরিকা", + name="সুরিname", + capital="পারমারিবো", + ), + Country( + timezones=["আফ্রিকা/সাও_টোম"], + alpha_2_code="ST", + alpha_3_code="STP", + continent="আফ্রিকা", + name="S\xc3\xa3o Tom\xc3\xa9 এবং Pr\xc3\xadncipe", + capital="S\xc3\xa3o টম\xc3\xa9", + ), + Country( + timezones=["এশিয়া/দামাস্কাস"], + alpha_2_code="SY", + alpha_3_code="SYR", + continent="এশিয়া", + name="সিরিয়া", + capital="দামাস্কাস", + ), + Country( + timezones=["আফ্রিকা/লোম"], + alpha_2_code="TG", + alpha_3_code="TGO", + continent="আফ্রিকা", + name="টোগো", + capital="Lom\xc3\xa9", + ), + Country( + timezones=["এশিয়া/ব্যাংকক"], + alpha_2_code="TH", + alpha_3_code="THA", + continent="এশিয়া", + name="থাইল্যান্ড", + capital="ব্যাংকক", + ), + Country( + timezones=["এশিয়া/দুশানবে"], + alpha_2_code="TJ", + alpha_3_code="TJK", + continent="এশিয়া", + name="তাজিকিস্তান", + capital="দুশানবে", + ), + Country( + timezones=["এশিয়া/আশগাবাত"], + alpha_2_code="TM", + alpha_3_code="TKM", + continent="এশিয়া", + name="তুর্কমেনিস্তান", + capital="আশগাবাত", + ), + Country( + timezones=["আফ্রিকা/টিউনিস"], + alpha_2_code="TN", + alpha_3_code="TUN", + continent="আফ্রিকা", + name="তিউনিসিয়া", + capital="তিউনিস", + ), + Country( + timezones=["প্যাসিফিক/টোঙ্গাটাপু"], + alpha_2_code="TO", + alpha_3_code="TON", + continent="ওশেনিয়া", + name="টোঙ্গা", + capital="নুকু\xca\xbbalofa", + ), + Country( + timezones=["ইউরোপ/ইস্তানবুল"], + alpha_2_code="TR", + alpha_3_code="TUR", + continent="এশিয়া", + name="তুরস্ক", + capital="আঙ্কারা", + ), + Country( + timezones=["আমেরিকা/পোর্ট_অফ_স্পেন"], + alpha_2_code="TT", + alpha_3_code="TTO", + continent="উত্তর আমেরিকা", + name="ত্রিনিদাদ ও টোবাগো", + capital="স্পেন বন্দর", + ), + Country( + timezones=["প্যাসিফিক/ফুনাফুটি"], + alpha_2_code="টিভি", + alpha_3_code="TUV", + continent="ওশেনিয়া", + name="টুভালু", + capital="ফুনাফুটি", + ), + Country( + timezones=["আফ্রিকা/দার_এস_সালাম"], + alpha_2_code="TZ", + alpha_3_code="TZA", + continent="আফ্রিকা", + name="তানজানিয়া", + capital="ডোডোমা", + ), + Country( + timezones=[ + "ইউরোপ/কিয়েভ", + "ইউরোপ/উজগোরড", + "ইউরোপ/জাপোরোজি", + "ইউরোপ/সিমফেরোপল", + ], + alpha_2_code="UA", + alpha_3_code="UKR", + continent="ইউরোপ", + name="ইউক্রেন", + capital="কিয়েভ", + ), + Country( + timezones=["আফ্রিকা/কাম্পালা"], + alpha_2_code="UG", + alpha_3_code="UGA", + continent="আফ্রিকা", + name="উগান্ডা", + capital="কাম্পালা", + ), + Country( + timezones=[ + "আমেরিকা/নিউইয়র্ক", + "আমেরিকা/ডেট্রয়েট", + "আমেরিকা/কেনটাকি/লুইসভিল", + "আমেরিকা/কেনটাকি/মন্টিসেলো", + "আমেরিকা/ইন্ডিয়ানা/ইন্ডিয়ানাপোলিস", + "আমেরিকা/ইন্ডিয়ানা/মারেঙ্গো", + "আমেরিকা/ইন্ডিয়ানা/নক্স", + "আমেরিকা/ইন্ডিয়ানা/ভেভে", + "আমেরিকা/শিকাগো", + "আমেরিকা/ইন্ডিয়ানা/ভিনসেনেস", + "আমেরিকা/ইন্ডিয়ানা/পিটার্সবার্গ", + "আমেরিকা/মেনোমিনী", + "আমেরিকা/উত্তর_ডাকোটা/সেন্টার", + "আমেরিকা/উত্তর_ডাকোটা/নিউ_সালেম", + "আমেরিকা/ডেনভার", + "আমেরিকা/বোইস", + "আমেরিকা/শিপ্রক", + "আমেরিকা/ফিনিক্স", + "আমেরিকা/লস_এঞ্জেলেস", + "আমেরিকা/অ্যাঙ্কোরেজ", + "আমেরিকা/জুনেউ", + "আমেরিকা/ইয়াকুটাত", + "আমেরিকা/name", + "আমেরিকা/আডাক", + "প্যাসিফিক/হনোলুলু", + ], + alpha_2_code="মার্কিন যুক্তরাষ্ট্র", + alpha_3_code="USA", + continent="উত্তর আমেরিকা", + name="মার্কিন যুক্তরাষ্ট্র", + capital="ওয়াশিংটন, ডিসি", + ), + Country( + timezones=["আমেরিকা/মন্টেভিডিও"], + alpha_2_code="UY", + alpha_3_code="URY", + continent="দক্ষিণ আমেরিকা", + name="উরুগুয়ে", + capital="মন্টেভিডিও", + ), + Country( + timezones=["এশিয়া/সমরকন্দ", "এশিয়া/তাসখন্দ"], + alpha_2_code="UZ", + alpha_3_code="UZB", + continent="এশিয়া", + name="উজবেকিস্তান", + capital="তাসখন্দ", + ), + Country( + timezones=["ইউরোপ/ভ্যাটিকান"], + alpha_2_code="VA", + alpha_3_code="ভ্যাট", + continent="ইউরোপ", + name="ভ্যাটিকান সিটি", + capital="ভ্যাটিকান সিটি", + ), + Country( + timezones=["আমেরিকা/কারাকাস"], + alpha_2_code="VE", + alpha_3_code="VEN", + continent="দক্ষিণ আমেরিকা", + name="ভেনিজুয়েলা", + capital="কারাকাস", + ), + Country( + timezones=["এশিয়া/সাইগন"], + alpha_2_code="VN", + alpha_3_code="VNM", + continent="এশিয়া", + name="ভিয়েতname", + capital="হানয়", + ), + Country( + timezones=["প্যাসিফিক/ইফেট"], + alpha_2_code="VU", + alpha_3_code="VUT", + continent="ওশেনিয়া", + name="ভানুয়াতু", + capital="পোর্ট ভিলা", + ), + Country( + timezones=["এশিয়া/এডেন"], + alpha_2_code="YE", + alpha_3_code="YEM", + continent="এশিয়া", + name="ইয়েমেন", + capital="সানা", + ), + Country( + timezones=["আফ্রিকা/লুসাকা"], + alpha_2_code="ZM", + alpha_3_code="ZMB", + continent="আফ্রিকা", + name="জাম্বিয়া", + capital="লুসাকা", + ), + Country( + timezones=["আফ্রিকা/হারারে"], + alpha_2_code="ZW", + alpha_3_code="ZWE", + continent="আফ্রিকা", + name="জিম্বাবুয়ে", + capital="হারারে", + ), + Country( + timezones=["আফ্রিকা/আলজিয়ার্স"], + alpha_2_code="DZ", + alpha_3_code="DZA", + continent="আফ্রিকা", + name="আলজেরিয়া", + capital="আলজিয়ার্স", + ), + Country( + timezones=["ইউরোপ/সারাজেভো"], + alpha_2_code="BA", + alpha_3_code="BIH", + continent="ইউরোপ", + name="বসনিয়া ও হার্জেগোভিনা", + capital="সারায়েভো", + ), + Country( + timezones=["এশিয়া/ফনম_পেন"], + alpha_2_code="KH", + alpha_3_code="KHM", + continent="এশিয়া", + name="কম্বোডিয়া", + capital="নম পেন", + ), + Country( + timezones=["আফ্রিকা/বাঙ্গুই"], + alpha_2_code="CF", + alpha_3_code="CAF", + continent="আফ্রিকা", + name="মধ্য আফ্রিকান প্রজাতন্ত্র", + capital="বাঙ্গুই", + ), + Country( + timezones=["আফ্রিকা/এনডজামেনা"], + alpha_2_code="TD", + alpha_3_code="TCD", + continent="আফ্রিকা", + name="চাদ", + capital="এন'জামেনা", + ), + Country( + timezones=["ভারতীয়/কোমোরো"], + alpha_2_code="KM", + alpha_3_code="COM", + continent="আফ্রিকা", + name="কোমোরোস", + capital="মোরোনি", + ), + Country( + timezones=["ইউরোপ/জাগরেব"], + alpha_2_code="HR", + alpha_3_code="HRV", + continent="ইউরোপ", + name="ক্রোয়েশিয়া", + capital="জাগরেব", + ), + Country( + timezones=["এশিয়া/দিলি"], + alpha_2_code="TL", + alpha_3_code="TLS", + continent="এশিয়া", + name="পূর্ব তিমুর", + capital="দিলি", + ), + Country( + timezones=["আমেরিকা/এল_সালভাদর"], + alpha_2_code="SV", + alpha_3_code="SLV", + continent="উত্তর আমেরিকা", + name="এল সালভাদর", + capital="সান সালভাদর", + ), + Country( + timezones=["আফ্রিকা/মালাবো"], + alpha_2_code="GQ", + alpha_3_code="GNQ", + continent="আফ্রিকা", + name="নিরক্ষীয় গিনি", + capital="মালাবো", + ), + Country( + timezones=["আমেরিকা/গ্রেনাডা"], + alpha_2_code="GD", + alpha_3_code="GRD", + continent="উত্তর আমেরিকা", + name="গ্রেনাডা", + capital="সেন্ট জর্জস", + ), + Country( + timezones=[ + "এশিয়া/আলমাটি", + "এশিয়া/কিউজিলর্ডা", + "এশিয়া/আকতোব", + "এশিয়া/আকতাউ", + "এশিয়া/ওরাল", + ], + alpha_2_code="KZ", + alpha_3_code="KAZ", + continent="এশিয়া", + name="কাজাখস্তান", + capital="আস্তানা", + ), + Country( + timezones=["এশিয়া/ভিয়েনতিয়েন"], + alpha_2_code="LA", + alpha_3_code="LAO", + continent="এশিয়া", + name="লাওস", + capital="ভিয়েনতিয়েন", + ), + Country( + timezones=["প্যাসিফিক/ট্রুক", "প্যাসিফিক/পোনাপে", "প্যাসিফিক/কোসরা"], + alpha_2_code="FM", + alpha_3_code="FSM", + continent="ওশেনিয়া", + name="মাইক্রোনেশিয়ার ফেডারেটেড স্টেটস", + capital="পালকির", + ), + Country( + timezones=["ইউরোপ/চিসিনাউ"], + alpha_2_code="MD", + alpha_3_code="MDA", + continent="ইউরোপ", + name="মোল্দোভা", + capital="চি\xc5\x9fin\xc4\x83u", + ), + Country( + timezones=["ইউরোপ/মোনাকো"], + alpha_2_code="MC", + alpha_3_code="MCO", + continent="ইউরোপ", + name="মোনাকো", + capital="মোনাকো", + ), + Country( + timezones=["ইউরোপ/পডগোরিকা"], + alpha_2_code="ME", + alpha_3_code="MNE", + continent="ইউরোপ", + name="মন্টিনিগ্রো", + capital="পডগোরিকা", + ), + Country( + timezones=["আফ্রিকা/ক্যাসাব্লাঙ্কা"], + alpha_2_code="MA", + alpha_3_code="MAR", + continent="আফ্রিকা", + name="মরক্কো", + capital="রাবাত", + ), + Country( + timezones=["আমেরিকা/সেন্ট_কিটস"], + alpha_2_code="KN", + alpha_3_code="KNA", + continent="উত্তর আমেরিকা", + name="সেন্ট কিটস অ্যান্ড নেভিস", + capital="ব্যাসেটেরে", + ), + Country( + timezones=["আমেরিকা/সেন্ট_লুসিয়া"], + alpha_2_code="LC", + alpha_3_code="LCA", + continent="উত্তর আমেরিকা", + name="সেন্ট লুসিয়া", + capital="ক্যাস্ট্রিজ", + ), + Country( + timezones=["America/St_Vincent"], + alpha_2_code="ভিসি", + alpha_3_code="VCT", + continent="উত্তর আমেরিকা", + name="সেন্ট ভিনসেন্ট এবং গ্রেনাডাইনস", + capital="কিংসটাউন", + ), + Country( + timezones=["প্যাসিফিক/অপিয়া"], + alpha_2_code="WS", + alpha_3_code="WSM", + continent="ওশেনিয়া", + name="সামোয়া", + capital="আপিয়া", + ), + Country( + timezones=["ইউরোপ/বেলগ্রেড"], + alpha_2_code="RS", + alpha_3_code="SRB", + continent="ইউরোপ", + name="সার্বিয়া", + capital="বেলগ্রেড", + ), + Country( + timezones=["আফ্রিকা/জোহানেসবার্গ"], + alpha_2_code="ZA", + alpha_3_code="ZAF", + continent="আফ্রিকা", + name="দক্ষিণ আফ্রিকা", + capital="প্রিটোরিয়া", + ), + Country( + timezones=["ইউরোপ/মাদ্রিদ", "আফ্রিকা/সেউটা", "আটলান্টিক/ক্যানারি"], + alpha_2_code="ES", + alpha_3_code="ESP", + continent="ইউরোপ", + name="স্পেন", + capital="মাদ্রিদ", + ), + Country( + timezones=["এশিয়া/কলম্বো"], + alpha_2_code="LK", + alpha_3_code="LKA", + continent="এশিয়া", + name="শ্রীলঙ্কা", + capital="শ্রী জয়বর্ধনেপুরা কোট্টে", + ), + Country( + timezones=["আফ্রিকা/এমবাবেন"], + alpha_2_code="SZ", + alpha_3_code="SWZ", + continent="আফ্রিকা", + name="সোয়াজিল্যান্ড", + capital="এমবাবেন", + ), + Country( + timezones=["ইউরোপ/জুরিখ"], + alpha_2_code="CH", + alpha_3_code="CHE", + continent="ইউরোপ", + name="সুইজারল্যান্ড", + capital="বার্ন", + ), + Country( + timezones=["এশিয়া/দুবাই"], + alpha_2_code="AE", + alpha_3_code="ARE", + continent="এশিয়া", + name="সংযুক্ত আরব আমিরাত", + capital="আবুধাবি", + ), + Country( + timezones=["ইউরোপ/লন্ডন"], + alpha_2_code="GB", + alpha_3_code="GBR", + continent="ইউরোপ", + name="যুক্তরাজ্য", + capital="লন্ডন", + ), + Country( + timezones=["এশিয়া/তাইপেই"], + alpha_2_code="TW", + alpha_3_code="TWN", + continent="এশিয়া", + name="তাইওয়ান", + capital="তাইপেই", + ), + Country( + timezones=["এশিয়া/গাজা", "এশিয়া/হেব্রন"], + alpha_2_code="PS", + alpha_3_code="PSE", + continent="এশিয়া", + name="ফিলিস্তিন", + capital="রামাল্লা", + ), + ] + + def day_of_week(self) -> str: + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self) -> str: + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/bn_BD/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/bn_BD/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..06e3c4d --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/bn_BD/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/cs_CZ/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/cs_CZ/__init__.py new file mode 100644 index 0000000..45b39c2 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/cs_CZ/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "neděle", + "1": "pondělí", + "2": "úterý", + "3": "středa", + "4": "čtvrtek", + "5": "pátek", + "6": "sobota", + } + + MONTH_NAMES = { + "01": "leden", + "02": "únor", + "03": "březen", + "04": "duben", + "05": "květen", + "06": "červen", + "07": "červenec", + "08": "srpen", + "09": "září", + "10": "říjen", + "11": "listopad", + "12": "prosinec", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/cs_CZ/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/cs_CZ/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..bde12b0 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/cs_CZ/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/da_DK/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/da_DK/__init__.py new file mode 100644 index 0000000..b2d238d --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/da_DK/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "mandag", + "1": "tirsdag", + "2": "onsdag", + "3": "torsdag", + "4": "fredag", + "5": "lørdag", + "6": "søndag", + } + + MONTH_NAMES = { + "01": "januar", + "02": "februar", + "03": "marts", + "04": "april", + "05": "maj", + "06": "juni", + "07": "juli", + "08": "august", + "09": "september", + "10": "oktober", + "11": "november", + "12": "decembder", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/da_DK/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/da_DK/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..1245c9a --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/da_DK/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/de_AT/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/de_AT/__init__.py new file mode 100644 index 0000000..26a7974 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/de_AT/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "Sonntag", + "1": "Montag", + "2": "Dienstag", + "3": "Mittwoch", + "4": "Donnerstag", + "5": "Freitag", + "6": "Samstag", + } + + MONTH_NAMES = { + "01": "Jänner", + "02": "Februar", + "03": "März", + "04": "April", + "05": "Mai", + "06": "Juni", + "07": "Juli", + "08": "August", + "09": "September", + "10": "Oktober", + "11": "November", + "12": "Dezember", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/de_AT/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/de_AT/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..ab1714a --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/de_AT/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/de_DE/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/de_DE/__init__.py new file mode 100644 index 0000000..70c776d --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/de_DE/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "Sonntag", + "1": "Montag", + "2": "Dienstag", + "3": "Mittwoch", + "4": "Donnerstag", + "5": "Freitag", + "6": "Samstag", + } + + MONTH_NAMES = { + "01": "Januar", + "02": "Februar", + "03": "März", + "04": "April", + "05": "Mai", + "06": "Juni", + "07": "Juli", + "08": "August", + "09": "September", + "10": "Oktober", + "11": "November", + "12": "Dezember", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/de_DE/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/de_DE/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..e173389 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/de_DE/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/el_GR/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/el_GR/__init__.py new file mode 100644 index 0000000..198b730 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/el_GR/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "Κυριακή", + "1": "Δευτέρα", + "2": "Τρίτη", + "3": "Τετάρτη", + "4": "Πέμπτη", + "5": "Παρασκευή", + "6": "Σάββατο", + } + + MONTH_NAMES = { + "01": "Ιανουάριος", + "02": "Φεβρουάριος", + "03": "Μάρτιος", + "04": "Απρίλιος", + "05": "Μάιος", + "06": "Ιούνιος", + "07": "Ιούλιος", + "08": "Αύγουστος", + "09": "Σεπτέμβριος", + "10": "Οκτώβριος", + "11": "Νοέμβριος", + "12": "Δεκέμβριος", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/el_GR/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/el_GR/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..6cb14dc --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/el_GR/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/en_PH/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/en_PH/__init__.py new file mode 100644 index 0000000..f57570e --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/en_PH/__init__.py @@ -0,0 +1,7 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + """No difference from default DateTimeProvider""" + + pass diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/en_PH/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/en_PH/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..cf53a15 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/en_PH/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/en_US/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/en_US/__init__.py new file mode 100644 index 0000000..542b583 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/en_US/__init__.py @@ -0,0 +1,5 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + pass diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/en_US/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/en_US/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..87a7f85 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/en_US/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/es/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/es/__init__.py new file mode 100644 index 0000000..7b742cb --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/es/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "domingo", + "1": "lunes", + "2": "martes", + "3": "miércoles", + "4": "jueves", + "5": "viernes", + "6": "sábado", + } + + MONTH_NAMES = { + "01": "enero", + "02": "febrero", + "03": "marzo", + "04": "abril", + "05": "mayo", + "06": "junio", + "07": "julio", + "08": "agosto", + "09": "septiembre", + "10": "octubre", + "11": "noviembre", + "12": "diciembre", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/es/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/es/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..8b63639 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/es/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/es_AR/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/es_AR/__init__.py new file mode 100644 index 0000000..8aac302 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/es_AR/__init__.py @@ -0,0 +1,5 @@ +from ..es import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + pass diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/es_AR/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/es_AR/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..a43a7a6 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/es_AR/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/es_CL/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/es_CL/__init__.py new file mode 100644 index 0000000..8aac302 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/es_CL/__init__.py @@ -0,0 +1,5 @@ +from ..es import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + pass diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/es_CL/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/es_CL/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..c9137f7 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/es_CL/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/es_ES/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/es_ES/__init__.py new file mode 100644 index 0000000..8aac302 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/es_ES/__init__.py @@ -0,0 +1,5 @@ +from ..es import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + pass diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/es_ES/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/es_ES/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..3f13038 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/es_ES/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/fil_PH/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/fil_PH/__init__.py new file mode 100644 index 0000000..b569092 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/fil_PH/__init__.py @@ -0,0 +1,37 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + """Provider for datetimes for fil_PH locale""" + + DAY_NAMES = { + "0": "Linggo", + "1": "Lunes", + "2": "Martes", + "3": "Miyerkules", + "4": "Huwebes", + "5": "Biyernes", + "6": "Sabado", + } + MONTH_NAMES = { + "01": "Enero", + "02": "Pebrero", + "03": "Marso", + "04": "Abril", + "05": "Mayo", + "06": "Hunyo", + "07": "Hulyo", + "08": "Agosto", + "09": "Setyembre", + "10": "Oktubre", + "11": "Nobyembre", + "12": "Disyembre", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/fil_PH/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/fil_PH/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..22ed73d --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/fil_PH/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/fr_CA/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/fr_CA/__init__.py new file mode 100644 index 0000000..3756d8a --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/fr_CA/__init__.py @@ -0,0 +1,8 @@ +from typing import Any + +from ..fr_FR import Provider as FRFRProvider + + +class Provider(FRFRProvider): + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/fr_CA/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/fr_CA/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..03ef728 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/fr_CA/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/fr_FR/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/fr_FR/__init__.py new file mode 100644 index 0000000..b7d25de --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/fr_FR/__init__.py @@ -0,0 +1,35 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "dimanche", + "1": "lundi", + "2": "mardi", + "3": "mercredi", + "4": "jeudi", + "5": "vendredi", + "6": "samedi", + } + MONTH_NAMES = { + "01": "Janvier", + "02": "Février", + "03": "Mars", + "04": "Avril", + "05": "Mai", + "06": "Juin", + "07": "Juillet", + "08": "Août", + "09": "Septembre", + "10": "Octobre", + "11": "Novembre", + "12": "Décembre", + } + + def day_of_week(self) -> str: + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self) -> str: + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/fr_FR/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/fr_FR/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..867addd --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/fr_FR/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/hi_IN/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/hi_IN/__init__.py new file mode 100644 index 0000000..06ff2f1 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/hi_IN/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + def day_of_week(self) -> str: + day = self.date("%w") + DAY_NAMES = { + "0": "सोमवार", + "1": "मंगलवार", + "2": "बुधवार", + "3": "गुरुवार", + "4": "जुम्मा", + "5": "शनिवार", + "6": "रविवार", + } + + return DAY_NAMES[day] + + def month_name(self) -> str: + month = self.month() + MONTH_NAMES = { + "01": "जनवरी", + "02": "फ़रवरी", + "03": "मार्च", + "04": "अप्रैल", + "05": "मई", + "06": "जून", + "07": "जुलाई", + "08": "अगस्त", + "09": "सितंबर", + "10": "अक्टूबर", + "11": "नवंबर", + "12": "दिसंबर", + } + + return MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/hi_IN/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/hi_IN/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..f33c65a --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/hi_IN/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/hr_HR/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/hr_HR/__init__.py new file mode 100644 index 0000000..010ebb8 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/hr_HR/__init__.py @@ -0,0 +1,34 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + def day_of_week(self) -> str: + day = self.date("%w") + DAY_NAMES = { + "0": "Nedjelja", + "1": "Ponedjeljak", + "2": "Utorak", + "3": "Srijeda", + "4": "Četvrtak", + "5": "Petak", + "6": "Subota", + } + return DAY_NAMES[day] + + def month_name(self) -> str: + month = self.month() + MONTH_NAMES = { + "01": "Siječanj", + "02": "Veljača", + "03": "Ožujak", + "04": "Travanj", + "05": "Svibanj", + "06": "Lipanj", + "07": "Srpanj", + "08": "Kolovoz", + "09": "Rujan", + "10": "Listopad", + "11": "Studeni", + "12": "Prosinac", + } + return MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/hr_HR/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/hr_HR/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..057090e --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/hr_HR/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/hu_HU/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/hu_HU/__init__.py new file mode 100644 index 0000000..58a22b0 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/hu_HU/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + def day_of_week(self) -> str: + day = self.date("%w") + DAY_NAMES = { + "0": "hétfő", + "1": "kedd", + "2": "szerda", + "3": "csütörtök", + "4": "péntek", + "5": "szombat", + "6": "vasárnap", + } + + return DAY_NAMES[day] + + def month_name(self) -> str: + month = self.month() + MONTH_NAMES = { + "01": "január", + "02": "február", + "03": "március", + "04": "április", + "05": "május", + "06": "junius", + "07": "julius", + "08": "augusztus", + "09": "szeptember", + "10": "október", + "11": "november", + "12": "december", + } + + return MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/hu_HU/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/hu_HU/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..7bbfa47 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/hu_HU/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/hy_AM/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/hy_AM/__init__.py new file mode 100644 index 0000000..01b25cd --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/hy_AM/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "Կիրակի", + "1": "Երկուշաբթի", + "2": "Երեքշաբթի", + "3": "Չորեքշաբթի", + "4": "Հինգշաբթի", + "5": "Ուրբաթ", + "6": "Շաբաթ", + } + + MONTH_NAMES = { + "01": "Հունվար", + "02": "Փետրվար", + "03": "Մարտ", + "04": "Ապրիլ", + "05": "Մայիս", + "06": "Հունիս", + "07": "Հուլիս", + "08": "Օգոստոս", + "09": "Սեպտեմբեր", + "10": "Հոկտեմբեր", + "11": "Նոյեմբեր", + "12": "Դեկտեմբեր", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/hy_AM/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/hy_AM/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..f02469b --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/hy_AM/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/id_ID/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/id_ID/__init__.py new file mode 100644 index 0000000..f59e3fd --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/id_ID/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + def day_of_week(self) -> str: + day = self.date("%w") + DAY_NAMES = { + "0": "Senin", + "1": "Selasa", + "2": "Rabu", + "3": "Kamis", + "4": "Jumat", + "5": "Sabtu", + "6": "Minggu", + } + + return DAY_NAMES[day] + + def month_name(self) -> str: + month = self.month() + MONTH_NAMES = { + "01": "Januari", + "02": "Februari", + "03": "Maret", + "04": "April", + "05": "Mei", + "06": "Juni", + "07": "Juli", + "08": "Agustus", + "09": "September", + "10": "Oktober", + "11": "November", + "12": "Desember", + } + + return MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/id_ID/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/id_ID/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..c4aa1df --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/id_ID/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/it_IT/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/it_IT/__init__.py new file mode 100644 index 0000000..53f841f --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/it_IT/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "domenica", + "1": "lunedì", + "2": "martedì", + "3": "mercoledì", + "4": "giovedì", + "5": "venerdì", + "6": "sabato", + } + + MONTH_NAMES = { + "01": "gennaio", + "02": "febbraio", + "03": "marzo", + "04": "aprile", + "05": "maggio", + "06": "giugno", + "07": "luglio", + "08": "agosto", + "09": "settembre", + "10": "ottobre", + "11": "novembre", + "12": "dicembre", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/it_IT/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/it_IT/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..9e5a7da --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/it_IT/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/ja_JP/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/ja_JP/__init__.py new file mode 100644 index 0000000..6ea489d --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/ja_JP/__init__.py @@ -0,0 +1,54 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + MONTH_NAMES = { + "01": "一月", + "02": "二月", + "03": "三月", + "04": "四月", + "05": "五月", + "06": "六月", + "07": "七月", + "08": "八月", + "09": "九月", + "10": "十月", + "11": "十一月", + "12": "十二月", + } + + TRADITIONAL_MONTH_NAMES = { + "01": "睦月", + "02": "如月", + "03": "弥生", + "04": "卯月", + "05": "皐月", + "06": "水無月", + "07": "文月", + "08": "葉月", + "09": "長月", + "10": "神無月", + "11": "霜月", + "12": "師走", + } + DAY_NAMES = { + "0": "日曜日", + "1": "月曜日", + "2": "火曜日", + "3": "水曜日", + "4": "木曜日", + "5": "金曜日", + "6": "土曜日", + } + + def day_of_week(self) -> str: + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self) -> str: + month = self.month() + return self.MONTH_NAMES[month] + + def traditional_month_name(self) -> str: + month = self.month() + return self.TRADITIONAL_MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/ja_JP/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/ja_JP/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..205e6dc --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/ja_JP/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/ko_KR/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/ko_KR/__init__.py new file mode 100644 index 0000000..12de462 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/ko_KR/__init__.py @@ -0,0 +1,34 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + def day_of_week(self) -> str: + day = self.date("%w") + DAY_NAMES = { + "0": "일요일", + "1": "월요일", + "2": "화요일", + "3": "수요일", + "4": "목요일", + "5": "금요일", + "6": "토요일", + } + return DAY_NAMES[day] + + def month_name(self) -> str: + month = self.month() + MONTH_NAMES = { + "01": "1월", + "02": "2월", + "03": "3월", + "04": "4월", + "05": "5월", + "06": "6월", + "07": "7월", + "08": "8월", + "09": "9월", + "10": "10월", + "11": "11월", + "12": "12월", + } + return MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/ko_KR/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/ko_KR/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..14db055 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/ko_KR/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/nl_NL/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/nl_NL/__init__.py new file mode 100644 index 0000000..46a8da1 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/nl_NL/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "zondag", + "1": "maandag", + "2": "dinsdag", + "3": "woensdag", + "4": "donderdag", + "5": "vrijdag", + "6": "zaterdag", + } + + MONTH_NAMES = { + "01": "januari", + "02": "februari", + "03": "maart", + "04": "april", + "05": "mei", + "06": "juni", + "07": "juli", + "08": "augustus", + "09": "september", + "10": "oktober", + "11": "november", + "12": "december", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/nl_NL/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/nl_NL/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..6661742 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/nl_NL/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/no_NO/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/no_NO/__init__.py new file mode 100644 index 0000000..ac367ee --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/no_NO/__init__.py @@ -0,0 +1,35 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + MONTH_NAMES = { + "01": "januar", + "02": "februar", + "03": "mars", + "04": "april", + "05": "mai", + "06": "juni", + "07": "juli", + "08": "august", + "09": "september", + "10": "oktober", + "11": "november", + "12": "desember", + } + DAY_NAMES = { + "0": "søndag", + "1": "mandag", + "2": "tirsdag", + "3": "onsdag", + "4": "torsdag", + "5": "fredag", + "6": "lørdag", + } + + def day_of_week(self) -> str: + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self) -> str: + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/no_NO/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/no_NO/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..0cca512 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/no_NO/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/pl_PL/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/pl_PL/__init__.py new file mode 100644 index 0000000..7e4620c --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/pl_PL/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "poniedziałek", + "1": "wtorek", + "2": "środa", + "3": "czwartek", + "4": "piątek", + "5": "sobota", + "6": "niedziela", + } + + MONTH_NAMES = { + "01": "styczeń", + "02": "luty", + "03": "marzec", + "04": "kwiecień", + "05": "maj", + "06": "czerwiec", + "07": "lipiec", + "08": "sierpień", + "09": "wrzesień", + "10": "październik", + "11": "listopad", + "12": "grudzień", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/pl_PL/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/pl_PL/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..b4204a9 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/pl_PL/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/pt_BR/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/pt_BR/__init__.py new file mode 100644 index 0000000..80f3c23 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/pt_BR/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "domingo", + "1": "segunda-feira", + "2": "terça-feira", + "3": "quarta-feira", + "4": "quinta-feira", + "5": "sexta-feira", + "6": "sábado", + } + + MONTH_NAMES = { + "01": "janeiro", + "02": "fevereiro", + "03": "março", + "04": "abril", + "05": "maio", + "06": "junho", + "07": "julho", + "08": "agosto", + "09": "setembro", + "10": "outubro", + "11": "novembro", + "12": "dezembro", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/pt_BR/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/pt_BR/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..512fc7d --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/pt_BR/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/pt_PT/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/pt_PT/__init__.py new file mode 100644 index 0000000..80f3c23 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/pt_PT/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "domingo", + "1": "segunda-feira", + "2": "terça-feira", + "3": "quarta-feira", + "4": "quinta-feira", + "5": "sexta-feira", + "6": "sábado", + } + + MONTH_NAMES = { + "01": "janeiro", + "02": "fevereiro", + "03": "março", + "04": "abril", + "05": "maio", + "06": "junho", + "07": "julho", + "08": "agosto", + "09": "setembro", + "10": "outubro", + "11": "novembro", + "12": "dezembro", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/pt_PT/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/pt_PT/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..7283f22 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/pt_PT/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/ro_RO/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/ro_RO/__init__.py new file mode 100644 index 0000000..de733e2 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/ro_RO/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "duminica", + "1": "luni", + "2": "marti", + "3": "miercuri", + "4": "joi", + "5": "vineri", + "6": "sambata", + } + + MONTH_NAMES = { + "01": "ianuarie", + "02": "februarie", + "03": "martie", + "04": "aprilie", + "05": "mai", + "06": "iunie", + "07": "iulie", + "08": "august", + "09": "septembrie", + "10": "octombrie", + "11": "noiembrie", + "12": "decembrie", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/ro_RO/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/ro_RO/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..5ff9f45 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/ro_RO/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/ru_RU/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/ru_RU/__init__.py new file mode 100644 index 0000000..25fd9a6 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/ru_RU/__init__.py @@ -0,0 +1,1640 @@ +from faker.typing import Country + +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "Воскресенье", + "1": "Понедельник", + "2": "Вторник", + "3": "Среда", + "4": "Четверг", + "5": "Пятница", + "6": "Суббота", + } + + MONTH_NAMES = { + "01": "Январь", + "02": "Февраль", + "03": "Март", + "04": "Апрель", + "05": "Май", + "06": "Июнь", + "07": "Июль", + "08": "Август", + "09": "Сентябрь", + "10": "Октябрь", + "11": "Ноябрь", + "12": "Декабрь", + } + + # Timezone names are based on Wiki list, source: https://ru.wikipedia.org/wiki/Список_часовых_поясов_по_странам + countries = [ + Country( + timezones=["Андорра (UTC+01)"], + alpha_2_code="AD", + alpha_3_code="AND", + continent="Европа", + name="Андорра", + capital="Андорра-ла-Велья", + ), + Country( + timezones=["Афганистан (UTC+04:30)"], + alpha_2_code="AF", + alpha_3_code="AFG", + continent="Азия", + name="Афганистан", + capital="Кабул", + ), + Country( + timezones=["Антигуа и Барбуда (UTC-04)"], + alpha_2_code="AG", + alpha_3_code="ATG", + continent="Северная Америка", + name="Антигуа и Барбуда", + capital="Сент-Джонс", + ), + Country( + timezones=["Албания (UTC+01)"], + alpha_2_code="AL", + alpha_3_code="ALB", + continent="Европа", + name="Албания", + capital="Тирана", + ), + Country( + timezones=["Армения (UTC+04)"], + alpha_2_code="AM", + alpha_3_code="ARM", + continent="Азия", + name="Армения", + capital="Ереван", + ), + Country( + timezones=["Ангола (UTC+01)"], + alpha_2_code="AO", + alpha_3_code="AGO", + continent="Африка", + name="Ангола", + capital="Луанда", + ), + Country( + timezones=["Аргентина (UTC-03)"], + alpha_2_code="AR", + alpha_3_code="ARG", + continent="Южная Америка", + name="Аргентина", + capital="Буэнос Айрес", + ), + Country( + timezones=["Австрия (UTC+01)"], + alpha_2_code="AT", + alpha_3_code="AUT", + continent="Европа", + name="Австрия", + capital="Вена", + ), + Country( + timezones=[ + "Австралия (UTC+05)", + "Австралия (UTC+06:30)", + "Австралия (UTC+07)", + "Австралия (UTC+08)", + "Австралия (UTC+9:30)", + "Австралия (UTC+10)", + "Австралия (UTC+10:30)", + "Австралия (UTC+11:30)", + ], + alpha_2_code="AU", + alpha_3_code="AUS", + continent="Океания", + name="Австралия", + capital="Канберра", + ), + Country( + timezones=["Азербайджан (UTC+04)"], + alpha_2_code="AZ", + alpha_3_code="AZE", + continent="Азия", + name="Азербайджан", + capital="Баку", + ), + Country( + timezones=["Барбадос (UTC-04)"], + alpha_2_code="BB", + alpha_3_code="BRB", + continent="Северная Америка", + name="Барбадос", + capital="Бриджтаун", + ), + Country( + timezones=["Бангладеш (UTC+06)"], + alpha_2_code="BD", + alpha_3_code="BGD", + continent="Азия", + name="Бангладеш", + capital="Дака", + ), + Country( + timezones=["Бельгия (UTC+01)"], + alpha_2_code="BE", + alpha_3_code="BEL", + continent="Европа", + name="Бельгия", + capital="Брюссель", + ), + Country( + timezones=["Буркина-Фасо (UTC)"], + alpha_2_code="BF", + alpha_3_code="BFA", + continent="Африка", + name="Буркина-Фасо", + capital="Уагадугу", + ), + Country( + timezones=["Болгария (UTC+02)"], + alpha_2_code="BG", + alpha_3_code="BGR", + continent="Европа", + name="Болгария", + capital="София", + ), + Country( + timezones=["Бахрейн (UTC+03)"], + alpha_2_code="BH", + alpha_3_code="BHR", + continent="Азия", + name="Бахрейн", + capital="Манама", + ), + Country( + timezones=["Бурунди (UTC+02)"], + alpha_2_code="BI", + alpha_3_code="BDI", + continent="Африка", + name="Бурунди", + capital="Гитега", + ), + Country( + timezones=["Бенин (UTC+01)"], + alpha_2_code="BJ", + alpha_3_code="BEN", + continent="Африка", + name="Бенин", + capital="Порто-Ново", + ), + Country( + timezones=["Бруней (UTC+08)"], + alpha_2_code="BN", + alpha_3_code="BRN", + continent="Азия", + name="Бруней", + capital="Бандар-Сери-Бегаван", + ), + Country( + timezones=["Боливия (UTC-04)"], + alpha_2_code="BO", + alpha_3_code="BOL", + continent="Южная Америка", + name="Боливия", + capital="Сукре", + ), + Country( + timezones=[ + "Бразилия (UTC-05)", + "Бразилия (UTC-04)", + "Бразилия (UTC-03)", + "Бразилия (UTC-02)", + ], + alpha_2_code="BR", + alpha_3_code="BRA", + continent="Южная Америка", + name="Бразилия", + capital="Бразилиа", + ), + Country( + timezones=["Багамские Острова (UTC-05)"], + alpha_2_code="BS", + alpha_3_code="BHS", + continent="Северная Америка", + name="Багамские Острова", + capital="Нассау", + ), + Country( + timezones=["Бутан (UTC+06)"], + alpha_2_code="BT", + alpha_3_code="BTN", + continent="Азия", + name="Бутан", + capital="Тхимпху", + ), + Country( + timezones=["Ботсвана (UTC+02)"], + alpha_2_code="BW", + alpha_3_code="BWA", + continent="Африка", + name="Ботсвана", + capital="Габороне", + ), + Country( + timezones=["Белоруссия (UTC+03)"], + alpha_2_code="BY", + alpha_3_code="BLR", + continent="Европа", + name="Белоруссия", + capital="Минск", + ), + Country( + timezones=["Белиз (UTC-06)"], + alpha_2_code="BZ", + alpha_3_code="BLZ", + continent="Северная Америка", + name="Белиз", + capital="Бельмопан", + ), + Country( + timezones=[ + "Канада (UTC-08)", + "Канада (UTC-07)", + "Канада (UTC-06)", + "Канада (UTC-05)", + "Канада (UTC-04)", + "Канада (UTC-03:30)", + ], + alpha_2_code="CA", + alpha_3_code="CAN", + continent="Северная Америка", + name="Канада", + capital="Оттава", + ), + Country( + timezones=[ + "Демократическая Республика Конго (UTC+01)", + "Демократическая Республика Конго (UTC+02)", + ], + alpha_2_code="CD", + alpha_3_code="COD", + continent="Африка", + name="Демократическая Республика Конго", + capital="Киншаса", + ), + Country( + timezones=["Республика Конго (UTC+01)"], + alpha_2_code="CG", + alpha_3_code="COG", + continent="Африка", + name="Руспублика Конго", + capital="Браззавиль", + ), + Country( + timezones=["Кот-д'Ивуар (UTC)"], + alpha_2_code="CI", + alpha_3_code="CIV", + continent="Африка", + name="Кот-д'Ивуар", + capital="Ямусукро", + ), + Country( + timezones=["Чили (UTC-06)", "Чили (UTC-04)"], + alpha_2_code="CL", + alpha_3_code="CHL", + continent="Южная Америка", + name="Чили", + capital="Сантьяго", + ), + Country( + timezones=["Камерун (UTC+01)"], + alpha_2_code="CM", + alpha_3_code="CMR", + continent="Африка", + name="Камерун", + capital="Яунде", + ), + Country( + timezones=["Китай (UTC+08)"], + alpha_2_code="CN", + alpha_3_code="CHN", + continent="Азия", + name="Китайская Народная Республика", + capital="Пекин", + ), + Country( + timezones=["Колумбия (UTC-05)"], + alpha_2_code="CO", + alpha_3_code="COL", + continent="Южная Америка", + name="Колумбия", + capital="Богота", + ), + Country( + timezones=["Коста-Рика (UTC-06)"], + alpha_2_code="CR", + alpha_3_code="CRI", + continent="Северная Америка", + name="Коста-Рика", + capital="Сан-Хосе", + ), + Country( + timezones=["Куба (UTC-05)"], + alpha_2_code="CU", + alpha_3_code="CUB", + continent="Северная Америка", + name="Куба", + capital="Гавана", + ), + Country( + timezones=["Кабо-Верде (UTC-01)"], + alpha_2_code="CV", + alpha_3_code="CPV", + continent="Африка", + name="Кабо-Верде", + capital="Прая", + ), + Country( + timezones=["Кипр (UTC+02)"], + alpha_2_code="CY", + alpha_3_code="CYP", + continent="Азия", + name="Кипр", + capital="Никосия", + ), + Country( + timezones=["Чехия (UTC+01)"], + alpha_2_code="CZ", + alpha_3_code="CZE", + continent="Европа", + name="Чехия", + capital="Прага", + ), + Country( + timezones=["Германия (UTC+01)"], + alpha_2_code="DE", + alpha_3_code="DEU", + continent="Европа", + name="Германия", + capital="Берлин", + ), + Country( + timezones=["Джибути (UTC+03)"], + alpha_2_code="DJ", + alpha_3_code="DJI", + continent="Африка", + name="Джибути", + capital="Джибути", + ), + Country( + timezones=["Дания (UTC+01)"], + alpha_2_code="DK", + alpha_3_code="DNK", + continent="Европа", + name="Дания", + capital="Копенгаген", + ), + Country( + timezones=["Доминика (UTC-04)"], + alpha_2_code="DM", + alpha_3_code="DMA", + continent="Северная Америка", + name="Доминика", + capital="Розо", + ), + Country( + timezones=["Доминиканская Республика (UTC-04)"], + alpha_2_code="DO", + alpha_3_code="DOM", + continent="Северная Америка", + name="Доминиканская Республика", + capital="Санто-Доминго", + ), + Country( + timezones=["Эквадор (UTC-06)", "Эквадор (UTC-05)"], + alpha_2_code="EC", + alpha_3_code="ECU", + continent="Южная Америка", + name="Эквадор", + capital="Кито", + ), + Country( + timezones=["Эстония (UTC+02)"], + alpha_2_code="EE", + alpha_3_code="EST", + continent="Европа", + name="Эстония", + capital="Таллинн", + ), + Country( + timezones=["Египет (UTC+02)"], + alpha_2_code="EG", + alpha_3_code="EGY", + continent="Африка", + name="Египет", + capital="Каир", + ), + Country( + timezones=["Эритрея (UTC+03)"], + alpha_2_code="ER", + alpha_3_code="ERI", + continent="Африка", + name="Эритрея", + capital="Асмэра", + ), + Country( + timezones=["Эфиопия (UTC+03)"], + alpha_2_code="ET", + alpha_3_code="ETH", + continent="Африка", + name="Эфиопия", + capital="Аддис-Абеба", + ), + Country( + timezones=["Финляндия (UTC+02)"], + alpha_2_code="FI", + alpha_3_code="FIN", + continent="Европа", + name="Финляндия", + capital="Хельсинки", + ), + Country( + timezones=["Фиджи (UTC+12)"], + alpha_2_code="FJ", + alpha_3_code="FJI", + continent="Океания", + name="Фиджи", + capital="Сува", + ), + Country( + timezones=["Франция (UTC+01)"], + alpha_2_code="FR", + alpha_3_code="FRA", + continent="Европа", + name="Франция", + capital="Париж", + ), + Country( + timezones=["Габон (UTC+01)"], + alpha_2_code="GA", + alpha_3_code="GAB", + continent="Африка", + name="Габон", + capital="Либревиль", + ), + Country( + timezones=["Грузия (UTC+04)"], + alpha_2_code="GE", + alpha_3_code="GEO", + continent="Азия", + name="Грузия", + capital="Тбилиси", + ), + Country( + timezones=["Гана (UTC)"], + alpha_2_code="GH", + alpha_3_code="GHA", + continent="Африка", + name="Гана", + capital="Аккра", + ), + Country( + timezones=["Гамбия (UTC)"], + alpha_2_code="GM", + alpha_3_code="GMB", + continent="Африка", + name="Гамбия", + capital="Банджул", + ), + Country( + timezones=["Гвинея (UTC)"], + alpha_2_code="GN", + alpha_3_code="GIN", + continent="Африка", + name="Гвинея", + capital="Конакри", + ), + Country( + timezones=["Греция (UTC+02)"], + alpha_2_code="GR", + alpha_3_code="GRC", + continent="Европа", + name="Греция", + capital="Афины", + ), + Country( + timezones=["Гватемала (UTC-06)"], + alpha_2_code="GT", + alpha_3_code="GTM", + continent="Северная Америка", + name="Гватемала", + capital="Гватемала", + ), + Country( + timezones=["Гаити (UTC-05)"], + alpha_2_code="HT", + alpha_3_code="HTI", + continent="Северная Америка", + name="Гаити", + capital="Порт-о-Пренс", + ), + Country( + timezones=["Гвинея-Бисау (UTC)"], + alpha_2_code="GW", + alpha_3_code="GNB", + continent="Африка", + name="Гвинея-Бисау", + capital="Бисау", + ), + Country( + timezones=["Гайана (UTC-04)"], + alpha_2_code="GY", + alpha_3_code="GUY", + continent="Южная Америка", + name="Гайана", + capital="Джорджтаун", + ), + Country( + timezones=["Гондурас (UTC-06)"], + alpha_2_code="HN", + alpha_3_code="HND", + continent="Северная Америка", + name="Гондурас", + capital="Тегусигальпа", + ), + Country( + timezones=["Венгрия (UTC+01)"], + alpha_2_code="HU", + alpha_3_code="HUN", + continent="Европа", + name="Венгрия", + capital="Будапешт", + ), + Country( + timezones=[ + "Индонезия (UTC+07)", + "Индонезия (UTC+08)", + "Индонезия (UTC+09)", + ], + alpha_2_code="ID", + alpha_3_code="IDN", + continent="Азия", + name="Индонезия", + capital="Джакарта", + ), + Country( + timezones=["Ирландия (UTC)"], + alpha_2_code="IE", + alpha_3_code="IRL", + continent="Европа", + name="Ирландия", + capital="Дублин", + ), + Country( + timezones=["Израиль (UTC+02)"], + alpha_2_code="IL", + alpha_3_code="ISR", + continent="Азия", + name="Израиль", + capital="Иерусалим", + ), + Country( + timezones=["Индия (UTC+05:30"], + alpha_2_code="IN", + alpha_3_code="IND", + continent="Азия", + name="Индия", + capital="Дели", + ), + Country( + timezones=["Ирак (UTC+03)"], + alpha_2_code="IQ", + alpha_3_code="IRQ", + continent="Азия", + name="Ирак", + capital="Багдад", + ), + Country( + timezones=["Иран (UTC+03:30)"], + alpha_2_code="IR", + alpha_3_code="IRN", + continent="Азия", + name="Иран", + capital="Тегеран", + ), + Country( + timezones=["Исландия (UTC)"], + alpha_2_code="IS", + alpha_3_code="ISL", + continent="Европа", + name="Исландия", + capital="Рейкьявик", + ), + Country( + timezones=["Италия (UTC+01)"], + alpha_2_code="IT", + alpha_3_code="ITA", + continent="Европа", + name="Италия", + capital="Рим", + ), + Country( + timezones=["Ямайка (UTC-05)"], + alpha_2_code="JM", + alpha_3_code="JAM", + continent="Северная Америка", + name="Ямайка", + capital="Кингстон", + ), + Country( + timezones=["Иордания (UTC+02)"], + alpha_2_code="JO", + alpha_3_code="JOR", + continent="Азия", + name="Иордания", + capital="Амман", + ), + Country( + timezones=["Япония (UTC+09)"], + alpha_2_code="JP", + alpha_3_code="JPN", + continent="Азия", + name="Япония", + capital="Токио", + ), + Country( + timezones=["Кения (UTC+03)"], + alpha_2_code="KE", + alpha_3_code="KEN", + continent="Африка", + name="Кения", + capital="Найроби", + ), + Country( + timezones=["Киргизия (UTC+06)"], + alpha_2_code="KG", + alpha_3_code="KGZ", + continent="Азия", + name="Киргизия", + capital="Бишкек", + ), + Country( + timezones=[ + "Кирибати (UTC+12)", + "Кирибати (UTC+13)", + "Кирибати (UTC+14)", + ], + alpha_2_code="KI", + alpha_3_code="KIR", + continent="Океания", + name="Кирибати", + capital="Южная Тарава", + ), + Country( + timezones=["КНДР (UTC+09)"], + alpha_2_code="KP", + alpha_3_code="PRK", + continent="Азия", + name="КНДР", + capital="Пхеньян", + ), + Country( + timezones=["Республика Корея (UTC+09)"], + alpha_2_code="KR", + alpha_3_code="KOR", + continent="Азия", + name="Республика Корея", + capital="Сеул", + ), + Country( + timezones=["Кувейт (UTC+03)"], + alpha_2_code="KW", + alpha_3_code="KWT", + continent="Азия", + name="Кувейт", + capital="Эль-Кувейт", + ), + Country( + timezones=["Ливан (UTC+02)"], + alpha_2_code="LB", + alpha_3_code="LBN", + continent="Азия", + name="Ливан", + capital="Бейрут", + ), + Country( + timezones=["Лихтенштейн (UTC+01)"], + alpha_2_code="LI", + alpha_3_code="LIE", + continent="Европа", + name="Лихтенштейн", + capital="Вадуц", + ), + Country( + timezones=["Либерия (UTC)"], + alpha_2_code="LR", + alpha_3_code="LBR", + continent="Африка", + name="Либерия", + capital="Монровия", + ), + Country( + timezones=["Лесото (UTC+02)"], + alpha_2_code="LS", + alpha_3_code="LSO", + continent="Африка", + name="Лесото", + capital="Масеру", + ), + Country( + timezones=["Литва (UTC+02)"], + alpha_2_code="LT", + alpha_3_code="LTU", + continent="Европа", + name="Литва", + capital="Вильнюс", + ), + Country( + timezones=["Люксембург (UTC+01)"], + alpha_2_code="LU", + alpha_3_code="LUX", + continent="Европа", + name="Люксембург", + capital="Люксембург", + ), + Country( + timezones=["Латвия (UTC+02)"], + alpha_2_code="LV", + alpha_3_code="LVA", + continent="Европа", + name="Латвия", + capital="Рига", + ), + Country( + timezones=["Ливия (UTC+02)"], + alpha_2_code="LY", + alpha_3_code="LBY", + continent="Африка", + name="Ливия", + capital="Триполи", + ), + Country( + timezones=["Мадагаскар (UTC+03)"], + alpha_2_code="MG", + alpha_3_code="MDG", + continent="Африка", + name="Мадагаскар", + capital="Антананариву", + ), + Country( + timezones=["Маршалловы Острова (UTC+12)"], + alpha_2_code="MH", + alpha_3_code="MHL", + continent="Океания", + name="Маршалловы Острова", + capital="Маджуро", + ), + Country( + timezones=["Северная Македония (UTC+01)"], + alpha_2_code="MK", + alpha_3_code="MKD", + continent="Европа", + name="Северная Македония", + capital="Скопье", + ), + Country( + timezones=["Мали (UTC)"], + alpha_2_code="ML", + alpha_3_code="MLI", + continent="Африка", + name="Мали", + capital="Бамако", + ), + Country( + timezones=["Мьянма (UTC+06:30)"], + alpha_2_code="MM", + alpha_3_code="MMR", + continent="Азия", + name="Мьянма", + capital="Нейпьидо", + ), + Country( + timezones=["Монголия (UTC+07)", "Монголия (UTC+08)"], + alpha_2_code="MN", + alpha_3_code="MNG", + continent="Азия", + name="Монголия", + capital="Улан-Батор", + ), + Country( + timezones=["Мавритания (UTC)"], + alpha_2_code="MR", + alpha_3_code="MRT", + continent="Африка", + name="Мавритания", + capital="Нуакшот", + ), + Country( + timezones=["Мальта (UTC+01)"], + alpha_2_code="MT", + alpha_3_code="MLT", + continent="Европа", + name="Мальта", + capital="Валлетта", + ), + Country( + timezones=["Маврикий (UTC+04)"], + alpha_2_code="MU", + alpha_3_code="MUS", + continent="Африка", + name="Маврикий", + capital="Порт-Луи", + ), + Country( + timezones=["Мальдивы (UTC+05)"], + alpha_2_code="MV", + alpha_3_code="MDV", + continent="Азия", + name="Мальдивы", + capital="Мале", + ), + Country( + timezones=["Малави (UTC+02)"], + alpha_2_code="MW", + alpha_3_code="MWI", + continent="Африка", + name="Малави", + capital="Лилонгве", + ), + Country( + timezones=["Мексика (UTC-08)", "Мексика (UTC-07)", "Мексика (UTC-06)"], + alpha_2_code="MX", + alpha_3_code="MEX", + continent="Северная Америка", + name="Мексика", + capital="Мехико", + ), + Country( + timezones=["Малайзия (UTC+08)"], + alpha_2_code="MY", + alpha_3_code="MYS", + continent="Азия", + name="Малайзия", + capital="Куала-Лумпур", + ), + Country( + timezones=["Мозамбик (UTC+02)"], + alpha_2_code="MZ", + alpha_3_code="MOZ", + continent="Африка", + name="Мозамбик", + capital="Мапуту", + ), + Country( + timezones=["Намибия (UTC+01)"], + alpha_2_code="NA", + alpha_3_code="NAM", + continent="Африка", + name="Намибия", + capital="Виндхук", + ), + Country( + timezones=["Нигер (UTC+01)"], + alpha_2_code="NE", + alpha_3_code="NER", + continent="Африка", + name="Нигер", + capital="Ниамей", + ), + Country( + timezones=["Нигерия (UTC+01)"], + alpha_2_code="NG", + alpha_3_code="NGA", + continent="Африка", + name="Нигерия", + capital="Абуджа", + ), + Country( + timezones=["Никарагуа (UTC-06)"], + alpha_2_code="NI", + alpha_3_code="NIC", + continent="Северная Америка", + name="Никарагуа", + capital="Манагуа", + ), + Country( + timezones=["Нидерланды (UTC+01)"], + alpha_2_code="NL", + alpha_3_code="NLD", + continent="Европа", + name="Нидерланды", + capital="Амстердам", + ), + Country( + timezones=["Норвегия (UTC+01)"], + alpha_2_code="NO", + alpha_3_code="NOR", + continent="Европа", + name="Норвегия", + capital="Осло", + ), + Country( + timezones=["Непал (UTC+05:45"], + alpha_2_code="NP", + alpha_3_code="NPL", + continent="Азия", + name="Непал", + capital="Катманду", + ), + Country( + timezones=["Науру (UTC+12)"], + alpha_2_code="NR", + alpha_3_code="NRU", + continent="Океания", + name="Науру", + capital="Ярен", + ), + Country( + timezones=["Новая Зеландия (UTC+12)"], + alpha_2_code="NZ", + alpha_3_code="NZL", + continent="Океания", + name="Новая Зеландия", + capital="Веллингтон", + ), + Country( + timezones=["Оман (UTC+04"], + alpha_2_code="OM", + alpha_3_code="OMN", + continent="Азия", + name="Оман", + capital="Маскат", + ), + Country( + timezones=["Панама (UTC-05)"], + alpha_2_code="PA", + alpha_3_code="PAN", + continent="Северная Америка", + name="Панама", + capital="Панама", + ), + Country( + timezones=["Перу (UTC-05)"], + alpha_2_code="PE", + alpha_3_code="PER", + continent="Южная Америка", + name="Перу", + capital="Лима", + ), + Country( + timezones=["Папуа - Новая Гвинея (UTC+10)"], + alpha_2_code="PG", + alpha_3_code="PNG", + continent="Океания", + name="Папуа - Новая Гвинея", + capital="Порт-Морсби", + ), + Country( + timezones=["Филиппины (UTC+08)"], + alpha_2_code="PH", + alpha_3_code="PHL", + continent="Азия", + name="Филиппины", + capital="Манила", + ), + Country( + timezones=["Пакистан (UTC+05)"], + alpha_2_code="PK", + alpha_3_code="PAK", + continent="Азия", + name="Пакистан", + capital="Исламабад", + ), + Country( + timezones=["Польша (UTC+01)"], + alpha_2_code="PL", + alpha_3_code="POL", + continent="Европа", + name="Польша", + capital="Варшава", + ), + Country( + timezones=["Португалия (UTC)"], + alpha_2_code="PT", + alpha_3_code="PRT", + continent="Европа", + name="Португалия", + capital="Лиссабон", + ), + Country( + timezones=["Палау (UTC+09)"], + alpha_2_code="PW", + alpha_3_code="PLW", + continent="Океания", + name="Палау", + capital="Кампала", + ), + Country( + timezones=["Парагвай (UTC-04)"], + alpha_2_code="PY", + alpha_3_code="PRY", + continent="Южная Америка", + name="Парагвай", + capital="Асунсьон", + ), + Country( + timezones=["Катар (UTC+03)"], + alpha_2_code="QA", + alpha_3_code="QAT", + continent="Азия", + name="Катар", + capital="Доха", + ), + Country( + timezones=["Румыния (UTC+02)"], + alpha_2_code="RO", + alpha_3_code="ROU", + continent="Европа", + name="Румыния", + capital="Бухарест", + ), + Country( + timezones=[ + "Россия (UTC+02)", + "Россия (UTC+03)", + "Россия (UTC+04)", + "Россия (UTC+05)", + "Россия (UTC+06)", + "Россия (UTC+07)", + "Россия (UTC+08)", + "Россия (UTC+09)", + "Россия (UTC+10)", + "Россия (UTC+11)", + "Россия (UTC+12)", + ], + alpha_2_code="RU", + alpha_3_code="RUS", + continent="Европа", + name="Россия", + capital="Москва", + ), + Country( + timezones=["Руанда (UTC+02)"], + alpha_2_code="RW", + alpha_3_code="RWA", + continent="Африка", + name="Руанда", + capital="Кигали", + ), + Country( + timezones=["Саудовская Аравия (UTC+03)"], + alpha_2_code="SA", + alpha_3_code="SAU", + continent="Азия", + name="Саудовская Аравия", + capital="Эр-Рияд", + ), + Country( + timezones=["Соломоновы Острова (UTC+11)"], + alpha_2_code="SB", + alpha_3_code="SLB", + continent="Океания", + name="Соломоновы Острова", + capital="Хониара", + ), + Country( + timezones=["Сейшельские острова (UTC+04)"], + alpha_2_code="SC", + alpha_3_code="SYC", + continent="Африка", + name="Сейшельские острова", + capital="Виктория", + ), + Country( + timezones=["Судан (UTC+03)"], + alpha_2_code="SD", + alpha_3_code="SDN", + continent="Африка", + name="Судан", + capital="Хартум", + ), + Country( + timezones=["Швеция (UTC+01)"], + alpha_2_code="SE", + alpha_3_code="SWE", + continent="Европа", + name="Швеци", + capital="Стокгольм", + ), + Country( + timezones=["Сингапур (UTC+08)"], + alpha_2_code="SG", + alpha_3_code="SGP", + continent="Азия", + name="Сингапур", + capital="Сингапур", + ), + Country( + timezones=["Словения (UTC+01)"], + alpha_2_code="SI", + alpha_3_code="SVN", + continent="Европа", + name="Словения", + capital="Любляна", + ), + Country( + timezones=["Словакия (UTC+01)"], + alpha_2_code="SK", + alpha_3_code="SVK", + continent="Европа", + name="Словакия", + capital="Братислава", + ), + Country( + timezones=["Сьерра-Леоне (UTC)"], + alpha_2_code="SL", + alpha_3_code="SLE", + continent="Африка", + name="Сьерра Леоне", + capital="Фритаун", + ), + Country( + timezones=["Сан-Марино (UTC+01)"], + alpha_2_code="SM", + alpha_3_code="SMR", + continent="Европа", + name="Сан-Марино", + capital="Сан-Марино", + ), + Country( + timezones=["Сенегал (UTC)"], + alpha_2_code="SN", + alpha_3_code="SEN", + continent="Африка", + name="Сенегал", + capital="Дакар", + ), + Country( + timezones=["Сомали (UTC+03)"], + alpha_2_code="SO", + alpha_3_code="SOM", + continent="Африка", + name="Сомали", + capital="Могадишо", + ), + Country( + timezones=["Суринам (UTC-03)"], + alpha_2_code="SR", + alpha_3_code="SUR", + continent="Южная Америка", + name="Суринам", + capital="Парамарибо", + ), + Country( + timezones=["Сан-Томе и Принсипи (UTC)"], + alpha_2_code="ST", + alpha_3_code="STP", + continent="Африка", + name="Сан-Томе и Принсипи", + capital="Сан-Томе", + ), + Country( + timezones=["Сирия (UTC+02)"], + alpha_2_code="SY", + alpha_3_code="SYR", + continent="Азия", + name="Сирия", + capital="Дамаск", + ), + Country( + timezones=["Того (UTC)"], + alpha_2_code="TG", + alpha_3_code="TGO", + continent="Африка", + name="Того", + capital="Ломе", + ), + Country( + timezones=["Таиланд (UTC+07)"], + alpha_2_code="TH", + alpha_3_code="THA", + continent="Азия", + name="Таиланд", + capital="Бангкок", + ), + Country( + timezones=["Таджикистан (UTC+05)"], + alpha_2_code="TJ", + alpha_3_code="TJK", + continent="Азия", + name="Таджикистан", + capital="Душанбе", + ), + Country( + timezones=["Туркмения (UTC+05)"], + alpha_2_code="TM", + alpha_3_code="TKM", + continent="Азия", + name="Туркмения", + capital="Ашхабад", + ), + Country( + timezones=["Тунис (UTC+01)"], + alpha_2_code="TN", + alpha_3_code="TUN", + continent="Африка", + name="Тунис", + capital="Тунис", + ), + Country( + timezones=["Тонга (UTC+13)"], + alpha_2_code="TO", + alpha_3_code="TON", + continent="Океания", + name="Тонга", + capital="Нукуалофа", + ), + Country( + timezones=["Турция (UTC+02)"], + alpha_2_code="TR", + alpha_3_code="TUR", + continent="Азия", + name="Турция", + capital="Анкара", + ), + Country( + timezones=["Тринидад и Тобаго (UTC-04)"], + alpha_2_code="TT", + alpha_3_code="TTO", + continent="Северная Америка", + name="Тринидад и Тобаго", + capital="Порт-оф-Спейн", + ), + Country( + timezones=["Тувалу (UTC+12)"], + alpha_2_code="TV", + alpha_3_code="TUV", + continent="Океания", + name="Тувалу", + capital="Фунафути", + ), + Country( + timezones=["Танзания (UTC+03)"], + alpha_2_code="TZ", + alpha_3_code="TZA", + continent="Африка", + name="Танзания", + capital="Додома", + ), + Country( + timezones=["Украина (UTC+02)", "Украина (UTC+03)"], + alpha_2_code="UA", + alpha_3_code="UKR", + continent="Европа", + name="Украина", + capital="Киев", + ), + Country( + timezones=["Уганда (UTC+03)"], + alpha_2_code="UG", + alpha_3_code="UGA", + continent="Африка", + name="Уганда", + capital="Кампала", + ), + Country( + timezones=[ + "США (UTC-11)", + "США (UTC-10)", + "США (UTC-09)", + "США (UTC-08)", + "США (UTC-07)", + "США (UTC-06)", + "США (UTC-05)", + "США (UTC-04)", + "США (UTC+10)", + ], + alpha_2_code="US", + alpha_3_code="USA", + continent="Северная Америка", + name="США", + capital="Вашингтон", + ), + Country( + timezones=["Уругвай (UTC-03)"], + alpha_2_code="UY", + alpha_3_code="URY", + continent="Южная Америка", + name="Уругвай", + capital="Монтевидео", + ), + Country( + timezones=["Узбекистан (UTC+05)"], + alpha_2_code="UZ", + alpha_3_code="UZB", + continent="Азия", + name="Узбекистан", + capital="Ташкент", + ), + Country( + timezones=["Ватикан (UTC+01)"], + alpha_2_code="VA", + alpha_3_code="VAT", + continent="Европа", + name="Ватикан", + capital="Ватикан", + ), + Country( + timezones=["Венесуэла (UTC-04:30)"], + alpha_2_code="VE", + alpha_3_code="VEN", + continent="Южная Америка", + name="Венесуэла", + capital="Каракас", + ), + Country( + timezones=["Вьетнам (UTC+07)"], + alpha_2_code="VN", + alpha_3_code="VNM", + continent="Азия", + name="Вьетнам", + capital="Ханой", + ), + Country( + timezones=["Вануату (UTC+11)"], + alpha_2_code="VU", + alpha_3_code="VUT", + continent="Океания", + name="Вануату", + capital="Порт-Вила", + ), + Country( + timezones=["Йемен (UTC+03)"], + alpha_2_code="YE", + alpha_3_code="YEM", + continent="Азия", + name="Йемен", + capital="Сана", + ), + Country( + timezones=["Замбия (UTC+02)"], + alpha_2_code="ZM", + alpha_3_code="ZMB", + continent="Африка", + name="Замбия", + capital="Лусака", + ), + Country( + timezones=["Зимбабве (UTC+02)"], + alpha_2_code="ZW", + alpha_3_code="ZWE", + continent="Африка", + name="Зимбабве", + capital="Хараре", + ), + Country( + timezones=["Алжир (UTC+01)"], + alpha_2_code="DZ", + alpha_3_code="DZA", + continent="Африка", + name="Алжир", + capital="Алжир", + ), + Country( + timezones=["Босния и Герцеговина (UTC+01)"], + alpha_2_code="BA", + alpha_3_code="BIH", + continent="Европа", + name="Босния и Герцеговина", + capital="Сараево", + ), + Country( + timezones=["Камбоджа (UTC+07)"], + alpha_2_code="KH", + alpha_3_code="KHM", + continent="Азия", + name="Камбоджа", + capital="Пномпень", + ), + Country( + timezones=["ЦАР (UTC+01)"], + alpha_2_code="CF", + alpha_3_code="CAF", + continent="Африка", + name="ЦАР", + capital="Банги", + ), + Country( + timezones=["Чад (UTC+01)"], + alpha_2_code="TD", + alpha_3_code="TCD", + continent="Африка", + name="Чад", + capital="Нджамена", + ), + Country( + timezones=["Коморы (UTC+03)"], + alpha_2_code="KM", + alpha_3_code="COM", + continent="Африка", + name="Коморы", + capital="Морони", + ), + Country( + timezones=["Хорватия (UTC+01)"], + alpha_2_code="HR", + alpha_3_code="HRV", + continent="Европа", + name="Хорватия", + capital="Загреб", + ), + Country( + timezones=["Восточный Тимор (UTC+09)"], + alpha_2_code="TL", + alpha_3_code="TLS", + continent="Азия", + name="Восточный Тимор", + capital="Дили", + ), + Country( + timezones=["Сальвадор (UTC-06)"], + alpha_2_code="SV", + alpha_3_code="SLV", + continent="Северная Америка", + name="Сальвадор", + capital="Сан-Сальвадор", + ), + Country( + timezones=["Экваториальная Гвинея (UTC+01)"], + alpha_2_code="GQ", + alpha_3_code="GNQ", + continent="Африка", + name="Экваториальная Гвинея", + capital="Малабо", + ), + Country( + timezones=["Гренада (UTC-04)"], + alpha_2_code="GD", + alpha_3_code="GRD", + continent="Северная Америка", + name="Гренада", + capital="Сент-Джорджес", + ), + Country( + timezones=["Казахстан (UTC+05)", "Казахстан (UTC+06)"], + alpha_2_code="KZ", + alpha_3_code="KAZ", + continent="Азия", + name="Казахстан", + capital="Нур-Султан (Астана)", + ), + Country( + timezones=["Лаос (UTC+07)"], + alpha_2_code="LA", + alpha_3_code="LAO", + continent="Азия", + name="Лаос", + capital="Вьентьян", + ), + Country( + timezones=["Микронезия (UTC+10)", "Микронезия (UTC+11)"], + alpha_2_code="FM", + alpha_3_code="FSM", + continent="Океания", + name="Микронезия", + capital="Паликир", + ), + Country( + timezones=["Молдавия (UTC+02)"], + alpha_2_code="MD", + alpha_3_code="MDA", + continent="Европа", + name="Молдавия", + capital="Кишинев", + ), + Country( + timezones=["Монако (UTC+01)"], + alpha_2_code="MC", + alpha_3_code="MCO", + continent="Европа", + name="Монако", + capital="Монако", + ), + Country( + timezones=["Черногория (UTC+01)"], + alpha_2_code="ME", + alpha_3_code="MNE", + continent="Европа", + name="Черногория", + capital="Подгорица", + ), + Country( + timezones=["Марокко (UTC)"], + alpha_2_code="MA", + alpha_3_code="MAR", + continent="Африка", + name="Марокко", + capital="Рабат", + ), + Country( + timezones=["Сент-Китс и Невис (UTC-04)"], + alpha_2_code="KN", + alpha_3_code="KNA", + continent="Северная Америка", + name="Сент-Китс и Невис", + capital="Бастер", + ), + Country( + timezones=["Сент-Люсия (UTC-04)"], + alpha_2_code="LC", + alpha_3_code="LCA", + continent="Северная Америка", + name="Сент-Люсия", + capital="Кастри", + ), + Country( + timezones=["Сент-Винсент и Гренадины (UTC-04)"], + alpha_2_code="VC", + alpha_3_code="VCT", + continent="Северная Америка", + name="Сент-Винсент и Гренадины", + capital="Кингстаун", + ), + Country( + timezones=["Самоа (UTC+13)"], + alpha_2_code="WS", + alpha_3_code="WSM", + continent="Океания", + name="Самоа", + capital="Апиа", + ), + Country( + timezones=["Сербия (UTC+01)"], + alpha_2_code="RS", + alpha_3_code="SRB", + continent="Европа", + name="Сербия", + capital="Белград", + ), + Country( + timezones=["ЮАР (UTC+02)"], + alpha_2_code="ZA", + alpha_3_code="ZAF", + continent="Африка", + name="ЮАР", + capital="Претория", + ), + Country( + timezones=["Испания (UTC)", "Испания (UTC+01)"], + alpha_2_code="ES", + alpha_3_code="ESP", + continent="Европа", + name="Испания", + capital="Мадрид", + ), + Country( + timezones=["Шри-Ланка (UTC+05:30)"], + alpha_2_code="LK", + alpha_3_code="LKA", + continent="Азия", + name="Шри-Ланка", + capital="Шри-Джаяварденепура-Котте", + ), + Country( + timezones=["Эсватини (Свазиленд) (UTC+02)"], + alpha_2_code="SZ", + alpha_3_code="SWZ", + continent="Африка", + name="Эсватини (Свазиленд)", + capital="Мбабане", + ), + Country( + timezones=["Швейцария (UTC+01)"], + alpha_2_code="CH", + alpha_3_code="CHE", + continent="Европа", + name="Швейцария", + capital="Берн", + ), + Country( + timezones=["ОАЭ (UTC+04)"], + alpha_2_code="AE", + alpha_3_code="ARE", + continent="Азия", + name="ОАЭ", + capital="Абу-Даби", + ), + Country( + timezones=["Великобритания (UTC)"], + alpha_2_code="GB", + alpha_3_code="GBR", + continent="Европа", + name="Великобритания", + capital="Лондон", + ), + ] + + def day_of_week(self) -> str: + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self) -> str: + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/ru_RU/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/ru_RU/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..cbb2366 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/ru_RU/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/sk_SK/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/sk_SK/__init__.py new file mode 100644 index 0000000..f7f9755 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/sk_SK/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "nedeľa", + "1": "pondelok", + "2": "utorok", + "3": "streda", + "4": "štvrtok", + "5": "piatok", + "6": "sobota", + } + + MONTH_NAMES = { + "01": "január", + "02": "február", + "03": "marec", + "04": "apríl", + "05": "máj", + "06": "jún", + "07": "júl", + "08": "august", + "09": "september", + "10": "október", + "11": "november", + "12": "december", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/sk_SK/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/sk_SK/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..7474067 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/sk_SK/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/sl_SI/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/sl_SI/__init__.py new file mode 100644 index 0000000..efc7b67 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/sl_SI/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "Nedelja", + "1": "Ponedeljek", + "2": "Torek", + "3": "Sreda", + "4": "Četrtek", + "5": "Petek", + "6": "Sobota", + } + + MONTH_NAMES = { + "01": "Januar", + "02": "Februar", + "03": "Marec", + "04": "April", + "05": "Maj", + "06": "Junij", + "07": "Julij", + "08": "Avgust", + "09": "September", + "10": "Oktober", + "11": "November", + "12": "December", + } + + def day_of_week(self) -> str: + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self) -> str: + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/sl_SI/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/sl_SI/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..bd8290f --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/sl_SI/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/ta_IN/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/ta_IN/__init__.py new file mode 100644 index 0000000..355ea0b --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/ta_IN/__init__.py @@ -0,0 +1,37 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + # Source: http://www.localeplanet.com/icu/ta-IN/index.html + DAY_NAMES = { + "0": "திங்கள்", + "1": "செவ்வாய்", + "2": "புதன்", + "3": "வியாழன்", + "4": "வெள்ளி", + "5": "சனி", + "6": "ஞாயிறு", + } + + MONTH_NAMES = { + "01": "ஜனவரி", + "02": "பிப்ரவரி", + "03": "மார்ச்", + "04": "ஏப்ரல்", + "05": "மே", + "06": "ஜூன்", + "07": "ஜூலை", + "08": "ஆகஸ்ட்", + "09": "செப்டம்பர்", + "10": "அக்டோபர்", + "11": "நவம்பர்", + "12": "டிசம்பர்", + } + + def day_of_week(self) -> str: + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self) -> str: + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/ta_IN/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/ta_IN/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..15cc550 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/ta_IN/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/th_TH/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/th_TH/__init__.py new file mode 100644 index 0000000..8ece4b5 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/th_TH/__init__.py @@ -0,0 +1,340 @@ +import warnings + +from datetime import datetime +from typing import Optional + +from ....typing import DateParseType +from .. import Provider as DateParseTypeProvider + +# thai_strftime() code adapted from +# https://gist.github.com/bact/b8afe49cb1ae62913e6c1e899dcddbdb +# (Same code base with PyThaiNLP 2.x) +# Public Domain or CC0 1.0 Universal + +_TH_ABBR_WEEKDAYS = ["จ", "อ", "พ", "พฤ", "ศ", "ส", "อา"] +_TH_FULL_WEEKDAYS = [ + "วันจันทร์", + "วันอังคาร", + "วันพุธ", + "วันพฤหัสบดี", + "วันศุกร์", + "วันเสาร์", + "วันอาทิตย์", +] + +_TH_ABBR_MONTHS = [ + "ม.ค.", + "ก.พ.", + "มี.ค.", + "เม.ย.", + "พ.ค.", + "มิ.ย.", + "ก.ค.", + "ส.ค.", + "ก.ย.", + "ต.ค.", + "พ.ย.", + "ธ.ค.", +] +_TH_FULL_MONTHS = [ + "มกราคม", + "กุมภาพันธ์", + "มีนาคม", + "เมษายน", + "พฤษภาคม", + "มิถุนายน", + "กรกฎาคม", + "สิงหาคม", + "กันยายน", + "ตุลาคม", + "พฤศจิกายน", + "ธันวาคม", +] + +_HA_TH_DIGITS = str.maketrans("0123456789", "๐๑๒๓๔๕๖๗๘๙") +_BE_AD_DIFFERENCE = 543 + +_NEED_L10N = "AaBbCcDFGgvXxYy+" # flags that need localization +_EXTENSIONS = "EO-_0^#" # extension flags + + +# Standard conversion support for thai_strftime() +def _std_strftime(dt_obj: datetime, fmt_char: str) -> str: + """ + Standard datetime.strftime() with normalization and exception handling. + """ + str_ = "" + try: + str_ = dt_obj.strftime(f"%{fmt_char}") + if not str_ or str_ == f"%{fmt_char}": + # normalize outputs for unsupported directives + # in different platforms + # "%Q" may result "%Q", "Q", or "", make it "Q" + str_ = fmt_char + except ValueError as err: # pragma: no cover + # Unsupported directives may raise ValueError on Windows, + # in that case just use the fmt_char + warnings.warn( + (f"String format directive unknown/not support: %{fmt_char}" f"The system raises this ValueError: {err}"), + UserWarning, + ) + str_ = fmt_char + return str_ + + +# Thai conversion support for thai_strftime() +def _thai_strftime( + dt_obj: datetime, + fmt_char: str, + buddhist_era: bool = True, +) -> str: + """ + Conversion support for thai_strftime(). + + The fmt_char should be in _NEED_L10N when call this function. + """ + str_ = "" + year = dt_obj.year + if buddhist_era: + year = year + _BE_AD_DIFFERENCE + + if fmt_char == "A": + # National representation of the full weekday name + str_ = _TH_FULL_WEEKDAYS[dt_obj.weekday()] + elif fmt_char == "a": + # National representation of the abbreviated weekday + str_ = _TH_ABBR_WEEKDAYS[dt_obj.weekday()] + elif fmt_char == "B": + # National representation of the full month name + str_ = _TH_FULL_MONTHS[dt_obj.month - 1] + elif fmt_char == "b": + # National representation of the abbreviated month name + str_ = _TH_ABBR_MONTHS[dt_obj.month - 1] + elif fmt_char == "C": + # Thai Buddhist century (AD+543)/100 + 1 as decimal number; + str_ = str(int(year / 100) + 1).zfill(2) + elif fmt_char == "c": + # Locale’s appropriate date and time representation + # Wed 6 Oct 01:40:00 1976 + # พ 6 ต.ค. 01:40:00 2519 <-- left-aligned weekday, right-aligned day + str_ = ( + f"{_TH_ABBR_WEEKDAYS[dt_obj.weekday()]:<2} {dt_obj.day:>2} " + f"{_TH_ABBR_MONTHS[dt_obj.month - 1]} {dt_obj:%H:%M:%S} {year:04}" + ) + elif fmt_char == "D": + # Equivalent to ``%m/%d/%y'' + str_ = f"{dt_obj:%m/%d}/{year % 100:02}" + elif fmt_char == "F": + # Equivalent to ``%Y-%m-%d'' + str_ = f"{year:04}-{dt_obj:%m-%d}" + elif fmt_char == "G": + # ISO 8601 year with century representing the year that contains + # the greater part of the ISO week (%V). Monday as the first day + # of the week. + year_G = int(dt_obj.strftime("%G")) + if buddhist_era: + year_G = year_G + _BE_AD_DIFFERENCE + str_ = f"{year_G:04}" + elif fmt_char == "g": + # Same year as in ``%G'', + # but as a decimal number without century (00-99). + year_G = int(dt_obj.strftime("%G")) + if buddhist_era: + year_G = year_G + _BE_AD_DIFFERENCE + str_ = f"{year_G % 100:02}" + elif fmt_char == "v": + # BSD extension, ' 6-Oct-1976' + str_ = f"{dt_obj.day:>2}-{_TH_ABBR_MONTHS[dt_obj.month - 1]}-{year:04}" + elif fmt_char == "X": + # Locale’s appropriate time representation. + str_ = f"{dt_obj:%H:%M:%S}" + elif fmt_char == "x": + # Locale’s appropriate date representation. + str_ = f"{dt_obj:%d/%m}/{year:04}" + elif fmt_char == "Y": + # Year with century + str_ = f"{year:04}" + elif fmt_char == "y": + # Year without century + str_ = f"{year % 100:02}" + elif fmt_char == "+": + # National representation of the date and time + # (the format is similar to that produced by date(1)) + # Wed 6 Oct 1976 01:40:00 + str_ = ( + f"{_TH_ABBR_WEEKDAYS[dt_obj.weekday()]:<2} {dt_obj.day:>2} " + f"{_TH_ABBR_MONTHS[dt_obj.month - 1]} {year} {dt_obj:%H:%M:%S}" + ) + + return str_ + + +def thai_strftime( + dt_obj: datetime, + fmt: str = "%-d %b %Y", + thai_digit: bool = False, + buddhist_era: bool = True, +) -> str: + """ + Convert :class:`datetime.datetime` into Thai date and time format. + + The formatting directives are similar to :func:`datatime.strrftime`. + + This function uses Thai names and Thai Buddhist Era for these directives: + * **%a** - abbreviated weekday name + (i.e. "จ", "อ", "พ", "พฤ", "ศ", "ส", "อา") + * **%A** - full weekday name + (i.e. "วันจันทร์", "วันอังคาร", "วันเสาร์", "วันอาทิตย์") + * **%b** - abbreviated month name + (i.e. "ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ธ.ค.") + * **%B** - full month name + (i.e. "มกราคม", "กุมภาพันธ์", "พฤศจิกายน", "ธันวาคม",) + * **%y** - year without century (i.e. "56", "10") + * **%Y** - year with century (i.e. "2556", "2410") + * **%c** - date and time representation + (i.e. "พ 6 ต.ค. 01:40:00 2519") + * **%v** - short date representation + (i.e. " 6-ม.ค.-2562", "27-ก.พ.-2555") + """ + thaidate_parts = [] + + i = 0 + fmt_len = len(fmt) + while i < fmt_len: + str_ = "" + if fmt[i] == "%": + j = i + 1 + if j < fmt_len: + fmt_char = fmt[j] + if fmt_char in _NEED_L10N: # requires localization? + str_ = _thai_strftime(dt_obj, fmt_char, buddhist_era) + elif fmt_char in _EXTENSIONS: + fmt_char_ext = fmt_char + k = j + 1 + if k < fmt_len: + fmt_char = fmt[k] + if fmt_char in _NEED_L10N: + str_ = _thai_strftime( + dt_obj, + fmt_char, + buddhist_era, + ) + else: + str_ = _std_strftime(dt_obj, fmt_char) + + if fmt_char_ext == "-": + # GNU libc extension, + # no padding + if str_[0] and str_[0] in " 0": + str_ = str_[1:] + elif fmt_char_ext == "_": + # GNU libc extension, + # explicitly specify space (" ") for padding + if str_[0] and str_[0] == "0": + str_ = " " + str_[1:] + elif fmt_char_ext == "0": + # GNU libc extension, + # explicitly specify zero ("0") for padding + if str_[0] and str_[0] == " ": + str_ = "0" + str_[1:] + elif fmt_char_ext == "^": + # GNU libc extension, + # convert to upper case + str_ = str_.upper() + elif fmt_char_ext == "#": + # GNU libc extension, + # swap case - useful for %Z + str_ = str_.swapcase() + elif fmt_char_ext == "E": + # POSIX extension, + # uses the locale's alternative representation + # Not implemented yet + pass + elif fmt_char_ext == "O": + # POSIX extension, + # uses the locale's alternative numeric symbols + str_ = str_.translate(_HA_TH_DIGITS) + i = i + 1 # consume char after format char + else: + # format char at string's end has no meaning + str_ = fmt_char_ext + else: # not in _NEED_L10N nor _EXTENSIONS + # no known localization available, use Python's default + str_ = _std_strftime(dt_obj, fmt_char) + + i = i + 1 # consume char after "%" + else: + # % char at string's end has no meaning + str_ = "%" + else: + str_ = fmt[i] + + thaidate_parts.append(str_) + i = i + 1 + + thaidate_text = "".join(thaidate_parts) + + if thai_digit: + thaidate_text = thaidate_text.translate(_HA_TH_DIGITS) + + return thaidate_text + + +class Provider(DateParseTypeProvider): + def date( + self, + pattern: str = "%-d %b %Y", + end_datetime: Optional[DateParseType] = None, + thai_digit: bool = False, + buddhist_era: bool = True, + ) -> str: + """ + Get a date string between January 1, 1970 and now + :param pattern: format + :param end_datetime: datetime + :param thai_digit: use Thai digit or not (default: False) + :param buddhist_era: use Buddist era or not (default: True) + :example: '08 พ.ย. 2563' + :example: '๐๘ พ.ย. 2563' (thai_digit = True) + :example: '8 พฤศิจกายน 2020' (pattern: str = "%-d %B %Y", buddhist_era = False) + """ + return thai_strftime( + self.date_time(end_datetime=end_datetime), + pattern, + thai_digit, + buddhist_era, + ) + + def time( + self, + pattern: str = "%H:%M:%S", + end_datetime: Optional[DateParseType] = None, + thai_digit: bool = False, + ) -> str: + """ + Get a time string (24h format by default) + :param pattern: format + :param end_datetime: datetime + :param thai_digit: use Thai digit or not (default: False) + :example: '15:02:34' + :example: '๑๕:๐๒:๓๔' (thai_digit = True) + """ + return thai_strftime( + self.date_time(end_datetime=end_datetime), + pattern, + thai_digit, + ) + + def century(self, thai_digit: bool = False, buddhist_era: bool = True) -> str: + """ + :param thai_digi:t use Thai digit or not (default: False) + :param buddhist:_era use Buddist era or not (default: True) + :example: '20' + """ + end_century = 22 + if buddhist_era: + end_century = 26 + text = str(self.random_element(range(1, end_century))) + if thai_digit: + text = text.translate(_HA_TH_DIGITS) + return text diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/th_TH/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/th_TH/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..cf81033 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/th_TH/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/tl_PH/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/tl_PH/__init__.py new file mode 100644 index 0000000..a8a98d2 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/tl_PH/__init__.py @@ -0,0 +1,7 @@ +from ..fil_PH import Provider as FilPhProvider + + +class Provider(FilPhProvider): + """No difference from DateTime Provider for fil_PH locale""" + + pass diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/tl_PH/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/tl_PH/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..c65fa29 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/tl_PH/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/tr_TR/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/tr_TR/__init__.py new file mode 100644 index 0000000..07e2720 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/tr_TR/__init__.py @@ -0,0 +1,36 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + DAY_NAMES = { + "0": "Pazar", + "1": "Pazartesi", + "2": "Salı", + "3": "Çarşamba", + "4": "Perşembe", + "5": "Cuma", + "6": "Cumartesi", + } + + MONTH_NAMES = { + "01": "Ocak", + "02": "Şubat", + "03": "Mart", + "04": "Nisan", + "05": "Mayıs", + "06": "Haziran", + "07": "Temmuz", + "08": "Ağustos", + "09": "Eylül", + "10": "Ekim", + "11": "Kasım", + "12": "Aralık", + } + + def day_of_week(self): + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self): + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/tr_TR/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/tr_TR/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..fb42466 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/tr_TR/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/zh_CN/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/zh_CN/__init__.py new file mode 100644 index 0000000..a69e6d0 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/zh_CN/__init__.py @@ -0,0 +1,35 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + MONTH_NAMES = { + "01": "一月", + "02": "二月", + "03": "三月", + "04": "四月", + "05": "五月", + "06": "六月", + "07": "七月", + "08": "八月", + "09": "九月", + "10": "十月", + "11": "十一月", + "12": "十二月", + } + DAY_NAMES = { + "0": "星期日", + "1": "星期一", + "2": "星期二", + "3": "星期三", + "4": "星期四", + "5": "星期五", + "6": "星期六", + } + + def day_of_week(self) -> str: + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self) -> str: + month = self.month() + return self.MONTH_NAMES[month] diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/zh_CN/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/zh_CN/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..65bbcb7 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/zh_CN/__pycache__/__init__.cpython-311.pyc diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/zh_TW/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/date_time/zh_TW/__init__.py new file mode 100644 index 0000000..9b53b6c --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/zh_TW/__init__.py @@ -0,0 +1,39 @@ +from .. import Provider as DateTimeProvider + + +class Provider(DateTimeProvider): + MONTH_NAMES = { + "01": "一月", + "02": "二月", + "03": "三月", + "04": "四月", + "05": "五月", + "06": "六月", + "07": "七月", + "08": "八月", + "09": "九月", + "10": "十月", + "11": "十一月", + "12": "十二月", + } + DAY_NAMES = { + "0": "星期日", + "1": "星期一", + "2": "星期二", + "3": "星期三", + "4": "星期四", + "5": "星期五", + "6": "星期六", + } + + def day_of_week(self) -> str: + day = self.date("%w") + return self.DAY_NAMES[day] + + def month_name(self) -> str: + month = self.month() + return self.MONTH_NAMES[month] + + def minguo_year(self) -> str: + year = self.year() + return str(int(year) - 1911) diff --git a/venv/lib/python3.11/site-packages/faker/providers/date_time/zh_TW/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/date_time/zh_TW/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..8aac3e4 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/date_time/zh_TW/__pycache__/__init__.cpython-311.pyc |