Registry / gcp / google-crc32c

google-crc32c

JSON →
library1.8.0pypypi✓ verified 25d ago

A Python wrapper of the C library 'Google CRC32C', currently at version 1.8.0. It supports Python versions from 3.9 onwards and is actively maintained with regular updates.

pip install google-crc32c
INSTALL
IMPORT
SIG · GOOGLE-CRC32C
G
google-crc32c
gcppythonv1.8.0
Install
1.7s avg
Import
10ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.8.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.002s · 17.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Checksum
from google_crc32c import Checksum
from google_crc32c import crc32c
value
from google_crc32c import value
from google_crc32c import crc32c
extend
from google_crc32c import extend
from google_crc32c import crc32c

Calculate the CRC32C checksum of a byte string.

import os from google_crc32c import crc32c # Example usage data = b'This is a test' checksum = crc32c(data) print('CRC32C Checksum:', checksum)
Debug
Known issues
breakingPython versions below 3.9 are not supported.
fix
Upgrade Python to 3.9 or higher.
affects: <3.9
breakingThe 'crc32c' object cannot be imported from 'google_crc32c', even with the correct import syntax 'from google_crc32c import crc32c'. This typically occurs when the library's C extension fails to build or load, preventing the `crc32c` function from being properly exposed by the module. A pure Python fallback might be used, but could also lead to issues if not correctly initialized.
fix
Ensure your build environment contains necessary C compiler tools (e.g., 'build-base' on Alpine, 'gcc' on Debian/Ubuntu) and Python development headers (e.g., 'python3-dev' or 'python-dev'). Install these dependencies before installing `google-crc32c`. For Alpine, this often means `apk add build-base python3-dev`. If a pure Python fallback is intended, verify its implementation correctly exposes `crc32c`.
affects: All
Upgrade
Version history
1.8.0latest on PyPI · released Dec 16, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
32
OpenAI (training)
1
Resources
google-crc32c — pip install google-crc32c · libregistry