Skip to main content

Module digits

Module digits 

Source

Enumsยง

DigitsError
Error in a digit string.

Functionsยง

check_iccid
Checks that an ICCID has 19 or 20 digits and a valid Luhn check digit.
check_imei
Checks that an IMEI has 15 digits and a valid Luhn check digit.
check_imsi
Checks that an IMSI has 6 to 15 digits and a plausible MCC.
check_luhn ๐Ÿ”’
Checks the last digit with the Luhn algorithm.
luhn_check_digit ๐Ÿ”’
Computes the Luhn check digit for the ASCII digits in payload.
parse ๐Ÿ”’
Returns the ASCII digits of value.
value ๐Ÿ”’
Returns the value of an ASCII digit.