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.
Dependencies
Installing
pip3 install pyngham
Or, from the source files:
python setup.py install
Documentation
The documentation page is available here. Instructions to build the documentation page are described below.
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.2.0.tar.gz
(12.1 kB
view hashes)