summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/faker/providers/automotive/ar_JO
diff options
context:
space:
mode:
Diffstat (limited to 'venv/lib/python3.11/site-packages/faker/providers/automotive/ar_JO')
-rw-r--r--venv/lib/python3.11/site-packages/faker/providers/automotive/ar_JO/__init__.py53
-rw-r--r--venv/lib/python3.11/site-packages/faker/providers/automotive/ar_JO/__pycache__/__init__.cpython-311.pycbin0 -> 1570 bytes
2 files changed, 53 insertions, 0 deletions
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
--- /dev/null
+++ b/venv/lib/python3.11/site-packages/faker/providers/automotive/ar_JO/__pycache__/__init__.cpython-311.pyc
Binary files differ