Skip to content

🔒 An easy-to-use check digit library for data validation

License

Notifications You must be signed in to change notification settings

harens/checkdigit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

checkdigit

Travis build status Latest PyPi release version number PyPi format Current state (Alpha/Beta/Stable etc.) Supported Python versions

Checking digits with a digit!

Sample Parity Sample UPC

Sample ISBN Sample Luhn

Installation

pip install checkdigit

Or download the project here

Features

  • Add a parity digit to a string of binary
  • ISBN
    • Validates both ISBN-10 and ISBN-13 Codes
    • Determines Missing Digits
    • Calculates Check Digits
  • UPC
    • Evaluates Check Digits
    • Validates UPC Codes
  • Luhn
    • Validates Credit Cards, IMEI Numbers, and more!
    • Determines Check Digits

Tests

The test folder can be found here here

You can run the tests by running python tests.py

Here is an example output:

Example Tests

License

This project is licensed under the GNU General Public License v3.0