CURP Suite
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.8+.
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
- Fecha de nacimiento como objeto
- 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.
Release files for CURPSuite 2.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| CURPSuite-2.6.1.tar.gz | 1.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| CURPSuite-2.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.4 MB
Release files / CURPSuite-2.6.1.tar.gz
| Download URL | CURPSuite-2.6.1.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f27b01e99be6925c159f470b300155aafa9f6848ead390a77b9dd8241dfb50a8
|
|
BLAKE2b-256 checksum How to use checksums |
af2fbe7d50d110f9608a0cfab9f3021e4cd59b0b3adfef6a77f9ff53dce0468c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / CURPSuite-2.6.1-py3-none-any.whl
| Download URL | CURPSuite-2.6.1-py3-none-any.whl |
|---|---|
| Size | 22.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
015ead7a6aefafedecab0762dda888ee73e25ee94c919faa5e63c5d4cacbe389
|
|
BLAKE2b-256 checksum How to use checksums |
970fac8f5fc587b788260a774ddd89b58092dfd0218e8c9ab66a9b79799deee8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|