Skip to main content

A hyper-fast Python module for computing CRC(16, 32, 64) checksum

Project description

Read the Docs PyPI Python - Version

A hyper-fast Python module for computing CRC(16, 32, 64) checksum.

Installation

pip install fastcrc

Usage

from fastcrc import crc16, crc32, crc64

data = b"123456789"
print(f"crc16 checksum with xmodem algorithm: {crc16.xmodem(data)}")
print(f"crc32 checksum with aixm algorithm: {crc32.aixm(data)}")
print(f"crc64 checksum with ecma_182 algorithm: {crc64.ecma_182(data)}")
print(f"crc16 checksum with xmodem algorithm (with initial data): {crc16.xmodem(b'56789', crc16.xmodem(b'1234'))}")

Documentation

fastcrc’s documentation can be found at https://fastcrc.readthedocs.io

License

fastcrc is licensed under MIT License.

Thanks

fastcrc is made possible by crc-rs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastcrc-0.2.1.tar.gz (17.7 kB view hashes)

Uploaded Source

Built Distributions

fastcrc-0.2.1-cp36-abi3-win_amd64.whl (155.3 kB view hashes)

Uploaded CPython 3.6+ Windows x86-64

fastcrc-0.2.1-cp36-abi3-win32.whl (147.3 kB view hashes)

Uploaded CPython 3.6+ Windows x86

fastcrc-0.2.1-cp36-abi3-musllinux_1_1_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.6+ musllinux: musl 1.1+ x86-64

fastcrc-0.2.1-cp36-abi3-musllinux_1_1_aarch64.whl (1.2 MB view hashes)

Uploaded CPython 3.6+ musllinux: musl 1.1+ ARM64

fastcrc-0.2.1-cp36-abi3-manylinux_2_24_armv7l.whl (1.0 MB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.24+ ARMv7l

fastcrc-0.2.1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ARM64

fastcrc-0.2.1-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.5+ x86-64

fastcrc-0.2.1-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl (1.1 MB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.5+ i686

fastcrc-0.2.1-cp36-abi3-macosx_11_0_arm64.whl (250.6 kB view hashes)

Uploaded CPython 3.6+ macOS 11.0+ ARM64

fastcrc-0.2.1-cp36-abi3-macosx_10_7_x86_64.whl (257.3 kB view hashes)

Uploaded CPython 3.6+ macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page