Skip to content

AminRezaei0x443/crcset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRCSet

CRCSet aims to provide crc implementation for python.

What's the difference with other packages?

With the integrated WASI and WASM modules, this package eliminates the hassle of platform-specific compilations. Simply install the package and start using it. The package initially utilizes the wasmer runtime for execution, but in the case it's not available, it provides a reliable fallback option with pywasm, a pure Python-based WASM runtime.

Usage

  1. Install the library:
    pip install crcset
  2. Use it:
    from crcset import crc32c, crc16xmodem
    print(crc32c(b"testing-crc32c")) # 4017753803
    print(crc16xmodem(b"testing-crc16-xmodem")) # 26763