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.3.tar.gz (81.0 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.3-py3-none-any.whl (82.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: normalize_tools-0.1.3.tar.gz
  • Upload date:
  • Size: 81.0 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.3.tar.gz
Algorithm Hash digest
SHA256 49edf20b064e0442d167a15864e03993e3fcabe07d28af698cd966000a563abc
MD5 827eb4fd57819c6803c9ce426d3f8a33
BLAKE2b-256 843b175661fa5c9eac9bfb68a20e775a2451c9fc4aa3bd2f49823bf68d2acb82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for normalize_tools-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6bf52598c169ae742c18d69be4a6772f7d57e20f3353803f5390c8a0017d7d50
MD5 6b526dbdc8fe1f97ff8753561e9382a9
BLAKE2b-256 253e723239c325dd20bd78bea19ff0195d42191a436bd25af07f5158b4d2f29c

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