Library for calculating CRC8/CRC16/CRC32/CRC64
Project description
libscrc is a library for calculating CRC8 CRC16 CRC32 CRC64.
Installation
Compile and install the library:
pip3 install libscrc
or:
python setup.py build python setup.py install
You will need the administrative privileges to execute the last command.
After installation you can run unit tests to make sure that the library works fine. Execute:
python -m libscrc.testmodbus python -m libscrc.testcrc64
Usage
In Python 3:
import libscrc crc16 = libscrc.modbus(b'1234') # Calculate ASCII of modbus crc16 = libscrc.modbus(b'\x01\x02') # Calculate HEX of modbusYou can also calculate CRC gradually:
import libscrc crc16 = libscrc.xmodem(b'1234') crc16 = libscrc.xmodem(b'5678', crc16)
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file libscrc-0.0.7-cp35-cp35m-win32.whl.
File metadata
- Download URL: libscrc-0.0.7-cp35-cp35m-win32.whl
- Upload date:
- Size: 26.0 kB
- Tags: CPython 3.5m, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3eb77c1cf42c9a3ddb6e487453c69476c336129216409847c8300973f15956d
|
|
| MD5 |
a8eefbf4553ff2b2d728c59ff5d0a177
|
|
| BLAKE2b-256 |
57a11db89b2f72660cc53fb92d092a5e984712628477ba2085e0baa2872e6c55
|