Skip to content

Fernandavazgit1 patch 1 - #2237

Closed
Fernandavazgit1 wants to merge 4 commits into
joke2k:masterfrom
Fernandavazgit1:Fernandavazgit1-patch-1
Closed

Fernandavazgit1 patch 1#2237
Fernandavazgit1 wants to merge 4 commits into
joke2k:masterfrom
Fernandavazgit1:Fernandavazgit1-patch-1

Conversation

@Fernandavazgit1

Copy link
Copy Markdown

What does this change

This PR adds a new method called latam_plate() to the automotive provider for generating vehicle license plates from different Latin American countries.

Supported formats:

  • 🇧🇷 Brazil: ABC-1234
  • 🇦🇷 Argentina: AB 123 CD
  • 🇨🇱 Chile: AB-CD-12

The method allows the developer to specify a country using the pais parameter (default: random choice). This is useful for testing systems involving vehicle registration, logistics, transportation apps, etc.

What was wrong

Currently, Faker does not support license plate formats specific to Latin American countries. Developers working on apps for this region need custom generators to simulate realistic vehicle data for Brazil, Argentina, Chile, and others.

How this fixes it

This adds a custom method latam_plate() which generates localized plate formats depending on the selected country. It uses internal logic for formatting and random generation based on common standards in those regions.

Fixes #12345 <! fake latin america plate [Feature Request] #2236

Checklist

  • I have read the documentation about CONTRIBUTING
  • I have read the documentation about Coding style
  • I have run make lint and make test
  • I have added unit tests in test_plate.py
  • I have documented the new method

@Fernandavazgit1
Fernandavazgit1 deleted the Fernandavazgit1-patch-1 branch July 6, 2025 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant