Last updated:
0 purchases
checkdigit 0.5.0
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
Even/Odd binary parity
CRC
GS1 Standards
EAN-8/13
GDTI
GLN
SSCC
UPC-A/E
etc. (all fixed length numeric GS1 data structures with a check digit)
ISBN-10/13
Luhn
Verhoeff
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!
๐จ Contributing
Contributing Page: https://checkdigit.rtfd.io/en/latest/contributing.html
Issue Tracker: https://github.com/harens/checkdigit/issues
Source Code: https://github.com/harens/checkdigit
Any change, big or small, that you think can help improve this project is more than welcome ๐.
As well as this, feel free to open an issue with any new suggestions or bug reports. Every contribution is appreciated.
To find out more, please read our contributing page. Thank you!
๐ License
This project is licensed under GPL-3.0-or-later.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.