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.9.tar.gz
(81.8 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.9.tar.gz.
File metadata
- Download URL: normalize_tools-0.1.9.tar.gz
- Upload date:
- Size: 81.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee3d6756811a8b5a212ed8c1923c0a270b190b3ea2f57cca47f6a2cfa9552073
|
|
| MD5 |
4006fe327605fc5f0603a1666bf3dd8d
|
|
| BLAKE2b-256 |
551f3723967e6357af7ffb79feac1d550c479f9d721d8fe219ce8558589ba591
|
File details
Details for the file normalize_tools-0.1.9-py3-none-any.whl.
File metadata
- Download URL: normalize_tools-0.1.9-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 |
cc6e7eddb75550f3b47617ee0aecf0055096cd51d240446952d1ef0fd385333a
|
|
| MD5 |
4ce1389416b5c6fdc4920a7ad9347232
|
|
| BLAKE2b-256 |
f7a6f1605068059c11d16b452f72d8d3124456ef3802cc8c12ff35f7179fa11a
|