Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add a License plate generator #3

Closed
3 tasks done
Pythonian opened this issue Jul 16, 2024 · 0 comments
Closed
3 tasks done

[FEATURE] Add a License plate generator #3

Pythonian opened this issue Jul 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Pythonian
Copy link
Owner

Pythonian commented Jul 16, 2024

Provider or Method Request or Enhancement
Request for a new provider: LicensePlateProvider or a similar name.

Describe the New Provider or Feature
This will generate random Nigerian license plate numbers using the official Nigerian formats. The provider will offer the following methods:
naija.license_plate(): which will generate a random Nigerian license plate number in the format XYZ-234MN, where:

  • XYZ represents the Local Government Area (LGA) abbreviation.
  • 234 is a random three-digit number.
  • MN is a two-letter sequence.

Examples and Use Cases

>>> from fakernaija.faker import Faker
>>> naija = Faker()
>>> license_plate = naija.license_plate()
>>> print(f"Random license plate: {license_plate}")
'Random license plate: KWL-001AA'

Additional Context
The format follows the official standard used in Nigeria, making it useful for various applications, including testing, validations, and demonstrations in various automotive-related projects.

Documentation Update
The documentation will need to be updated to include details about the new LicensePlateProvider class and example usage of its method(s).

Resources

Checklist:

  • I have searched the existing issues and pull requests for duplicates.
  • I have described the new provider or feature in detail.
  • I have provided examples and use cases for this new provider or feature.
@Pythonian Pythonian added the enhancement New feature or request label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant