Herramientas de normalizacion de telefonos, y paises
Project description
Utilidades de formateo o estimacion de valores
Se incluyen las siguientes en cuanto a normalización:
Países
search_country_name(user_input: str) -> str: Devuelve el pais normalizado siuser_inputpuede identificarse como tal. No usa IA, estimación clásicaget_region(pais: str) -> str: Devuelve region de entre las siguientes'España', 'LATAM', 'Otros'si el pais informado va debidamente normalizado,''en otro caso
Teléfonos
normalize_phone(candidate: str, default_region: str = 'ES') -> tuple[str, str]: Devuelve el prefijo internacional como +nn y el numero sin prefijo o ValueError si el numero no es parseable.
Y para inferir el pais usamos:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
normalize_tools-0.1.8.tar.gz
(81.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file normalize_tools-0.1.8.tar.gz.
File metadata
- Download URL: normalize_tools-0.1.8.tar.gz
- Upload date:
- Size: 81.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0c8e600bf66337f626202ce18f7f5d8df33d0fce2da5e2531d30580453c6cc6
|
|
| MD5 |
e387ce1abc0ebf4655f014e9a5d1058a
|
|
| BLAKE2b-256 |
aa5a2e243b699ffab2ffc219564711ace6d1cc71d052e94d90cc3ffa5e4af9ce
|
File details
Details for the file normalize_tools-0.1.8-py3-none-any.whl.
File metadata
- Download URL: normalize_tools-0.1.8-py3-none-any.whl
- Upload date:
- Size: 83.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e584814f7dc829fb069505c6a8d9a16003a43186d584a8ad8e51b3874456a603
|
|
| MD5 |
ce5cb707e0c4816ddc719713e3e60691
|
|
| BLAKE2b-256 |
aa195fb9581f75dc6554d0a5684a94e386d1a2ac6caed25d7ab703d4639ae37c
|