A fast and simple in-place implementation of the luhn check algorithm.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
luhnmod10-1.0.2.tar.gz
(1.6 kB
view details)
File details
Details for the file luhnmod10-1.0.2.tar.gz.
File metadata
- Download URL: luhnmod10-1.0.2.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2eaa18ecfbc188f0d47ad7e5682f0618c841d2b6cf5e154b5d27dcda24c79cd2
|
|
| MD5 |
ccd105c63ac02cb37aabc043d906fe85
|
|
| BLAKE2b-256 |
74ff40f9523de7c56990c7f1c7587e113164252363c61ee751bd8e064f8a7928
|