Skip to main content

CURP Suite

PyPI Version Python versions License: GPL  v2 Build ReadTheDocs Total downloads

CURP Suite es una librería de análisis y validación de la CURP Mexicana.

>>> from curp import CURP
>>> c = CURP("SABC560626MDFLRN01")
>>> c.fecha_nacimiento
datetime.date(1956, 6, 26)
>>> c.sexo
<Sexo.MUJER: 2>
>>> c.entidad
'Ciudad de México'
>>> c.nombre_valido("Concepción")
True

CURP Suite te permite extraer toda la información que contiene una CURP de forma conveniente. Además, toda la validación es automática. CURP Suite está diseñado para dar soporte a toda la especificación oficial de la CURP.

También puede ser invocada desde la terminal

$ curp SABC560626MDFLRN01
{"curp": "SABC560626MDFLRN01", "sexo": 2, "fecha_nacimiento": "1956-06-26", "entidad_nacimiento": {"name": "Ciudad de México", "iso": "MX-CMX"}}

Instalación

Desde PyPI
$ python3 -m pip install CURPSuite

CURP Suite soporta Python 3.13+.

Características

  • Extracción de datos
    • Fecha de nacimiento como objeto datetime.date
    • Sexo compatible con ISO/IEC 5218
    • Nombre y clave ISO 3166-2 de la entidad federativa de nacimiento
  • Representación JSON de datos extraídos
  • Validación con nombres y apellidos
  • Validación con nombre completo
  • Interfaz de Línea de Comandos

Documentación

Disponible en https://curpsuite.readthedocs.io.

Licencia

Este programa se distribuye bajo la licencia GPLv2.0, más información en el sitio de la Free Software Foundation.

Metadata

Release files for CURPSuite 2.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CURPSuite 2.7.0
File Size Uploaded Provenance Actions
curpsuite-2.7.0.tar.gz 30.3 kB Without provenance Details for curpsuite-2.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for CURPSuite 2.7.0
File Interpreter ABI Platform Actions
curpsuite-2.7.0-py3-none-any.whl Python 3 none any Details for curpsuite-2.7.0-py3-none-any.whl

Total release size: 52.6 kB

Release files / curpsuite-2.7.0.tar.gz

Download URL curpsuite-2.7.0.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
aa47a6ecea84a363f26deedb74c5084c1207d964e57a054a0231b3d8fed36197
BLAKE2b-256 checksum
How to use checksums
28bfbc5402b95c3d387f82a23c18a0a76f6e2a17f999f5d0cab456a7b39b9145
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / curpsuite-2.7.0-py3-none-any.whl

Download URL curpsuite-2.7.0-py3-none-any.whl
Size 22.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0177afe5ac858e594997b38b65f611234d8f622d042757693be8a2b29a591535
BLAKE2b-256 checksum
How to use checksums
72abbabb320aaa188053ba4275e76950489e61894b126dbc27e7b3e35f6fec20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for CURPSuite 2.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page