Skip to content

Releases: harens/checkdigit

v0.5.0

09 Apr 12:34
v0.5.0
c6d7856
Compare
Choose a tag to compare

馃悰 Bugfixes

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

Full Changelog

Commits: v0.4.0...v0.5.0

v0.4.0

15 Jan 17:12
v0.4.0
0a46f6d
Compare
Choose a tag to compare

Please see the changelog.

v0.3.1

27 Jul 10:15
404c525
Compare
Choose a tag to compare

Please see the changelog.

v0.3.0

21 Jun 08:53
e8edb5e
Compare
Choose a tag to compare

Compatability Broken: A single ISBN function is now available, rather than the two separate ones for ISBN-10 and ISBN-13. (#19 #63)

For the full changelog, please see here.

v0.2.0

21 May 10:41
bc551e6
Compare
Choose a tag to compare

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.

Formats

  • CRC Format Added (Thanks @sapieninja!)
  • Refactored ISBN and Luhn code

Docs

  • Revamped the README
  • Move docs to RTD

Behind the scenes

  • Transition tests from error404 to pytest
  • Add the @all-contributors bot, to celebrate everyone's contributions!

v0.1.2

04 May 12:31
b8eb7ac
Compare
Choose a tag to compare

Adds GS1 capability, kindly submitted by @OtherBarry #38. 馃帀

v0.1.1

04 Dec 12:29
efff9c6
Compare
Choose a tag to compare

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.

v0.1

29 Nov 15:19
2e3c0eb
Compare
Choose a tag to compare

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.

What's new?

Code

  • Refactored various functions
  • Docstrings and type-checking added

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.

ISBN

Original New
isbn10calculate calculate10
isbn10check validate10
isbn13calculate calculate13
isbn13check validate13
calculate_missing missing

Luhn

Original New
luhn_calculate calculate
luhn_validate validate
luhn_missing missing

Parity

A second parameter has been added indicating whether to use even parity or not.

Original New
evenparity calculate(data)
oddparity calculate(data, false)

UPC

Original New
upc_calculate calculate
upc_check validate

Documentation

  • A Wiki has been created documenting how all the functions work with examples
  • README updated

Tests

  • Moved tests to error404
  • Additional tests added
  • Coverage report generated
  • Moved from Travis CI to GitHub Actions

Other

  • Moved to poetry for dependency management

v0.0.6-Alpha

25 Jan 13:53
Compare
Choose a tag to compare
v0.0.6-Alpha Pre-release
Pre-release

Can now calculate a missing digit with the Luhn Algorithm

v0.0.5-Alpha

25 Jan 13:25
Compare
Choose a tag to compare
v0.0.5-Alpha Pre-release
Pre-release

Support for Integers and Hyphens Added