From 12cf076118570eebbff08c6b3090e0d4798447a1 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Apr 2024 03:17:55 -0400 Subject: no venv --- .../faker/providers/automotive/es_AR/__init__.py | 87 --------------------- .../es_AR/__pycache__/__init__.cpython-311.pyc | Bin 3205 -> 0 bytes 2 files changed, 87 deletions(-) delete mode 100644 venv/lib/python3.11/site-packages/faker/providers/automotive/es_AR/__init__.py delete mode 100644 venv/lib/python3.11/site-packages/faker/providers/automotive/es_AR/__pycache__/__init__.cpython-311.pyc (limited to 'venv/lib/python3.11/site-packages/faker/providers/automotive/es_AR') diff --git a/venv/lib/python3.11/site-packages/faker/providers/automotive/es_AR/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/automotive/es_AR/__init__.py deleted file mode 100644 index 3177e64..0000000 --- a/venv/lib/python3.11/site-packages/faker/providers/automotive/es_AR/__init__.py +++ /dev/null @@ -1,87 +0,0 @@ -from collections import OrderedDict -from string import ascii_uppercase - -from .. import Provider as AutomotiveProvider - - -class Provider(AutomotiveProvider): - """Implement automotive provider for ``es_AR`` locale. - - Sources: - - - https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Argentina - - """ - - license_plate_old_format_first_letter = ascii_uppercase.replace("YZ", "") - - license_plate_new_first_letter = OrderedDict( - [ - ("A", 0.99), - ("B", 0.001), - ("C", 0.0001), - ("D", 0.00001), - ("E", 0.0000000001), - ] - ) - - license_plate_new_second_letter = OrderedDict( - [ - ("A", 0.1), - ("B", 0.1), - ("C", 0.1), - ("D", 0.1), - ("E", 0.1), - ("F", 0.1), - ("G", 0.09), - ("H", 0.08), - ("I", 0.07), - ("J", 0.06), - ("K", 0.04), - ("L", 0.03), - ("M", 0.009), - ("N", 0.007), - ("O", 0.005), - ("P", 0.004), - ("Q", 0.001), - ("R", 0.0009), - ("S", 0.0008), - ("T", 0.0007), - ("U", 0.0006), - ("V", 0.0005), - ("W", 0.0003), - ("X", 0.0002), - ("Y", 0.0001), - ("Z", 0.00005), - ] - ) - - license_formats = OrderedDict( - [ - ("{{license_plate_old}}", 0.6), - ("{{license_plate_mercosur}}", 0.4), - ] - ) - - def license_plate_old(self) -> str: - """Generate an old format license plate. Since 1995 to 2016""" - format = "??###" - - first_letter: str = self.random_element(self.license_plate_old_format_first_letter) - - return self.bothify(first_letter + format).upper() - - def license_plate_mercosur(self) -> str: - """Generate an new plate with Mercosur format. Since 2016""" - - first_letter: str = self.random_element(self.license_plate_new_first_letter) - second_letter: str = self.random_element(self.license_plate_new_second_letter) - - format = "###??" - plate = first_letter + second_letter - - return self.bothify(plate + format).upper() - - def license_plate(self) -> str: - """Generate a license plate.""" - return self.numerify(self.generator.parse(self.random_element(self.license_formats))) diff --git a/venv/lib/python3.11/site-packages/faker/providers/automotive/es_AR/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/automotive/es_AR/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index e9b8d89..0000000 Binary files a/venv/lib/python3.11/site-packages/faker/providers/automotive/es_AR/__pycache__/__init__.cpython-311.pyc and /dev/null differ -- cgit v1.2.3