license_plate¶
- fakernaija.commands.license_plate(*args: t.Any, **kwargs: t.Any) t.Any¶
Generate and returns random license plates.
- Parameters:
repeat (int) – The number of random license plates to return. Must be a positive integer. Defaults to 1.
state (str) – Generate license plate number by state.
output (str) – The format of the output file if provided.
Note
Output options: csv, json, text
State options: 36 states in Nigeria + FCT
Examples
To generate a single random license plate:
$ naija license_plate FST-452UB
To generate 3 random license plates:
$ naija license_plate --repeat 3 LND-718GQ BWR-486US AAA-182DD
To generate a random license plate from a specific state in Nigeria:
$ naija license_plate --state "akwa ibom" NGD-631CK
To generate 30 random license plate numbers and save them to a specified format:
$ naija license_plate --repeat 30 --output text Generated data saved to /path/to/directory/filename.ext