Skip to main content

Luhn (Mod 10)

https://travis-ci.org/luhnmod10/python.svg?branch=master

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)

Source distribution for luhnmod10 1.0.2
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

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page