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.2.tar.gz
(80.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.2.tar.gz.
File metadata
- Download URL: normalize_tools-0.1.2.tar.gz
- Upload date:
- Size: 80.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 |
c4f51e460ce215ae013a076123e5fce30ed85d90fa19c1b2a12a3c9c17df288d
|
|
| MD5 |
2d06cb989b00ed5ecb23d30b9b0cbfb0
|
|
| BLAKE2b-256 |
4d5060136d24d496b86bab93f57fd5c1a2cc1f5a28375a36933770da4e631f3e
|
File details
Details for the file normalize_tools-0.1.2-py3-none-any.whl.
File metadata
- Download URL: normalize_tools-0.1.2-py3-none-any.whl
- Upload date:
- Size: 82.2 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 |
454719cf37480404914994da7134dcfecef7d0ce85f9bce30023637976ef50f4
|
|
| MD5 |
2a9743a932408502e9caf100ac1bfcca
|
|
| BLAKE2b-256 |
61799a24b225aa5df9be100cf7808ebfb50efcdfae0b608eef7af4d8824dd1e1
|