Skip to main content

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 si user_input puede identificarse como tal. No usa IA, estimación clásica
  • get_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


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.10.tar.gz (81.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

normalize_tools-0.1.10-py3-none-any.whl (83.1 kB view details)

Uploaded Python 3

File details

Details for the file normalize_tools-0.1.10.tar.gz.

File metadata

  • Download URL: normalize_tools-0.1.10.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

Hashes for normalize_tools-0.1.10.tar.gz
Algorithm Hash digest
SHA256 2eb375c1ef67f7498b32a82f421dd55a6c4052569fd756f8e6c1b776e3c96dcb
MD5 2a2052a32709ac31fcfd03d8f513a55f
BLAKE2b-256 296f76b7917dd0be91f9a93d8840b65f0992d460df518ef8dc0df9c536ebd488

See more details on using hashes here.

File details

Details for the file normalize_tools-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for normalize_tools-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 ef4c75fd09714570d3400b0acf4c1b067c9a34c4981ffcf9f639925a0e1eea2c
MD5 97e860db7de8723225ef7cd02cf9dbbd
BLAKE2b-256 d6c521f69d1e2f67e2b53964297c494ffdef0a2c6f645e8df78689f98db12de3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page