gevalenz / rut-chile Goto Github PK
View Code? Open in Web Editor NEWPython module that provides common functionality regarding Chilean RUT
License: MIT License
Python module that provides common functionality regarding Chilean RUT
License: MIT License
se podría incluir parámetro opcional para el método is_valid_rut que sirva para considerar el formato? ej:
fotmato_1 = 1111111-1
formato_2 = 1111111
formato_3 = 11111111
formato_4 = 1.111.111-1
Hola, me di cuenta que el método format_rut_with_dots() formatea mal el rut si recibe un rut sin puntos pero con guión.
Ej:
from rut_chile import rut_chile
rut_chile.format_rut_with_dots('14582980-6')
145.829.80--6
Getting this error when using the version from PyPI:
$ pip install rut-chile
Collecting rut-chile
Downloading rut_chile-1.2.0-py3-none-any.whl (3.2 kB)
Installing collected packages: rut-chile
Successfully installed rut-chile-1.2.0
$ ipython
Python 3.9.5 (default, May 24 2021, 12:50:35)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.22.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import rut_chile
In [2]: rut_chile.is_valid_rut
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-2-6504bd54479c> in <module>
----> 1 rut_chile.is_valid_rut
AttributeError: module 'rut_chile' has no attribute 'is_valid_rut'
Apparently PyPI has version 1.2.0 but the repo seems to be already in 2.0.0 in GitHub.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.