crc
Pure Python CRC library
Decision gist · record as of 2026-08-14
Yes, for straightforward CRC checksum needs. The library is permissively licensed, has no dependencies, and covers common CRC configurations out of the box. Aging maintenance (647 days since last release) is a minor concern but the repository remains active and the codebase is stable; use it when you need standard CRC support without external dependencies.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >= 3.8.
- Currently supports only bit widths that are full bytes (8, 16, 24, 32, etc.).
- Low install friction with no runtime dependencies.
License · maintenance · safety
BSD-2-Clause (permissive) — BSD-2-Clause permissive license allows use in most projects with minimal restrictions; attribution required.
last release 2024-11-05 (647 days) · last repo commit 2026-01-12 · 64 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 910,970 downloads/mo, #4,747 on PyPI
Alternatives
Verify before relying
pip install crc
from crc import Calculator, Crc8
calculator = Calculator(Crc8.CCITT)
checksum = calculator.checksum(bytes([0, 1, 2, 3, 4, 5]))
print(checksum)- Performance characteristics of optimized mode versus standard mode for large datasets.
- Whether the library handles streaming/incremental checksum updates efficiently.
What it is and what it does
This is a pure Python library for computing CRC (cyclic redundancy check) checksums across multiple standard configurations and bit widths. It provides Calculator and Register classes to compute checksums on byte data, verify checksums against expected values, and supports both standard and table-based (optimized) computation modes.
The library ships with predefined configurations for common CRC variants (CCITT, XMODEM, MODBUS, GSM, PROFIBUS, and others across CRC8, CRC16, CRC32, and CRC64 widths), and allows defining custom configurations by specifying polynomial, init value, final XOR, and input/output reversal parameters. It has no external runtime dependencies and supports Python 3.8 through 3.12.
Use it for
- Verify data integrity in serial communication protocols that use CRC error detection.
- Implement checksum validation for file transfers or network packet verification.
- Generate CRC values for embedded systems or legacy hardware that expect specific CRC configurations.
- Add data integrity checks to custom binary formats or wire protocols.
- Validate checksums in BZIP2, POSIX, or other standard formats that use CRC.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, for straightforward CRC checksum needs.
The library is permissively licensed, has no dependencies, and covers common CRC configurations out of the box. Aging maintenance (647 days since last release) is a minor concern but the repository remains active and the codebase is stable; use it when you need standard CRC support without external dependencies.
Install
crc on PyPI
Before you install
Low install friction with no runtime dependencies. Aging maintenance status (647 days since last release, last commit 2026-01-12) but repository remains active and not archived.
Requires Python >= 3.8. Currently supports only bit widths that are full bytes (8, 16, 24, 32, etc.).
License in practice
BSD-2-Clause permissive license allows use in most projects with minimal restrictions; attribution required.
Quickstart
pip install crc
from crc import Calculator, Crc8
calculator = Calculator(Crc8.CCITT)
checksum = calculator.checksum(bytes([0, 1, 2, 3, 4, 5]))
print(checksum)
Verify before relying
- Performance characteristics of optimized mode versus standard mode for large datasets.
- Whether the library handles streaming/incremental checksum updates efficiently.
Package facts
| License | BSD-2-Clause permissive |
| Python support | Supports the current Python release <4.0,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 647 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 910,970 / month, #4,747 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: BSD LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: crc-7.1.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “crc verification”
- crcCalculate, verify, and manage CRC checksums using predefined…
- fastcrcfastcrc computes CRC checksums (8, 16, 32, and 64-bit variants) using…
- crcmodComputes Cyclic Redundancy Check (CRC) values for 8, 16, 24, 32, or…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also anycrc · crccheck · crcengine · fastcrc · lpc-checksum · crcmod · libscrc · crc32c · paytmchecksum · luhn