Luhn (Mod 10)
A fast and simple in-place implementation of the luhn check algorithm in Python. Implementations in other languages can be found at github.com/luhnmod10.
Usage
Install the package:
pip install luhnmod10
Or:
easy_install luhnmod10
Then:
from luhnmod10
luhnmod10.valid('4242424242424242')
Contributing
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.
Release files for luhnmod10 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| luhnmod10-1.0.2.tar.gz | 1.6 kB | Details |
Release files / luhnmod10-1.0.2.tar.gz
| Download URL | luhnmod10-1.0.2.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2eaa18ecfbc188f0d47ad7e5682f0618c841d2b6cf5e154b5d27dcda24c79cd2
|
|
BLAKE2b-256 checksum How to use checksums |
74ff40f9523de7c56990c7f1c7587e113164252363c61ee751bd8e064f8a7928
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |