https://github.com/zerosteiner/crcelk
A pure Python implementation of the CRC algorithm.
https://github.com/zerosteiner/crcelk
Last synced: 8 months ago
JSON representation
A pure Python implementation of the CRC algorithm.
- Host: GitHub
- URL: https://github.com/zerosteiner/crcelk
- Owner: zeroSteiner
- Created: 2016-02-11T22:18:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-11-10T20:35:53.000Z (over 7 years ago)
- Last Synced: 2025-02-02T03:51:16.890Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
CrcElk
======
|Github Issues| |PyPi Release|
CrcElk is an updated fork of the `CrcMoose `__
module for recent versions of Python. It provides a pure Python implementation
of the CRC algorithm and allows for variants to easily be defined by providing
their parameters such as width, starting polynomial, etc. Python versions 2.6+
and 3.1+ are supported.
Usage Example
-------------
.. code:: python
>>> import crcelk
>>> import struct
>>> crc = crcelk.CRC_CCITT.calc_bytes(b'Hello World')
>>> print("{0} (0x{0:04x})".format(crc))
19749 (0x4d25)
License
-------
CrcElk is released under the same MIT license as the original CrcMoose
source. Details are available in the `file
header `__.
.. |Github Issues| image:: http://img.shields.io/github/issues/zerosteiner/crcelk.svg?style=flat-square
:target: https://github.com/zerosteiner/crcelk/issues
.. |PyPi Release| image:: https://img.shields.io/pypi/v/crcelk.svg?style=flat-square
:target: https://pypi.python.org/pypi/crcelk