Skip to main content

A python package exposing the Intel SSE4.2 CRC32C instruction

Project description

https://travis-ci.org/ICRAR/crc32c.svg?branch=master https://ci.appveyor.com/api/projects/status/lamys36iude1x180/branch/master?svg=true https://badge.fury.io/py/crc32c.svg

This package exposes to Python the CRC32C algorithm implemented in the SSE 4.2 instruction set of Intel CPUs.

Because crc32c is in PyPI, you can install it with:

pip install crc32c

Supported platforms are Linux and OSX using the gcc and clang compilers, and Windows using the Visual Studio compiler. Other compilers in Windows (MinGW for instance) might work.

If your CPU doesn’t support this instruction, the package will fail to load with an ImportError. This can be overcome by setting the CRC32C_SW_MODE environment variable to the value 1 before importing the module, in which case a software implementation is offered.

Both the hardware- and software-based algorithms are based on Mark Adler’s code, with some modifications required to make the code more portable and fit for inclusion within this python package.

License

This package is licensed under the LGPL-2.1 license.

The original crc32c algorithm’s code, both software and hardware, are licensed under the BSD 3-clause license.

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

crc32c-1.5.tar.gz (23.3 kB view details)

Uploaded Source

Built Distributions

crc32c-1.5-cp37-cp37m-win_amd64.whl (17.4 kB view details)

Uploaded CPython 3.7m Windows x86-64

crc32c-1.5-cp37-cp37m-manylinux1_x86_64.whl (25.0 kB view details)

Uploaded CPython 3.7m

crc32c-1.5-cp37-cp37m-macosx_10_6_intel.whl (17.3 kB view details)

Uploaded CPython 3.7m macOS 10.6+ intel

crc32c-1.5-cp36-cp36m-win_amd64.whl (17.4 kB view details)

Uploaded CPython 3.6m Windows x86-64

crc32c-1.5-cp36-cp36m-manylinux1_x86_64.whl (25.0 kB view details)

Uploaded CPython 3.6m

crc32c-1.5-cp36-cp36m-macosx_10_6_intel.whl (17.3 kB view details)

Uploaded CPython 3.6m macOS 10.6+ intel

crc32c-1.5-cp35-cp35m-win_amd64.whl (17.4 kB view details)

Uploaded CPython 3.5m Windows x86-64

crc32c-1.5-cp35-cp35m-manylinux1_x86_64.whl (25.0 kB view details)

Uploaded CPython 3.5m

crc32c-1.5-cp34-cp34m-win_amd64.whl (15.0 kB view details)

Uploaded CPython 3.4m Windows x86-64

crc32c-1.5-cp34-cp34m-manylinux1_x86_64.whl (24.8 kB view details)

Uploaded CPython 3.4m

crc32c-1.5-cp33-cp33m-win_amd64.whl (16.8 kB view details)

Uploaded CPython 3.3m Windows x86-64

crc32c-1.5-cp27-cp27mu-manylinux1_x86_64.whl (24.8 kB view details)

Uploaded CPython 2.7mu

crc32c-1.5-cp27-cp27m-win_amd64.whl (15.1 kB view details)

Uploaded CPython 2.7m Windows x86-64

crc32c-1.5-cp27-cp27m-manylinux1_x86_64.whl (24.8 kB view details)

Uploaded CPython 2.7m

crc32c-1.5-cp27-cp27m-macosx_10_6_intel.whl (17.2 kB view details)

Uploaded CPython 2.7m macOS 10.6+ intel

File details

Details for the file crc32c-1.5.tar.gz.

File metadata

  • Download URL: crc32c-1.5.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for crc32c-1.5.tar.gz
Algorithm Hash digest
SHA256 62a1ade9763462a7c3d669e016d38fc8b460b162be29eb43f1dc4db1e8c643b5
MD5 cccfb77c0482afb53d0e59290780f411
BLAKE2b-256 b63733b6985c1d3ff9b9deebbb5a82a2bd2f37a7f2bb32905549105eac469ce6

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: crc32c-1.5-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for crc32c-1.5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 d0f1d91a15eb63243aceb6b9627c91c3082dfd9b9b6fdf50958265514f7202fb
MD5 cff9327d6028196b5b523fb60724b694
BLAKE2b-256 8919b61d039d20963c5f5c073b596a59df4623c743144b174c7b06e847462e82

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: crc32c-1.5-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14

File hashes

Hashes for crc32c-1.5-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 855eaa08039a4c7306fa4a63b4681f61f5fa4d02df6ab852dfcd27870260c75a
MD5 9b5e0bef751c1d39ffe10291c28eb1fa
BLAKE2b-256 0c2cd2ffe00147df6bbacdc66a778ad2c508c487206b0387efae4f7893c21fe0

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp37-cp37m-macosx_10_6_intel.whl.

File metadata

  • Download URL: crc32c-1.5-cp37-cp37m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: CPython 3.7m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15

File hashes

Hashes for crc32c-1.5-cp37-cp37m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 3752302a7190a4f2203111df068cf31c0ea3462a0acbdec717767587175a3706
MD5 72488c8ec120eec8748cd2bece0a723a
BLAKE2b-256 16427e0aea4b49eb791759d912115be751a3ea5a8eb760d4ad247ba1c5d42a55

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: crc32c-1.5-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for crc32c-1.5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 48543c93cb86c1c80d8005b550ca2759c4f9cf8a9e2af829b8573408acef9d40
MD5 df44977dbfe8c92d7f88e8fe4f1cd3e4
BLAKE2b-256 b5903180dd72aa466ed3fd6de93a59444d8de6b436869278865c0b08ee0c58a4

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: crc32c-1.5-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14

File hashes

Hashes for crc32c-1.5-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 159a50674a20ee6387899fd6d7d8a10e78c0f24a8338a4dd22a1eda6e4ddbbb9
MD5 eb2d8f74814d428773ef0ed06d0931ea
BLAKE2b-256 02cd511b75fa586e4ce3d528c5d3e6c88879c25c530e6253f0ed5be67578d4b9

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

  • Download URL: crc32c-1.5-cp36-cp36m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: CPython 3.6m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15

File hashes

Hashes for crc32c-1.5-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 acac445541b6ed8879111590d3f0eb8ae040e8584feca2d905511c7608f42720
MD5 ed6ccda7e3065e39209391317dbecc09
BLAKE2b-256 a9b470defdb088e8941c75a805dd6690452b1b15d7fa1df9018bb6dbcbebc5c1

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: crc32c-1.5-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for crc32c-1.5-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 3cb5b2c2ccb8361545d54daf671c23da12416bb98021d958b745b64ac5b8599b
MD5 b0820214cec29a2ab3131184ac17a29e
BLAKE2b-256 6c4e5411f422bbcbff986117927c0222e171b3830dd0527d8dff540559349565

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: crc32c-1.5-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14

File hashes

Hashes for crc32c-1.5-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cd27e53105c5eaf9c3980e44df4d5b34cb34624adb053fd932412e6b4b78742f
MD5 3290f237a9a0157ab202aa927ee767a3
BLAKE2b-256 28764aea4505d05b9f9e1322da7f9a0ffd61c5f52af49b6e359986ba377be1f6

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp34-cp34m-win_amd64.whl.

File metadata

  • Download URL: crc32c-1.5-cp34-cp34m-win_amd64.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: CPython 3.4m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for crc32c-1.5-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 2fb0a2899c8f443cc2e6b2ab417a40f10fec76680c92e322e8bb10c8ada48aed
MD5 d9145a8e392d1b5e8ce680b425af4386
BLAKE2b-256 ecaa96c0026351ce686aca1a026270c8c9f49816397ac32dcf99049b52c459b7

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: crc32c-1.5-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14

File hashes

Hashes for crc32c-1.5-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 336247cc480aa818a5a5f1270c8f2f1e69fe2a471895bb294ac26ba22b66047a
MD5 5962d3bbc522f9ace23484109faaf367
BLAKE2b-256 9e53ef14c0308bfb08c3782647a0225da581fd823d4b964ce3953ba39ee214a6

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp33-cp33m-win_amd64.whl.

File metadata

  • Download URL: crc32c-1.5-cp33-cp33m-win_amd64.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: CPython 3.3m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for crc32c-1.5-cp33-cp33m-win_amd64.whl
Algorithm Hash digest
SHA256 438a31819d4b2f69d9bea086232f8c6e8d39de9500dfa5297d91fc30d047c659
MD5 da1e520a40cf934c075069f208b1ade0
BLAKE2b-256 4c15b91531f5872be56e0059be04f5fc82e6981207581a78338377f70bc4f92b

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: crc32c-1.5-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14

File hashes

Hashes for crc32c-1.5-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a567bc0678ec546afeb856af4625d0dd1cb8f5c7c9ecccb9d8d9389bc7be9c48
MD5 b9d2b87bab1fe1e90c3195363bf445ee
BLAKE2b-256 88c6d13002d041bf62b10e70e3d5b6bfe578e638b569e80c3a552fca5e682a57

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: crc32c-1.5-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for crc32c-1.5-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 2eb5fa0f83cf0cefd5e7d792504b7875a69a8a6c181879c1bd0c770c2b2bd3c5
MD5 fb43298258640d424e7dd372b05acb6a
BLAKE2b-256 2873dc6924ff31bb1af0cb4c71548ed279476ba853fe035f5a1e113cc32bda3b

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: crc32c-1.5-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14

File hashes

Hashes for crc32c-1.5-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3015d2714c4355c0f75e6dafce09575e17e9ce87db07de1815a0683445c82cff
MD5 7e2c4b620281fbd80d5e59f5e5b6a0eb
BLAKE2b-256 b27a5446279e3be1fbb9acd1ef7aa1af0b856fe28eaf3ad3132e7d59d4ff16c6

See more details on using hashes here.

Provenance

File details

Details for the file crc32c-1.5-cp27-cp27m-macosx_10_6_intel.whl.

File metadata

  • Download URL: crc32c-1.5-cp27-cp27m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: CPython 2.7m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15

File hashes

Hashes for crc32c-1.5-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 3d061a8f9fef992b7c8cfde809dd172a706d242fde9b5ffd53753beb057b0c45
MD5 a5051eb91940a6abae888581cfc2029c
BLAKE2b-256 01e8678bc150f2c4b3148f61e5ca8264b23ed174755722379f67d7bf1b0cbd75

See more details on using hashes here.

Provenance

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