enderecobr 0.0.3__cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl
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.
enderecobr/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .enderecobr import *
|
|
Binary file
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
def padronizar_logradouros(valor: str) -> str: ...
|
|
2
|
+
def padronizar_numeros(valor: str) -> str: ...
|
|
3
|
+
def padronizar_complementos(valor: str) -> str: ...
|
|
4
|
+
def padronizar_bairros(valor: str) -> str: ...
|
|
5
|
+
def padronizar_municipios(valor: str) -> str: ...
|
|
6
|
+
def padronizar_estados_para_nome(valor: str) -> str: ...
|
|
7
|
+
def padronizar_tipo_logradouro(valor: str) -> str: ...
|
|
8
|
+
def padronizar_cep_leniente(valor: str) -> str: ...
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import enderecobr
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
# Testes bem simples só para garantir que as funções estão sendo executadas.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def testa_logradouro():
|
|
8
|
+
assert enderecobr.padronizar_logradouros("R") == "RUA"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def testa_numero():
|
|
12
|
+
assert enderecobr.padronizar_numeros("0001") == "1"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def testa_bairro():
|
|
16
|
+
assert enderecobr.padronizar_bairros("NS aparecida") == "NOSSA SENHORA APARECIDA"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def testa_municipio():
|
|
20
|
+
assert enderecobr.padronizar_municipios("3304557") == "RIO DE JANEIRO"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def testa_estado_nome():
|
|
24
|
+
assert enderecobr.padronizar_estados_para_nome("MA") == "MARANHAO"
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def testa_padronizar_tipo_logradouro():
|
|
28
|
+
assert enderecobr.padronizar_tipo_logradouro("R") == "RUA"
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def testa_padronizar_cep_leniente():
|
|
32
|
+
assert enderecobr.padronizar_cep_leniente("a123b45 6") == "00123-456"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: enderecobr
|
|
3
|
+
Version: 0.0.3
|
|
4
|
+
Classifier: Programming Language :: Rust
|
|
5
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
7
|
+
Classifier: Development Status :: 3 - Alpha
|
|
8
|
+
Classifier: Intended Audience :: Developers
|
|
9
|
+
Classifier: Intended Audience :: Education
|
|
10
|
+
Classifier: Intended Audience :: Science/Research
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
20
|
+
Classifier: Natural Language :: Portuguese (Brazilian)
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
22
|
+
Keywords: address,brazil,brasil,regex,geocoding
|
|
23
|
+
Author-email: Daniel Herszenhut Meirelles Santos <daniel.santos@ipea.gov.br>, Gabriel Garcia de Almeida <gabriel.almeida@ipea.gov.br>, Rafael Henrique Moraes Pereira <rafael.pereira@ipea.gov.br>
|
|
24
|
+
Requires-Python: >=3.9
|
|
25
|
+
Project-URL: Homepage, https://github.com/ipeaGIT/enderecobr_rs
|
|
26
|
+
Project-URL: Source, https://github.com/ipeaGIT/enderecobr_rs
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
enderecobr-0.0.3.dist-info/METADATA,sha256=L4HFq-6gNcb-8Y7AXVG7TACUXXLKbbprT-pZYxbQLoA,1385
|
|
2
|
+
enderecobr-0.0.3.dist-info/WHEEL,sha256=vu3c1qTTS-x5pOUSGC-Z-QJQu4kaXHxbErC9rw-V4i4,141
|
|
3
|
+
enderecobr/__init__.py,sha256=elRZDqhtd1hakC9oyq_5gjhhCsshWKbK2wbar_4hV5w,26
|
|
4
|
+
enderecobr/enderecobr.cpython-313t-i386-linux-gnu.so,sha256=BugnL1bgl4LFe043nsaNKV_Cywj1PeRaadKrZu4uBRU,2995336
|
|
5
|
+
enderecobr/enderecobr.pyi,sha256=R1WC8SOmI9N5HUulMWNEVxesCsqxJMcmHfBbJlpQpKs,411
|
|
6
|
+
enderecobr/tests/test_geral.py,sha256=jRI33OmU4JdZ3edJE4rVuHuIW7FvdPvjQvK1ZAJxZfM,789
|
|
7
|
+
enderecobr-0.0.3.dist-info/RECORD,,
|