From 6d7ba58f880be618ade07f8ea080fe8c4bf8a896 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Apr 2024 03:10:44 -0400 Subject: venv --- .../faker/providers/automotive/sk_SK/__init__.py | 100 +++++++++++++++++++++ .../sk_SK/__pycache__/__init__.cpython-311.pyc | Bin 0 -> 1649 bytes 2 files changed, 100 insertions(+) create mode 100644 venv/lib/python3.11/site-packages/faker/providers/automotive/sk_SK/__init__.py create mode 100644 venv/lib/python3.11/site-packages/faker/providers/automotive/sk_SK/__pycache__/__init__.cpython-311.pyc (limited to 'venv/lib/python3.11/site-packages/faker/providers/automotive/sk_SK') diff --git a/venv/lib/python3.11/site-packages/faker/providers/automotive/sk_SK/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/automotive/sk_SK/__init__.py new file mode 100644 index 0000000..b92bb17 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/automotive/sk_SK/__init__.py @@ -0,0 +1,100 @@ +import string + +from .. import Provider as AutomotiveProvider + + +class Provider(AutomotiveProvider): + """Implement automotive provider for ``sk_SK`` locale. + + Sources: + + - https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Slovakia + """ + + license_plate_prefix = [ + "BA", + "BL", + "BT", # Bratislava + "BB", # Banska Bystrica + "BJ", # Bardejov + "BN", # Banovce nad Bebravou + "BR", # Brezno + "BS", # Banska Stiavnica + "BY", # Bytca + "CA", # Cadca + "DK", # Dolny Kubin + "DS", # Dunajska Streda + "DT", # Detva + "GA", # Galanta + "GL", # Gelnica + "HC", # Hlohovec + "HE", # Humenne + "IL", # Ilava + "KA", # Krupina + "KE", # Kosice + "KK", # Kezmarok + "KM", # Kysucke Nove Mesto + "KN", # Komarno + "KS", # Kosice-okolie + "LC", # Lucenec + "LE", # Levoca + "LM", # Liptovsky Mikulas + "LV", # Levice + "MA", # Malacky + "MI", # Michalovce + "ML", # Medzilaborce + "MT", # Martin + "MY", # Myjava + "NR", # Nitra + "NM", # Nove Mesto nad Vahom + "NO", # Namestovo + "NZ", # Nove Zamky + "PB", # Povazska Bystrica + "PD", # Prievidza + "PE", # Partizanske + "PK", # Pezinok + "PN", # Piestany + "PO", # Presov + "PP", # Poprad + "PT", # Poltar + "PU", # Puchov + "RA", # Revuca + "RK", # Ruzomberok + "RS", # Rimavska Sobota + "RV", # Roznava + "SA", # Sala + "SB", # Sabinov + "SC", # Senec + "SE", # Senica + "SI", # Skalica + "SK", # Svidnik + "SL", # Stara Lubovna + "SN", # Spisska Nova Ves + "SO", # Sobrance + "SP", # Stropkov + "SV", # Snina + "TT", # Trnava + "TN", # Trencin + "TO", # Topolcany + "TR", # Turcianske Teplice + "TS", # Tvrdosin + "TV", # Trebisov + "VK", # Velky Krtis + "VT", # Vranov nad Toplou + "ZA", # Zilina + "ZC", # Zarnovica + "ZH", # Ziar nad Hronom + "ZM", # Zlate Moravce + "ZV", # Zvolen + ] + + license_plate_suffix = ("###??",) + + def license_plate(self) -> str: + """Generate a license plate.""" + prefix: str = self.random_element(self.license_plate_prefix) + suffix = self.bothify( + self.random_element(self.license_plate_suffix), + letters=string.ascii_uppercase, + ) + return prefix + suffix diff --git a/venv/lib/python3.11/site-packages/faker/providers/automotive/sk_SK/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/automotive/sk_SK/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..e497315 Binary files /dev/null and b/venv/lib/python3.11/site-packages/faker/providers/automotive/sk_SK/__pycache__/__init__.cpython-311.pyc differ -- cgit v1.2.3