python-simplehdlc
A python implementation of the simplehdlc parser/encoder. More information about the packet structure can be found at https://github.com/jeremyherbert/simplehdlc.
Only python 3.6+ is supported.
License is MIT.
Installing
You can install this package using pip:
pip install simplehdlc
or by cloning this git repository and running:
python setup.py install
Usage
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
Metadata
Release files for simplehdlc 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simplehdlc-0.1.0.tar.gz | 2.2 kB | Without provenance | Details for simplehdlc-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simplehdlc-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for simplehdlc-0.1.0-py3-none-any.whl |
Total release size: 5.7 kB
Release files / simplehdlc-0.1.0.tar.gz
| Download URL | simplehdlc-0.1.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e9fdf060a070a9e27929260d8d12fe5333359a56002dbccecc3c3107d3198b1
|
|
BLAKE2b-256 checksum How to use checksums |
ddeea6c0b1dde1fb7c81e7f9b2990a53f16131c758d23c8e91117f872be9c868
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.4
|
Release files / simplehdlc-0.1.0-py3-none-any.whl
| Download URL | simplehdlc-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65bf017d0f1a24891d7eef8f3f12b643145cc5ac8b084294c9616a72a4aac40e
|
|
BLAKE2b-256 checksum How to use checksums |
3275bd830d9ea3a64cdea2a49babc3d22634a015035fdefc7b4047c7c15cc4f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.4
|
Security for simplehdlc 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.