stdnum.ar.cuit¶
CUIT (Código Único de Identificación Tributaria, Argentinian tax number).
The CUIT is a taxpayer identification number used for VAT (IVA, Impuesto al Valor Agregado) and other taxes.
More information:
https://es.wikipedia.org/wiki/Clave_Única_de_Identificación_Tributaria
>>> validate('20-05536168-2')
'20055361682'
>>> validate('20267565392')
Traceback (most recent call last):
...
InvalidChecksum: ...
>>> format('20267565393')
'20-26756539-3'
-
stdnum.ar.cuit.
calc_check_digit
(number)¶ Calculate the check digit.
-
stdnum.ar.cuit.
compact
(number)¶ Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
-
stdnum.ar.cuit.
format
(number)¶ Reformat the number to the standard presentation format.
-
stdnum.ar.cuit.
is_valid
(number)¶ Check if the number is a valid CUIT.
-
stdnum.ar.cuit.
validate
(number)¶ Check if the number is a valid CUIT.