NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #2117 most downloaded on PyPI
A check digit library for data validation
Last release 3 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 1.9 years
Most releases are documented
notes for 13 of 15 stable releases
1 version withdrawn
withdrawn after publishing
8 years old
16 releases · first in 2019
Nothing published for this version
Fixed a bug where ISBN-13 calculations allowed for a check digit of X, which shouldn't be possible. Thanks to @mohsenBanan for the bug report #171 .
Commits: v0.4.0...v0.5.0
One column per quarter.
Please see the changelog .
Please see the changelog.
Dropped support for Python 3.6
Added support for Python 3.10 and 3.11
Please see the changelog .
Please see the changelog.
Added support for the Verhoeff algorithm.
The missing method has been refactored into one central location to massively reduce code duplication.
The numerous shell scripts for formatting/testing were replaced with a single Makefile.
Compatability Broken : A single ISBN function is now available, rather than the two separate ones for ISBN-10 and ISBN-13. ( #19 #63 )
A single ISBN function is now available, rather than the two separate ones for ISBN-10 and ISBN-13. ( #19 #63 )
Improved support for GS1-based codes, such as EAN-8 and UPC-E. ( #19 )
Added changelog and contributing pages.
On the main README, the individual GS1 and GTIN formats that are supported are noted (e.g. ISBN-10, GDTI, etc.)
The build tests were separated from the linting tests. ( #66 )
Breaking change : Parity methods no longer return the full block of data, so as to match the other check digit methods. They instead return the missin…
Breaking change: Parity methods no longer return the full block of data, so as to match the other check digit methods. They instead return the missing bit.
CRC Format Added (Thanks @sapieninja! ). ( #42 )
The Python API has been documented with examples.
Revamped the README .
Add a contributors section to appreciate everyone’s help!
Transition tests from error404 to pytest .
Move from GitHub Wiki to RTD (where you’re currently reading this). ( #41 )
Refactored ISBN and Luhn code.
Nothing published for this version
Adds GS1 capability, kindly submitted by @OtherBarry #38 . 🎉
Adds GS1 capability, kindly submitted by @OtherBarry #38. 🎉
GS1 Format Added (Thanks @OtherBarry! ). ( #38 )
checkdigit is now PEP 561 compatible ! This means that it has been marked as supporting type checking.
checkdigit is now PEP 561 compatible! This means that it has been marked as supporting type checking.
The inline documentation has been updated, and the code quality has been improved as a result of additional testing.
PEP 561 compatible , with support for type checking.
Updated docstrings and inline documentation.
Test script written to check formatting and improve code consistency.
©2023, Haren S.
| Page source
This is the biggest update of checkdigit yet. It clears up lots of redundant code and aims to improve things behind the scenes. This will help to impr
This is the biggest update of checkdigit yet. It clears up lots of redundant code and aims to improve things behind the scenes. This will help to improve future updates.
Please note that a lot of functions have been renamed. This is to help make things clearer both to the end user and in the code without having to make this change later on in development. If you were previously using this library, please see below for the name changes.
Please click on the title links for more info from the wiki.
| Original | New |
|---|---|
isbn10calculate |
calculate10 |
isbn10check |
validate10 |
isbn13calculate |
calculate13 |
isbn13check |
validate13 |
calculate_missing |
missing |
| Original | New |
|---|---|
luhn_calculate |
calculate |
luhn_validate |
validate |
luhn_missing |
missing |
A second parameter has been added indicating whether to use even parity or not.
| Original | New |
|---|---|
evenparity |
calculate(data) |
oddparity |
calculate(data, false) |
| Original | New |
|---|---|
upc_calculate |
calculate |
upc_check |
validate |
Can now calculate a missing digit with the Luhn Algorithm
Can now calculate a missing digit with the Luhn Algorithm
Support for Integers and Hyphens Added
Support for Integers and Hyphens Added
Support for UPC Codes Added Numbers involving the Luhn Algorithm are now also supported
Support for UPC Codes Added Numbers involving the Luhn Algorithm are now also supported
All intended ISBN Features completed Test cases rewritten
All intended ISBN Features completed Test cases rewritten
calculate_missing for 10 digits added Additional test cases included
calculate_missing for 10 digits added
Additional test cases included
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →