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

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

checkdigit logo

GitHub Workflow Status Codecov PyPI - Downloads CodeFactor Grade

checkdigit example


Packaging status

checkdigit is a pure Python library built for identification numbers. You want to validate a credit card number, or maybe even calculate a missing digit on an ISBN code? We've got you covered ๐Ÿ˜Ž.

Want to know more? Check out the API Reference and documentation!

Installation

MacPorts ๐ŸŽ

sudo port install py-checkdigit

PyPi ๐Ÿ

pip install checkdigit

โœจ Features

  • ๐Ÿ“ฆ Works out of the box with all supported Python versions (3.7-3.11).
  • โŒจ๏ธ PEP 561 compatible, with built in support for type checking.
  • ๐Ÿƒ Zero runtime dependencies. What you see is what you get.
  • ๐Ÿงฎ Capable of calculating missing digits or validating a block of data.
  • ๐Ÿ“ Extensive in-code comments and docstrings to explain how it works behind the scenes.

โœ… Supported Formats

For each of these formats, we provide functions to validate them and calculate missing digits.

Do you have any formats that you'd like to see supported? ๐Ÿค” Feel free to raise an issue, or even to send a pull request!

โœจ Contributors

This project follows the all-contributors specification. Contributions of any kind are welcome!

Want to help out? Check out the contributing page.

Thanks goes to these wonderful people (emoji key):


Timothy Langer

โš ๏ธ ๐Ÿ“–

Charlie Wilson

๐Ÿ’ป โš ๏ธ

Max Bowman

๐Ÿ’ป โš ๏ธ

Mohsen BANAN

๐Ÿ›

๐Ÿ“™ License

This project is licensed under GPL-3.0-or-later.