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.5.tar.gz
(81.2 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.5.tar.gz.
File metadata
- Download URL: normalize_tools-0.1.5.tar.gz
- Upload date:
- Size: 81.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
792b9f3673a4b98e02e61aadc4311b395ace40fe4c7704f7faf9dca8fdfc9dd6
|
|
| MD5 |
5b24a9aff469c900c76ef4436dfcdd19
|
|
| BLAKE2b-256 |
c52f3f2e590577bd49640a9e32f1d1f9e032459ebae46ba2fe4dae5d59e6588f
|
File details
Details for the file normalize_tools-0.1.5-py3-none-any.whl.
File metadata
- Download URL: normalize_tools-0.1.5-py3-none-any.whl
- Upload date:
- Size: 82.6 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 |
0d6651b25630a07b14d1ae01698847778cb78ec1f8af97c3f14a7c66a99f6a20
|
|
| MD5 |
6dea4c3c530b7ad47a4e77cf0aced9dc
|
|
| BLAKE2b-256 |
7f50ca6340b660d73a67e78d692dab1ea7c722be422882d1cf8f9376110bc8e1
|