bcpkgfox 0.16.30__tar.gz → 0.16.32__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.16.30
3
+ Version: 0.16.32
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: Guilherme Neri
@@ -219,4 +219,39 @@ class System:
219
219
  if unicodedata.category(letra) != 'Mn'
220
220
  )
221
221
 
222
+ def uf_estado(self, valor: str) -> str:
223
+ estados = {
224
+ "AC": "Acre",
225
+ "AL": "Alagoas",
226
+ "AP": "Amapá",
227
+ "AM": "Amazonas",
228
+ "BA": "Bahia",
229
+ "CE": "Ceará",
230
+ "DF": "Distrito Federal",
231
+ "ES": "Espírito Santo",
232
+ "GO": "Goiás",
233
+ "MA": "Maranhão",
234
+ "MT": "Mato Grosso",
235
+ "MS": "Mato Grosso do Sul",
236
+ "MG": "Minas Gerais",
237
+ "PA": "Pará",
238
+ "PB": "Paraíba",
239
+ "PR": "Paraná",
240
+ "PE": "Pernambuco",
241
+ "PI": "Piauí",
242
+ "RJ": "Rio de Janeiro",
243
+ "RN": "Rio Grande do Norte",
244
+ "RS": "Rio Grande do Sul",
245
+ "RO": "Rondônia",
246
+ "RR": "Roraima",
247
+ "SC": "Santa Catarina",
248
+ "SP": "São Paulo",
249
+ "SE": "Sergipe",
250
+ "TO": "Tocantins"
251
+ }
252
+ if valor.upper() in estados:
253
+ return estados[valor.upper()]
254
+ estado_uf = {v.lower(): k for k, v in estados.items()}
255
+ return estado_uf.get(valor.lower(), "Valor inválido")
256
+
222
257
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.16.30
3
+ Version: 0.16.32
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: Guilherme Neri
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="bcpkgfox",
5
- version="0.16.30",
5
+ version="0.16.32",
6
6
  author="Guilherme Neri",
7
7
  author_email="guilherme.neri@bcfox.com.br",
8
8
  description="Biblioteca BCFOX",
File without changes
File without changes
File without changes
File without changes