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"
rut_chile.get_verification_digit("12667869", True)
# returns "K"

Metadata

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

Built distribution (wheel)

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

Total release size: 4.9 kB

Release files / rut_chile-1.1.0.tar.gz

Download URL rut_chile-1.1.0.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a810a717eb037305b5a350b44502e2ac4fac1bb9355097732f0f6bba3a977ad1
BLAKE2b-256 checksum
How to use checksums
60ee9ffa763cb299e318a350f6ab9cb869c7746267d3664dd1e1fbca247624cf
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.1.0-py3-none-any.whl

Download URL rut_chile-1.1.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7af8fea1b70f90f36bb835bc9a9e4854c831516b00d750254f0cdd175dd38766
BLAKE2b-256 checksum
How to use checksums
1e9ce702f70b14a84f5f45c7e3a2ae39b8c70cf932683f2f7849b0ddf0e388c4
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.1.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