CUI‑GT
Valida el Código Único de Identificación (CUI) de Guatemala desde Python o JavaScript/TypeScript con una sola función.
Repo oficial: https://github.com/aalonzolu/cui-gt
1 · Instalación rápida
Python (≥3.8)
pip install cui-gt # desde PyPI
JavaScript / TypeScript (Node ≥18)
npm i cui-gt # o yarn add cui-gt / pnpm add cui-gt
El nombre del paquete es el mismo en ambos ecosistemas: cui-gt.
2 · Ejemplos de uso
Python
from cui_gt import is_valid_cui
print(is_valid_cui("5486270650101")) # True o False
JavaScript / TypeScript
import { isValidCui } from "cui-gt";
console.log(isValidCui("5486270650101")); // true / false
3 · Cómo funciona (resumen)
- Comprueba que el CUI tenga 13 dígitos.
- Valida que el departamento (01‑22) y municipio existan.
- Calcula el dígito verificador con módulo 11.
Todo se hace localmente; no se llama a ningún servicio externo.
4 · Contribuir
- Haz fork del repo y crea una rama.
- Corre
pytest(Python) ynpm test(JS). - Abre un Pull Request.
5 · Licencia
MIT.
Metadata
Release files for cui-gt 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cui_gt-0.2.0.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cui_gt-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / cui_gt-0.2.0.tar.gz
| Download URL | cui_gt-0.2.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ebdf606b6aa3e094b16002cf8c6f08a033177ca515f85ddc602b532c1bc719b
|
|
BLAKE2b-256 checksum How to use checksums |
e08d032a69080f5c9242cc906c1d453d5642d0c0c706ccfe3cdfbf37e2d97f28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / cui_gt-0.2.0-py3-none-any.whl
| Download URL | cui_gt-0.2.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfa5c29fe77b3273cefde860faa9b43909f08df727e58681201e1a2bc18d9036
|
|
BLAKE2b-256 checksum How to use checksums |
af8bc5c813ff88505cb11525d1a0f80e886eb48a2239ef7c02776316a39d620b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|