summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/faker/providers/address/sv_SE
diff options
context:
space:
mode:
Diffstat (limited to 'venv/lib/python3.11/site-packages/faker/providers/address/sv_SE')
-rw-r--r--venv/lib/python3.11/site-packages/faker/providers/address/sv_SE/__init__.py375
-rw-r--r--venv/lib/python3.11/site-packages/faker/providers/address/sv_SE/__pycache__/__init__.cpython-311.pycbin0 -> 5695 bytes
2 files changed, 375 insertions, 0 deletions
diff --git a/venv/lib/python3.11/site-packages/faker/providers/address/sv_SE/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/address/sv_SE/__init__.py
new file mode 100644
index 0000000..b7dbc9d
--- /dev/null
+++ b/venv/lib/python3.11/site-packages/faker/providers/address/sv_SE/__init__.py
@@ -0,0 +1,375 @@
+from .. import Provider as AddressProvider
+
+
+class Provider(AddressProvider):
+ building_number_formats = ("###", "##", "#")
+
+ street_name_formats = ("{{street_prefix}}{{street_suffix}}",)
+
+ street_address_formats = ("{{street_name}} {{building_number}}",)
+
+ street_prefixes = (
+ "Björk",
+ "Järnvägs",
+ "Ring",
+ "Skol",
+ "Skogs",
+ "Ny",
+ "Gran",
+ "Idrotts",
+ "Stor",
+ "Kyrk",
+ "Industri",
+ "Park",
+ "Strand",
+ "Skol",
+ "Trädgårds",
+ "Industri",
+ "Ängs",
+ "Kyrko",
+ "Park",
+ "Villa",
+ "Ek",
+ "Kvarn",
+ "Stations",
+ "Back",
+ "Furu",
+ "Gen",
+ "Fabriks",
+ "Åker",
+ "Bäck",
+ "Asp",
+ )
+
+ street_suffixes = ("gatan", "gatan", "vägen", "vägen", "stigen", "gränd", "torget")
+
+ address_formats = ("{{street_address}}\n{{postcode}} {{city}}",)
+
+ # Postcode should be formatted as described in
+ # https://sv.wikipedia.org/wiki/Postnummer_i_Sverige and
+ # in 2nd chapter of https://www.postnord.se/siteassets/pdf/faktablad/postnummersystemet-i-sverige-171213.pdf.
+ postcode_formats = ("%####",)
+
+ city_formats = ("{{city_name}}",)
+
+ cities = (
+ "Stockholm",
+ "Göteborg",
+ "Malmö",
+ "Uppsala",
+ "Västerås",
+ "Örebro",
+ "Linköping",
+ "Helsingborg",
+ "Jönköping",
+ "Norrköping",
+ "Lund",
+ "Umeå",
+ "Gävle",
+ "Borås",
+ "Mölndal",
+ "Södertälje",
+ "Eskilstuna",
+ "Karlstad",
+ "Halmstad",
+ "Växjö",
+ "Sundsvall",
+ "Luleå",
+ "Trollhättan",
+ "Östersund",
+ "Borlänge",
+ "Falun",
+ "Kalmar",
+ "Skövde",
+ "Kristianstad",
+ "Karlskrona",
+ "Skellefteå",
+ "Uddevalla",
+ "Lidingö",
+ "Motala",
+ "Landskrona",
+ "Örnsköldsvik",
+ "Nyköping",
+ "Karlskoga",
+ "Varberg",
+ "Trelleborg",
+ "Lidköping",
+ "Alingsås",
+ "Piteå",
+ "Sandviken",
+ "Ängelholm",
+ )
+
+ countries = (
+ "Afghanistan",
+ "Albanien",
+ "Algeriet",
+ "Amerikanska Samoa",
+ "Andorra",
+ "Angola",
+ "Anguilla",
+ "Antarktis",
+ "Antigua och Barbuda",
+ "Argentina",
+ "Armenien",
+ "Aruba",
+ "Ascension",
+ "Australien",
+ "Azerbajdzjan",
+ "Bahamas",
+ "Bahrain",
+ "Bangladesh",
+ "Barbados",
+ "Belarus",
+ "Belgien",
+ "Belize",
+ "Benin",
+ "Bermuda",
+ "Bhutan",
+ "Bolivia",
+ "Bosnien och Hercegovina",
+ "Botswana",
+ "Brasilien",
+ "Brittiska Jungfruöarna",
+ "Brunei",
+ "Bulgarien",
+ "Burkina Faso",
+ "Burma",
+ "Burundi",
+ "Caymanöarna",
+ "Centralafrikanska republiken",
+ "Chile",
+ "Colombia",
+ "Cooköarna",
+ "Costa Rica",
+ "Cypern",
+ "Danmark",
+ "Diego Garcia",
+ "Djibouti",
+ "Dominica",
+ "Dominikanska republiken",
+ "Ecuador",
+ "Egypten",
+ "Ekvatorialguinea",
+ "Elfenbenskusten",
+ "El Salvador",
+ "Eritrea",
+ "Estland",
+ "Etiopien",
+ "England",
+ "Falklandsöarna",
+ "Fiji",
+ "Filippinerna",
+ "Finland",
+ "Frankrike",
+ "Franska Guyana",
+ "Franska Polynesien",
+ "Färöarna",
+ "Förenade Arabemiraten",
+ "Gabon",
+ "Gambia",
+ "Georgien",
+ "Ghana",
+ "Gibraltar",
+ "Grekland",
+ "Grenada",
+ "Grönland",
+ "Guadeloupe",
+ "Guatemala",
+ "Guinea",
+ "Guinea-Bissau",
+ "Guyana",
+ "Haiti",
+ "Honduras",
+ "Hongkong",
+ "Indien",
+ "Indonesien",
+ "Irak",
+ "Iran",
+ "Irland",
+ "Island",
+ "Israel",
+ "Italien",
+ "Jamaica",
+ "Japan",
+ "Jemen",
+ "Jordanien",
+ "Kambodja",
+ "Kamerun",
+ "Kanada",
+ "Kap Verde",
+ "Kazakstan",
+ "Kenya",
+ "Kina",
+ "Kirgizistan",
+ "Kiribati",
+ "Komorerna",
+ "Kongo-Brazzaville",
+ "Kongo-Kinshasa",
+ "Kosovo",
+ "Kroatien",
+ "Kuba",
+ "Kuwait",
+ "Laos",
+ "Lesotho",
+ "Lettland",
+ "Libanon",
+ "Liberia",
+ "Libyen",
+ "Liechtenstein",
+ "Litauen",
+ "Luxemburg",
+ "Macao",
+ "Madagaskar",
+ "Malawi",
+ "Malaysia",
+ "Maldiverna",
+ "Mali",
+ "Malta",
+ "Marianerna",
+ "Marocko",
+ "Marshallöarna",
+ "Martinique",
+ "Mauretanien",
+ "Mauritius",
+ "Mayotte",
+ "Mexiko",
+ "Midwayöarna",
+ "Mikronesiens federerade stater",
+ "Moçambique",
+ "Moldavien",
+ "Monaco",
+ "Mongoliet",
+ "Montenegro",
+ "Montserrat",
+ "Namibia",
+ "Nauru",
+ "Nederländerna",
+ "Nederländska Antillerna",
+ "Nepal",
+ "Nicaragua",
+ "Niger",
+ "Nigeria",
+ "Niue",
+ "Nordkorea",
+ "Nordmakedonien",
+ "Nordmarianerna",
+ "Norfolkön",
+ "Norge",
+ "Nya Kaledonien",
+ "Nya Zeeland",
+ "Oman",
+ "Pakistan",
+ "Palau",
+ "Palestina",
+ "Panama",
+ "Papua Nya Guinea",
+ "Paraguay",
+ "Peru",
+ "Pitcairnöarna",
+ "Polen",
+ "Portugal",
+ "Qatar",
+ "Réunion",
+ "Rumänien",
+ "Rwanda",
+ "Ryssland",
+ "Saint Kitts och Nevis",
+ "Saint Lucia",
+ "Saint-Pierre och Miquelon",
+ "Saint Vincent och Grenadinerna",
+ "Salomonöarna",
+ "Samoa",
+ "Sankta Helena",
+ "San Marino",
+ "São Tomé och Príncipe",
+ "Saudiarabien",
+ "Schweiz",
+ "Senegal",
+ "Serbien",
+ "Seychellerna",
+ "SierraLeone",
+ "Singapore",
+ "Sint Maarten",
+ "Slovakien",
+ "Slovenien",
+ "Somalia",
+ "Spanien",
+ "Sri Lanka",
+ "Storbritannien",
+ "Sudan",
+ "Surinam",
+ "Sverige",
+ "Swaziland",
+ "Sydafrika",
+ "Sydkorea",
+ "Sydsudan",
+ "Syrien",
+ "Tadzjikistan",
+ "Taiwan",
+ "Tanzania",
+ "Tchad",
+ "Thailand",
+ "Tjeckien",
+ "Togo",
+ "Tokelauöarna",
+ "Tonga",
+ "Trinidad och Tobago",
+ "Tunisien",
+ "Turkiet",
+ "Turkmenistan",
+ "Turks-och Caicosöarna",
+ "Tuvalu",
+ "Tyskland",
+ "Uganda",
+ "Ukraina",
+ "Ungern",
+ "Uruguay",
+ "USA",
+ "Uzbekistan",
+ "Vanuatu",
+ "Vatikanstaten",
+ "Venezuela",
+ "Vietnam",
+ "Wake",
+ "Wallis-och Futunaöarna",
+ "Zambia",
+ "Zimbabwe",
+ "Österrike",
+ "Östtimor",
+ )
+
+ states = (
+ "Stockholms län",
+ "Uppsala län",
+ "Södermanlands län",
+ "Östergötlands län",
+ "Jönköpings län",
+ "Kronobergs län",
+ "Kalmar län",
+ "Gotlands län",
+ "Blekinge län",
+ "Skåne län",
+ "Hallands län",
+ "Västra Götalands län",
+ "Värmlands län",
+ "Örebro län",
+ "Västmanlands län",
+ "Dalarnas län",
+ "Gävleborgs län",
+ "Västernorrlands län",
+ "Jämtlands län",
+ "Västerbottens län",
+ "Norrbottens län",
+ )
+
+ def street_prefix(self) -> str:
+ return self.random_element(self.street_prefixes)
+
+ def city_name(self) -> str:
+ return self.random_element(self.cities)
+
+ def administrative_unit(self) -> str:
+ return self.random_element(self.states)
+
+ state = administrative_unit
diff --git a/venv/lib/python3.11/site-packages/faker/providers/address/sv_SE/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/address/sv_SE/__pycache__/__init__.cpython-311.pyc
new file mode 100644
index 0000000..6173633
--- /dev/null
+++ b/venv/lib/python3.11/site-packages/faker/providers/address/sv_SE/__pycache__/__init__.cpython-311.pyc
Binary files differ