Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Python bindings for the yahdlc library

Project Description

python4yahdlc is a Python bindings for the yahdlc library.


To build and make the Python module work, you need the following elements :

On Fedora

yum install python3-setuptools

On Debian

aptitude install python3-setuptools


With pip (recommanded)

pip3 install python4yahdlc

From sources

git clone
cd python4yahdlc
python3 install


To generate a new HDLC data frame :

from yahdlc import *

frame = frame_data('hello world!')

To generate a new HDLC ACK frame with a specific sequence number :

frame = frame_data('', FRAME_ACK, 3)

The highest sequence number is 7 and the following frame types are available :


Note that when you generate an ACK or NACK frame, the payload is useless.

To decode a received HDLC frame :

data, type, seq_no = get_data(frame)

For a more advanced use, take a look at the examples available in the examples folder.


This project is released under the GPL version 3 license. The yahdlc library is released under the MIT license.

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(20.9 kB) Copy SHA256 Hash SHA256
Source Oct 2, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting