Skip to main content
checkdigit logo

GitHub Tests status Codecov PyPi - Downloads CodeFactor 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

  • 📦 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!

🔨 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.

Release files for checkdigit 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for checkdigit 0.5.0
File Size Uploaded
checkdigit-0.5.0.tar.gz 22.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for checkdigit 0.5.0
File Interpreter ABI Platform
checkdigit-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 49.8 kB

Release files / checkdigit-0.5.0.tar.gz

Download URL checkdigit-0.5.0.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fe493397f2b95e4e726573a5a70b200f23b270e6d89c21847dea22024fe970e2
BLAKE2b-256 checksum
How to use checksums
4a5620c586918b2c4c12549bca8ddf2c23a238b9ad58d20d392724deb8034d9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.11.2 Darwin/21.5.0

Release files / checkdigit-0.5.0-py3-none-any.whl

Download URL checkdigit-0.5.0-py3-none-any.whl
Size 27.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc76a20005a1cedfaf8d3358d2a970788e994b16ccf7fbe2624f1a043b4a07cf
BLAKE2b-256 checksum
How to use checksums
25412f546c899c60d63cf07897c22677f88e3aa90c175abbf786a5b777f6b0af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.11.2 Darwin/21.5.0

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page