Google CRC32C
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.
Warnings
- breaking Python versions below 3.9 are not supported.
- gotcha Ensure correct usage: import from 'google_crc32c', not 'crc32c'.
Install
-
pip install google-crc32c
Imports
- crc32c
from google_crc32c import crc32c
Quickstart
import os
from google_crc32c import crc32c
# Example usage
data = b'This is a test'
checksum = crc32c(data)
print('CRC32C Checksum:', checksum)