Skip to main content

A fast and simple in-place implementation of the luhn check algorithm.

Project description

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.

Project details


Release history Release notifications

This version
History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
luhnmod10-1.0.2.tar.gz (1.6 kB) Copy SHA256 hash SHA256 Source None Jul 30, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page