RUTCL
Libreria en Python para validar, formatear y calcular RUT chileno. Sin dependencias externas.
Instalacion
pip install rutcl
Funciones
validar_rut(rut)
Valida si un RUT es correcto comparando el digito verificador.
from rutcl import validar_rut
validar_rut("12.345.678-5") # True
validar_rut("12.345.678-9") # False
validar_rut("60803000-K") # True (Ministerio de Hacienda)
calcular_dv(rut)
Calcula el digito verificador de un RUT.
from rutcl import calcular_dv
calcular_dv("12345678") # "5"
calcular_dv("60803000") # "K"
formatear_rut(rut)
Formatea un RUT con puntos y guion.
from rutcl import formatear_rut
formatear_rut("123456785") # "12.345.678-5"
formatear_rut("12345678K") # "12.345.678-K"
limpiar_rut(rut)
Elimina puntos, guiones y espacios de un RUT.
from rutcl import limpiar_rut
limpiar_rut("12.345.678-5") # "123456785"
Licencia
MIT
Metadata
Release files for rutcl 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| rutcl-0.1.1.tar.gz | 3.1 kB | With provenance | Details for rutcl-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rutcl-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for rutcl-0.1.1-py3-none-any.whl |
Total release size: 10.3 kB
Release files / rutcl-0.1.1.tar.gz
| Download URL | rutcl-0.1.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88ae6cab9a7945026200418ea197e8d81386902b605fc1c556c58aeabd417d04
|
|
BLAKE2b-256 checksum How to use checksums |
2c7991f6b3d273ad5b1e5a267bf05f7969c4e9bb52475b5d35cbb8c9c15d1f52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency logRelease files / rutcl-0.1.1-py3-none-any.whl
| Download URL | rutcl-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eae230ae4a23b53946f0db1e0201c4c3cac19e19d2a7e75a369f0d95d0da06c3
|
|
BLAKE2b-256 checksum How to use checksums |
ae4f82b5bf8063be4a2aedf056cfda2173f928115c08549ccf0d21c4f7cd3a11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency logSecurity for rutcl 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rutcl-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency logA 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.