This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

CRC is a way of detecting accidental changes in data storage or transmission. There are many variants of CRC and CRC16, in particular. This library calculates only CRC16 (16-bit codes) and the only supported variant at the moment is CRC-CCITT (XModem).

If you want to know more about CRC, http://wikipedia.org/wiki/Cyclic_redundancy_check is a good place to start.

If you want other variants of CRC16 supported, please make a request at http://code.google.com/p/pycrc16/issues

Source codes are hosted at https://github.com/gennady/pycrc16 If you want to contribute to this library, create a fork, make you changes and then create a pull request. Any help is appreciated.

Installation

On Windows you can use precompiled binaries which can be found at http://code.google.com/p/pycrc16/downloads

On Linux and other operation systems you should compile the library from the source codes. To do this on Linux use following steps:

  • download source tarball, e.g. crc16-0.1.1.tar.gz, from http://code.google.com/p/pycrc16/downloads

  • extract it with command:

    tar -xzf crc16-0.1.1.tar.gz
    
  • compile and install the library:

    cd crc16-0.1.1
    python setup.py build
    sudo 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 crc16.test

Usage

In Python 3:

import crc16
print(crc16.crc16xmodem(b'123456789'))

In Python 2 you should use strings instead of binary data:

import crc16
print(crc16.crc16xmodem('123456789'))

You can also calculate CRC gradually:

import crc16
crc = crc16.crc16xmodem(b'1234')
crc = crc16.crc16xmodem(b'56789', crc)
print(crc)

Other projects

There are a number of projects and libraries for CRC calculation. See for example:

Release History

Release History

0.1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
crc16-0.1.1.tar.gz (9.6 kB) Copy SHA256 Checksum SHA256 Source Jun 4, 2011
crc16-0.1.1.win32-py2.6.exe (208.2 kB) Copy SHA256 Checksum SHA256 2.6 Windows Installer Jun 4, 2011
crc16-0.1.1.win32-py2.7.exe (208.2 kB) Copy SHA256 Checksum SHA256 2.7 Windows Installer Jun 4, 2011
crc16-0.1.1.win32-py3.1.exe (208.2 kB) Copy SHA256 Checksum SHA256 3.1 Windows Installer Jun 4, 2011
crc16-0.1.1.win32-py3.2.exe (208.2 kB) Copy SHA256 Checksum SHA256 3.2 Windows Installer Jun 4, 2011
crc16-0.1.1.win32-py3.3.exe (202.8 kB) Copy SHA256 Checksum SHA256 3.3 Windows Installer Mar 11, 2013
crc16-0.1.1.zip (20.9 kB) Copy SHA256 Checksum SHA256 Source Jun 4, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting