Skip to content

v0.1

Compare
Choose a tag to compare
@harens harens released this 29 Nov 15:19
· 191 commits to master since this release
2e3c0eb

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