A fast and simple in-place implementation of the luhn check algorithm.
Install the package:
pip install luhnmod10
from luhnmod10 luhnmod10.valid('4242424242424242')
Contributions are welcome! If you can improve the execution time of this implementation without increasing its complexity, please open a pull request. To test your change, run make in the repository to run the tests and the benchmarks.