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

Added a utils.py get_states_of_brazil #510

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

vic012
Copy link

@vic012 vic012 commented Jul 29, 2024

All Changes
I Added a utils.py file to localflavor.br initially with a method called get_states_of_brazil. Through this method, the user can get the state through a (federative_unit - str) and can configure the return to be upper or lower case. If the federative_unit is None or if its value is not in the available state options, a dict will be returned with all states of Brazil.

  • [x ] Add an entry to the docs/changelog.rst describing the change.

  • [x ] Add an entry for your name in the docs/authors.rst file if it's not
    already there.

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