Skip to main content

PyNGHam library

Project description

PyNGHam

Overview

The PyNGHAm library is a Python version of the original NGHam protocol library written in C by Jon Petter Skagmo (LA3JPA).

The original implementation and a further description of the protocol can be found here.

NOTE: For now, this implementation uses a different Reed Solomon configuration from the original library.

Dependencies

  • crc
  • reedsolo

Installing

  • pip3 install pyngham

Or, from the source files:

  • python setup.py install

Documentation

Dependencies

  • sphinx-rtd-theme

Building the Documentation

  • python setup.py build_sphinx

Usage Example

The usage of the library is pretty straightforward, after the initialization, there are two methods: one to encode a list of bytes, and other to decode a packet. Below there is a basic usage example:

from pyngham import PyNGHam

data = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

pkt = PyNGHam().encode(data)

pl, errors = PyNGHam().decode(pkt)

print(pl)

License

This project is licensed under LGPLv3 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyngham-0.1.0.linux-x86_64.tar.gz (8.6 kB view details)

Uploaded Source

File details

Details for the file pyngham-0.1.0.linux-x86_64.tar.gz.

File metadata

  • Download URL: pyngham-0.1.0.linux-x86_64.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for pyngham-0.1.0.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 75415456e62fad283f5d5ea3b302efa32f891a0a140ea438a52aeb1abb78efd2
MD5 fbbdb1f44a9ad53cada4563f21b0e327
BLAKE2b-256 a8e476777c3de6b135618baaa832852ec6fc337cc30b3cbab0e829373bf21fa2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page