Skip to content
/ pyluhn Public

Basic Implementation for Luhn AlgorithmUseful for Verifying Credit Cards.

License

Notifications You must be signed in to change notification settings

kadir/pyluhn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyLuhn

pypi

Basic Implementation for Luhn AlgorithmUseful for Verifying Credit Cards.

Installation

Use pip install pyluhn or python setup.py install.

Usage

verify checks whether the given string is a valid Luhn string in the given base. By default, base is 10:

>>> from pyluhn import verify
>>> verify('5105105105105100') # MasterCard Test Card
True
>>> verify('5105105105105101') # Test Number
False

About

Basic Implementation for Luhn AlgorithmUseful for Verifying Credit Cards.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages