1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
rut-chile
Python module that provides common functionality regarding Chilean RUT
Installation
pip install rut_chile
or
git clone https://github.com/gevalenz/rut-chile.git
python setup.py install
Usage
Validate RUT
from rut_chile 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
from rut_chile import rut_chile
rut_chile.get_verification_digit("9868503")
# returns "0"
rut_chile.get_verification_digit("12667869")
# returns "k"
rut_chile.get_capitalized_verification_digit("12667869")
# returns "K"
Format RUT
from rut_chile import rut_chile
rut_chile.format_rut_with_dots("12667869k")
# returns "12.667.869-k"
rut_chile.format_rut_without_dots("12667869k")
# returns "12667869-k"
rut_chile.format_capitalized_rut_without_dots("12667869k")
# returns "12667869-K"
rut_chile.format_capitalized_rut_with_dots("12667869k")
# returns "12.667.869-K"
Release files for rut-chile 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rut_chile-2.0.0.tar.gz | 3.4 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rut_chile-2.0.0-py3.6.egg | Legacy Egg format | - | - | Details |
| rut_chile-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / rut_chile-2.0.0.tar.gz
| Download URL | rut_chile-2.0.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db37626a4821075a8be32aad9cb1426794d83180c12819947b3d069cbe5ef236
|
|
BLAKE2b-256 checksum How to use checksums |
d0ed4941244f9911f997dba1f3450a81ab7842d0593e82508d3be060de5e9145
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.2
|
Release files / rut_chile-2.0.0-py3.6.egg
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | rut_chile-2.0.0-py3.6.egg |
|---|---|
| Size | 5.6 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
64de2c0085bdeb0558d957b3f4b3f7c2db1298d91e887f4c8d65d965dceb68b3
|
|
BLAKE2b-256 checksum How to use checksums |
61dba7e033d119fc3e3be3e97d98250720e6534ad6eb79cd21745f6f91cf2fb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.2
|
Release files / rut_chile-2.0.0-py3-none-any.whl
| Download URL | rut_chile-2.0.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82c5eebb89e9b4b6c6708157aacbfa83c86b0bcf381305f7bd7cc52f5cc93f74
|
|
BLAKE2b-256 checksum How to use checksums |
a21b8b8c4b9064a1d9ff5adc5be9cbcbee191c0b228ce94d85502c0e3729c35c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.2
|