3 releases
0.1.2 | Oct 3, 2023 |
---|---|
0.1.1 | Oct 3, 2023 |
0.1.0 | Oct 3, 2023 |
#1574 in Algorithms
120KB
2.5K
SLoC
Dammcheck
Implementation of the Damm Algorithm in various bases/alphabets.
Usage
import dammcheck
# List available built-in alphabets
dammcheck.builtin_alphabets()
# Calculate the Damm check digit using a built-in alphabet
dammcheck.damm("ABC", alphabet="base32crockford")
# Or a custom alphabet
dammcheck.damm("TATA", custom_alphabet="ACGT")
Dependencies
~2.8–7.5MB
~72K SLoC