skillfed

libscrc

Library for calculating CRC3/CRC4/CRC8/CRC16/CRC24/CRC32/CRC64/CRC82

libscrc v1.8.1 498.9K downloads/30d#6,327 on PyPI61
Copyleft license Active released

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 libscrc

uv

uv add libscrc

poetry

poetry add libscrc

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)Programming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules

Tags

CRC checksum calculationcyclic redundancy check libraryCRC16 CRC32 CRC8data integrity verificationmodbus CRC checksumincremental CRC computationmulti-variant CRC algorithms
checksum-validationprotocol-implementationdata-integrity

More Python Modules packages