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.

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.1.tar.gz (78.5 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.1-py3-none-any.whl (79.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: normalize_tools-0.1.1.tar.gz
  • Upload date:
  • Size: 78.5 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.1.tar.gz
Algorithm Hash digest
SHA256 35e18986aece0fd35025c02ee8055275c9b84405d614e4cd3ea3fb3f55a1d14e
MD5 4bc28c2571664b7292766a0fc6e9e9a1
BLAKE2b-256 d6b32fc12aff291d331eb7e4c7cbe8873f02e4e5aec2b8799b96a394abdc8e2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for normalize_tools-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86299587fe1e7b8d640a15972406715d33e0224bd0eb27ff28064661a07c66f7
MD5 2057e3449e5fe0bc3b430ce0eb8250cf
BLAKE2b-256 ddc40ba71feba32c2f1e9a6bf577152567cff5443aa0adeef8fed4dd3ffc5461

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