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.11.tar.gz (81.6 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.11-py3-none-any.whl (83.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: normalize_tools-0.1.11.tar.gz
  • Upload date:
  • Size: 81.6 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.11.tar.gz
Algorithm Hash digest
SHA256 f179fb839f4da706afb78771d6957b14cb68c10ae21a5d419f554837dae560e5
MD5 ea75f06145f9c4372914c9264ea53e9b
BLAKE2b-256 bc5cfd4c6dd0fd8fb024bdc8e066835b1c30fe180419429050b2fcb29f558245

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for normalize_tools-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 272198b304bbcce54c79e72f781db20f81205224264c456c2e087a26af1a088c
MD5 9c35327fff9ea8f2aebd2c4f26053a40
BLAKE2b-256 b89d7ddb0e8007b351f74004cdca98e4e921191554a1da28ad89b73bcb0d2b71

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