Skip to main content

A python implementation of the simplehdlc packet encoder/parser

Project description


A python implementation of the simplehdlc parser/encoder. More information about the packet structure can be found at

Only python 3.6+ is supported.

License is MIT.


You can install this package using pip:

pip install simplehdlc

or by cloning this git repository and running:

python install


from simplehdlc import SimpleHDLC

# note that encode is a class method
encoded = SimpleHDLC.encode(b'abcdefg')

def success_callback(payload: bytes):
    print("success:", payload)

hdlc = SimpleHDLC(success_callback, max_len=1024)
hdlc.parse(encoded)  # will print "success: b'abcdefg'" via the callback

Project details

Download files

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

Files for simplehdlc, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size simplehdlc-0.1.0-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size simplehdlc-0.1.0.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page