Skip to content
Checking digits with a digit!
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
art
checkdigit License Updates Feb 16, 2019
tests Luhn_Calculate Added Jan 25, 2019
.gitignore Initial commit Jan 19, 2019
.travis.yml Further Image Reductions + Travis Deployment Fix Jan 23, 2019
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Jan 24, 2019
LICENSE
README.md Luhn_Calculate Added Jan 25, 2019
setup.py

README.md

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
    • Calculate Missing 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

You can’t perform that action at this time.