Google CRC32C

1.8.0 · active · verified Sat Mar 28

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

Install

Imports

Quickstart

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)

view raw JSON →