Releases: harens/checkdigit
v0.5.0
🐛 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.
Commits: v0.4.0...v0.5.0
v0.4.0
v0.3.1
v0.3.0
v0.2.0
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
v0.1.1
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
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
Can now calculate a missing digit with the Luhn Algorithm
v0.0.5-Alpha
Support for Integers and Hyphens Added