Skip to main content

A check digit library for data validation

Project description

checkdigit logo

GitHub Tests status Codecov PyPi - Downloads CodeFactor Grade LGTM Grade
checkdigit repology

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

  • PEP 561 compatible, with built in support for type checking.
  • 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!

🔨 Contributing

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for checkdigit, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size checkdigit-0.3.1-py3-none-any.whl (27.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size checkdigit-0.3.1.tar.gz (23.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page