A python package exposing the Intel SSE4.2 CRC32C instruction
Project description
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.
Implementation details
By default, if your CPU doesn’t support this instruction, the package will fail to load with an ImportError. If you still need to use the crc32c checksum algorithm this package comes with a software implementation that can be loaded instead. For that set the CRC32C_SW_MODE environment variable to one of the following values:
auto: use software implementation if no CPU hardware support is found.
force: use software implementation regardless of CPU hardware support.
1: like force, but will eventually be discontinued.
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.
Copyright
This package is copyrighted:
ICRAR - International Centre for Radio Astronomy Research (c) UWA - The University of Western Australia, 2017 Copyright by UWA (in the framework of the ICRAR)
The original crc32c algorithms, both software and hardware, are copyrighted by:
Copyright (C) 2013 Mark Adler
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file crc32c-1.6-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: crc32c-1.6-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 27.3 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/32.3.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d5a12e2c7dded8167e32a40779977fe7574a3e91898ca0ac93b3a1cca4cf994 |
|
MD5 | ce97685437c3ccc3ebfe30b331880892 |
|
BLAKE2b-256 | 09a36bf4ebd1e5f9f35395ab149bd2d7651f8bf54a6351e77ef6bdd3293573e1 |
Provenance
File details
Details for the file crc32c-1.6-cp37-cp37m-manylinux1_x86_64.whl
.
File metadata
- Download URL: crc32c-1.6-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 25.7 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdd62f22861489f56aa28e345685f3b4e9350e71e075f8f9f53bb3ddc528f9a8 |
|
MD5 | 17dd57ef73d291d81549f16aa7949383 |
|
BLAKE2b-256 | 03de6868bafe1be970544751d513acf03ac30468c7555c7f37221e154d85696f |
Provenance
File details
Details for the file crc32c-1.6-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: crc32c-1.6-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 27.3 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/32.3.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f605e6227137457f51fc67adeb539b772ab2ea4b8bb0fbfea6902f641732cac |
|
MD5 | b50428cf7e884880f277bf79c1bd6277 |
|
BLAKE2b-256 | 1bfd36970430d7e4e409b8bb27811eb631c5693cd7f77fbfd8ad3b9d00bf1a73 |
Provenance
File details
Details for the file crc32c-1.6-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: crc32c-1.6-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 25.7 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ab9b98f52b1154d4919f57cec86b8d8d1b53be302ddc8e451bf28bdcc96952f |
|
MD5 | 4bb881da38265b7eef13e3f89552b40a |
|
BLAKE2b-256 | 40f85f123b054eb1ef8570d7659f8aaf4c8b9582d8877f901f8ce839697b0bc4 |
Provenance
File details
Details for the file crc32c-1.6-cp35-cp35m-win_amd64.whl
.
File metadata
- Download URL: crc32c-1.6-cp35-cp35m-win_amd64.whl
- Upload date:
- Size: 27.3 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/32.3.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 811a50d9f3ce40482765d64b914d55acd578457ee0f80d90b7cb19fc0fc4b1bd |
|
MD5 | c2765b2a05f7eec69ac05793f7550281 |
|
BLAKE2b-256 | a718b454fb5df4c10700796a48e5927c7884ac429b01142f881096da180ffbc1 |
Provenance
File details
Details for the file crc32c-1.6-cp35-cp35m-win32.whl
.
File metadata
- Download URL: crc32c-1.6-cp35-cp35m-win32.whl
- Upload date:
- Size: 26.5 kB
- Tags: CPython 3.5m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/32.3.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7054659857b527ddc5d928da5d24ec1a1b9ee6061e7519bb3b4b81c807bce653 |
|
MD5 | 347f2e127dc1f49233eea9bc7cc5c339 |
|
BLAKE2b-256 | a679b7e447636e680bacdb29f14641d5bba7188550e5868670c1624de897109e |
Provenance
File details
Details for the file crc32c-1.6-cp35-cp35m-manylinux1_x86_64.whl
.
File metadata
- Download URL: crc32c-1.6-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 25.7 kB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f2300528ac3546e550937d5c587c0585bfdd4469d9f38e5a261d359b83aca64 |
|
MD5 | 00b205176e19b18a030df9ee7564c01c |
|
BLAKE2b-256 | a04540372a6ff99df05a56957e59c89d26474e56fd35f46faf81dff203a54c60 |
Provenance
File details
Details for the file crc32c-1.6-cp34-cp34m-win_amd64.whl
.
File metadata
- Download URL: crc32c-1.6-cp34-cp34m-win_amd64.whl
- Upload date:
- Size: 25.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/32.3.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 962f501c03fa79fca2904ddb1265942b1337137d0efe07dec0add010e80ad6ea |
|
MD5 | 24902e4ab55cb910d9b22390840a2855 |
|
BLAKE2b-256 | 095558e2a109e9cd9d498331e4face75fd97d6127bba6d0164afc5505b093b61 |
Provenance
File details
Details for the file crc32c-1.6-cp34-cp34m-win32.whl
.
File metadata
- Download URL: crc32c-1.6-cp34-cp34m-win32.whl
- Upload date:
- Size: 25.4 kB
- Tags: CPython 3.4m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/32.3.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3607cb02ebb76830f582580566e0a23ebb1d8b03dcef65742f0edf3e4f806d3 |
|
MD5 | 54bd0ef0d6723b2f4534e1de0b5ff832 |
|
BLAKE2b-256 | 11bdbfbf6b51693673e35dc33d9744508e6473259e71f75e6b1d252fd522ee9a |
Provenance
File details
Details for the file crc32c-1.6-cp34-cp34m-manylinux1_x86_64.whl
.
File metadata
- Download URL: crc32c-1.6-cp34-cp34m-manylinux1_x86_64.whl
- Upload date:
- Size: 25.5 kB
- Tags: CPython 3.4m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93a08d882244c3b180694589a94dc9045638d7e3857ae7f755f53f075417b542 |
|
MD5 | 91757f3cf2378ac7cf842acd024d27ee |
|
BLAKE2b-256 | 1cc88ba901e14a8044869002b8064a0940ad64c89c6ad346c9979d9e1f40e2e0 |
Provenance
File details
Details for the file crc32c-1.6-cp33-cp33m-win_amd64.whl
.
File metadata
- Download URL: crc32c-1.6-cp33-cp33m-win_amd64.whl
- Upload date:
- Size: 17.3 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/32.3.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c53bf82d396d70b95335fc03fb408cbb67cfa9622dc657c1fe999caa53614fd |
|
MD5 | d7e2abd4b99a2bf79dab3a23ff5a2f99 |
|
BLAKE2b-256 | 1405407aa00a364602b24b57b30ba85cd2ffd9d963a816b691231062fa92549d |
Provenance
File details
Details for the file crc32c-1.6-cp33-cp33m-win32.whl
.
File metadata
- Download URL: crc32c-1.6-cp33-cp33m-win32.whl
- Upload date:
- Size: 17.8 kB
- Tags: CPython 3.3m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/32.3.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6450f398453f3e4df945b6b4fd3d70d636ae816b7abeaa9bb16f1cc32d82167e |
|
MD5 | afd87e336b6fd4cf2399f4393cbc352a |
|
BLAKE2b-256 | d949f712493a646c46a4793243f09048e967d725928ed11c6f86464347257f1b |
Provenance
File details
Details for the file crc32c-1.6-cp27-cp27mu-manylinux1_x86_64.whl
.
File metadata
- Download URL: crc32c-1.6-cp27-cp27mu-manylinux1_x86_64.whl
- Upload date:
- Size: 25.6 kB
- Tags: CPython 2.7mu
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8f2a9b4d941dccd767465121e938287e778ea2b2809eb2b28df18fbf4198a07 |
|
MD5 | 6b9412b1a25cd80bcc7cdc75420a2472 |
|
BLAKE2b-256 | 5eadb28ed1dfbc5ce77ea2e963f065a3d05cc341c88829e4fd0d49f2fe5416c3 |
Provenance
File details
Details for the file crc32c-1.6-cp27-cp27m-win_amd64.whl
.
File metadata
- Download URL: crc32c-1.6-cp27-cp27m-win_amd64.whl
- Upload date:
- Size: 25.0 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/32.3.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9c505b759eb5bfa25508101e5903e90d9049fef49322f3f847194ebf4b77c6d |
|
MD5 | 9c8e3562a419652e662dcac5cf84538f |
|
BLAKE2b-256 | 4623e1b691993827e9e8583b5ef153af0dda039f9e58ad16db8d39af15e95110 |
Provenance
File details
Details for the file crc32c-1.6-cp27-cp27m-win32.whl
.
File metadata
- Download URL: crc32c-1.6-cp27-cp27m-win32.whl
- Upload date:
- Size: 25.5 kB
- Tags: CPython 2.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/32.3.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db2e18ae4933a7a651789ba84fed0078a0800490d5f2f02a1a3f7f3f4b35f1ed |
|
MD5 | a4ca4c6e755e04bc4194df45fba9fd4d |
|
BLAKE2b-256 | fb126d66b718accb47feaa5b4b43609c9f838d252d85d58647a66eae46e0d209 |
Provenance
File details
Details for the file crc32c-1.6-cp27-cp27m-manylinux1_x86_64.whl
.
File metadata
- Download URL: crc32c-1.6-cp27-cp27m-manylinux1_x86_64.whl
- Upload date:
- Size: 25.6 kB
- Tags: CPython 2.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 540b41f713b0895dbb8801d65c5741113cfab7a5478b93495e3e00af03d16480 |
|
MD5 | 8847215ffe70647b2b15e8a1d5c57873 |
|
BLAKE2b-256 | f1a77b8180546f6b531c96d5bae46b2041e9cb7555eaa3a6df3f94d9c8fe95c0 |