libscrc
Library for calculating CRC3/CRC4/CRC8/CRC16/CRC24/CRC32/CRC64/CRC82
What it is and what it does
libscrc is a Python binding to a compiled CRC calculation library supporting a large range of CRC polynomial variants used in industrial protocols, telecommunications, and data integrity applications. It exposes individual functions for each CRC type (e.g., libscrc.modbus, libscrc.xmodem, libscrc.crc32) that accept byte strings or bytearrays and return integer checksums. The library supports both single-pass calculation and incremental computation, where a previous CRC result can be passed as a second argument to continue checksumming additional data.
The package is distributed as pre-compiled wheels for CPython 2.7 and 3.4–3.12 across Linux (x86_64, ARM, ARM64), macOS, Windows, and musl-based systems, minimizing compilation overhead on common platforms. It has no runtime dependencies beyond the Python standard library and wheel metadata.
Use it for:
- Verify Modbus RTU protocol checksums in industrial automation and SCADA systems
- Calculate CRC16 or CRC32 for data transmission protocols like Xmodem or Zmodem
- Implement incremental CRC checksums for streaming or large file integrity checks
- Validate RFID EPC tags and other embedded system checksums
- Compute TCP/UDP pseudo-header checksums for network packet validation
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
libscrc provides a compiled library for calculating CRC checksums across many variants (CRC3 through CRC82), supporting both single-pass and incremental computation on byte data.
Yes, if you need CRC calculation and can accept GPLv3+ licensing. The package is actively maintained, widely pre-compiled, and covers an unusually comprehensive set of CRC variants. Install friction is low for most modern Python environments. Not suitable for proprietary projects without a separate license agreement.
Install
libscrc on PyPI
pip
pip install libscrcuv
uv add libscrcpoetry
poetry add libscrcInstalling libscrc
Before you install
Medium install friction due to compiled wheels. The package is actively maintained with recent commits and has broad pre-built wheel coverage across Python 2.7 through 3.12 and multiple platforms (x86_64, ARM, Windows), reducing build requirements for most users.
License in practice
Licensed under GPLv3+, a copyleft license. Any derivative work or distribution must also be open-source under compatible terms; proprietary projects cannot use this without obtaining an alternative license.
Quickstart
pip install libscrc
import libscrc
crc16 = libscrc.modbus(b'1234')
crc16 = libscrc.xmodem(b'5678', crc16) # incremental
Verify before relying
- Whether the package is still actively maintained beyond the last release date (2022-08-18) given the 1457 days since release
- Performance characteristics and typical use cases for incremental CRC computation introduced in v1.4+
Package facts
| License | not declared (copyleft) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — wheel |
| Maintenance | actively maintained — 1,457 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 498,874/month — #6,327 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: libscrc-1.8.1-cp27-cp27m-macosx_12_0_x86_64.whl; libscrc-1.8.1-cp27-cp27mu-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; libscrc-1.8.1-cp27-cp27mu-manylinux_2_5_x86_64.manylinux1_x86_64.whl; libscrc-1.8.1-cp310-cp310-macosx_10_9_universal2.whl; libscrc-1.8.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; libscrc-1.8.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; libscrc-1.8.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl; libscrc-1.8.1-cp310-cp310-musllinux_1_2_x86_64.whl; libscrc-1.8.1-cp310-cp310-win32.whl; libscrc-1.8.1-cp310-cp310-win_amd64.whl; libscrc-1.8.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.whl; libscrc-1.8.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.whl; libscrc-1.8.1-cp34-cp34m-manylinux_2_5_x86_64.manylinux1_x86_64.whl; libscrc-1.8.1-cp34-cp34m-win32.whl; libscrc-1.8.1-cp34-cp34m-win_amd64.whl; libscrc-1.8.1-cp35-cp35m-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; libscrc-1.8.1-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl; libscrc-1.8.1-cp35-cp35m-win32.whl; libscrc-1.8.1-cp35-cp35m-win_amd64.whl; libscrc-1.8.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Keywords: CRC3, CRC4, CRC5, CRC6, CRC7, CRC8, CRC16, CRC24, CRC32, CRC64, CRC82
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
fastcrcfastcrc computes CRC checksums (8, 16, 32, and…
permissive · top 5,000 on PyPI
crccheckCalculates CRC and checksum values from binary…
permissive · top 5,000 on PyPI
crcCalculate, verify, and manage CRC checksums…
permissive · top 5,000 on PyPI
crcengineCrcEngine provides table-based and bit-bashing…
copyleft · top 15,000 on PyPI
anycrcCalculates CRC hashes of arbitrary bit widths…
permissive · top 15,000 on PyPI
crcmodComputes Cyclic Redundancy Check (CRC) values…
permissive · top 5,000 on PyPI
lpc-checksumCalculates LPC firmware checksums for embedded…
permissive · top 15,000 on PyPI
filehashCalculates and verifies file checksums and…
permissive · top 15,000 on PyPI
hexrecLoads, edits, and saves hexadecimal record…
permissive · top 15,000 on PyPI
deflateThin Python wrapper around libdeflate for fast…
permissive · top 15,000 on PyPI