simple-hdlc
Simple HDLC Protocol
Used for simple communication with devices. Framing of serial data.
Usage
Use with instance of In/Output with read and write methods (like pyserial).
Blocking Read:
from simple_hdlc import HDLC
import serial
s = serial.serial_for_url('loop://', timeout=1)
# or
# s = serial.Serial('/dev/tty0')
h = HDLC(s)
h.sendFrame(b"hello")
print h.readFrame() # Blocking
Reader Thread with callback:
from simple_hdlc import HDLC
import serial
s = serial.serial_for_url('loop://', timeout=1)
h = HDLC(s)
# or
# s = serial.Serial('/dev/tty0')
def frame_callback(data):
print(data)
h.startReader(onFrame=frame_callback)
h.sendFrame(b"hello")
Metadata
Release files for simple-hdlc 0.4.4
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 |
|---|---|---|---|---|
| simple-hdlc-0.4.4.tar.gz | 3.6 kB | Without provenance | Details for simple-hdlc-0.4.4.tar.gz |
Release files / simple-hdlc-0.4.4.tar.gz
| Download URL | simple-hdlc-0.4.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33fe203d3af8da230fd30ebdc427276cae844d45145506ae760c3ec41c3ab7ba
|
|
BLAKE2b-256 checksum How to use checksums |
812c98c8ce5cf08ed63901b5cd49884ec4f6f47d8e221edd9bbe928661a2022f
|
| 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/46.4.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.5
|
Security for simple-hdlc 0.4.4
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.