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/ar_JO/__init__.py | 53 +++++++++++++++++++++ .../ar_JO/__pycache__/__init__.cpython-311.pyc | Bin 0 -> 1570 bytes 2 files changed, 53 insertions(+) create mode 100644 venv/lib/python3.11/site-packages/faker/providers/automotive/ar_JO/__init__.py create mode 100644 venv/lib/python3.11/site-packages/faker/providers/automotive/ar_JO/__pycache__/__init__.cpython-311.pyc (limited to 'venv/lib/python3.11/site-packages/faker/providers/automotive/ar_JO') diff --git a/venv/lib/python3.11/site-packages/faker/providers/automotive/ar_JO/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/automotive/ar_JO/__init__.py new file mode 100644 index 0000000..c258108 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/automotive/ar_JO/__init__.py @@ -0,0 +1,53 @@ +from .. import Provider as AutomotiveProvider + + +class Provider(AutomotiveProvider): + """Implement automotive provider for ``ar_JO`` locale. + + Sources: + + - https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Jordan + """ + + license_formats = ( + "{{initials}}-####", + "{{initials}}-#####", + ) + + def initials(self) -> str: + """Generate an initial number for license plates.""" + return self.random_element( + [ + "1", # Ministers + "2", + "3", # Parliament + "5", # General Government + "6", # Aqaba free zone + "7", + "8", # Diplomatic + "9", # Temporary + "10", + "23", # Passenger cars + "38", + "39", # Crew cabs + "41", + "42", # Light goods vehicles + "44", # Tractors + "46", # Motorcycles and scooters + "50", # Taxi + "56", # Small buses + "58", # Coaches + "60", # HGVs + "70", # Rental Cars + "71", # Trailer + "90", # Army + "95", # Ambulance + "96", # Gendarmerie + "99", # Police + ] + ) + + def license_plate(self) -> str: + """Generate a license plate.""" + pattern: str = self.random_element(self.license_formats) + return self.numerify(self.generator.parse(pattern)) diff --git a/venv/lib/python3.11/site-packages/faker/providers/automotive/ar_JO/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/automotive/ar_JO/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..e8a2ce9 Binary files /dev/null and b/venv/lib/python3.11/site-packages/faker/providers/automotive/ar_JO/__pycache__/__init__.cpython-311.pyc differ -- cgit v1.2.3