libscrc is a Python library designed for calculating various Cyclic Redundancy Check (CRC) values, including CRC3, CRC4, CRC8, CRC16, CRC24, CRC32, CRC64, and CRC82. The latest version is 1.8.1, released on August 18, 2022. While releases are not frequent, the project shows ongoing maintenance and issue tracking through its GitHub repository.
pip install libscrcVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to calculate common CRC types using `libscrc` functions like `modbus`, `intel`, `crc32`, and `xmodem`. It also includes an example of gradual CRC calculation, a feature supported since version 1.4+.
Ensure you have a C compiler and Python development headers installed (e.g., `build-essential` on Linux, Xcode Command Line Tools on macOS, Visual C++ Build Tools on Windows) before attempting `pip install libscrc`.
If using gradual CRC calculation, verify its behavior with your specific `libscrc` version. Refer to the GitHub README or PyPI changelog for the exact functionality available in your installed version.
Always confirm the exact CRC standard you need and consult `libscrc`'s documentation or source code to ensure you are calling the correct function with appropriate parameters (e.g., `poly`, `initvalue`) for your specific use case.
Install the necessary build tools for your operating system. For Debian/Ubuntu: `sudo apt-get install build-essential python3-dev`. For macOS: `xcode-select --install`. For Windows, install 'Desktop development with C++' from Visual Studio Installer.
Review the output of `pip install libscrc` for any error messages, especially those related to building wheels or C compilation. Ensure a C compiler and Python development headers are installed, then try reinstalling.
No dependency data recorded yet.