Skip to main content

rut-chile

Python module that provides common functionality regarding Chilean RUT

Build Status

Installation

pip install rut_chile

or

git clone https://github.com/gevalenz/rut-chile.git

python setup.py install

Usage

Validate RUT

import rut_chile

rut_chile.is_valid_rut("12345678-9")
# returns False
rut_chile.is_valid_rut("6265837-1")
# returns True


# It works with the following formats

rut_chile.is_valid_rut("98685030")
# returns True
rut_chile.is_valid_rut("9868503-0")
# returns True
rut_chile.is_valid_rut("9.868.503-0")
# returns True
rut_chile.is_valid_rut("12.667.869-K")
# returns True
rut_chile.is_valid_rut("12.667.869-k")
# returns True

Get verification digit

import rut_chile

rut_chile.get_verification_digit("9868503")
# returns "0"
rut_chile.get_verification_digit("12667869")
# returns "k"

Metadata

Release files for rut-chile 1.0.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 rut-chile 1.0.0
File Size Uploaded Provenance Actions
rut_chile-1.0.0.tar.gz 2.1 kB Without provenance Details for rut_chile-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rut-chile 1.0.0
File Interpreter ABI Platform Actions
rut_chile-1.0.0-py3-none-any.whl Python 3 none any Details for rut_chile-1.0.0-py3-none-any.whl

Total release size: 4.7 kB

Release files / rut_chile-1.0.0.tar.gz

Download URL rut_chile-1.0.0.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b5b0c9d2f67ddf600f0975df82e23839ab8953f81a3d8ba606e645f7773763e9
BLAKE2b-256 checksum
How to use checksums
607287b3800f90bfac7b35633fb27ecb2641d42df279c858272c5aff7de38533
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.6.5

Release files / rut_chile-1.0.0-py3-none-any.whl

Download URL rut_chile-1.0.0-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db9e68d55a1efd8263b10ce481eef808a451bde24a8c91696621491575b236f0
BLAKE2b-256 checksum
How to use checksums
bca818b290229cb48a831db32779bf4f9f17d945d95cd4129b5a9be7247458d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.6.5

Security for rut-chile 1.0.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