SIREN (a French company identification number).
The SIREN (Système d’Identification du Répertoire des Entreprises) is a 9 digit number used to identify French companies. The Luhn checksum is used to validate the numbers.
>>> compact('552 008 443')
'552008443'
>>> is_valid('404833048')
True
>>> is_valid('404833047')
False
>>> to_tva('443 121 975')
'46 443 121 975'
Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
Checks to see if the number provided is a valid number. This checks the length, formatting and check digit.
Return a TVA that prepends the two extra check digits to the SIREN.