GithubHelp home page GithubHelp logo

skyplabs / python4yahdlc Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 13.0 210 KB

Python binding of the yahdlc library

Home Page: https://pypi.python.org/pypi/python4yahdlc

License: GNU General Public License v3.0

C 57.41% Python 42.59%
python python-bindings hdlc network yahdlc python3

python4yahdlc's Introduction

Hi there! ๐Ÿ‘‹

My name is Paul aka Skyper.

Self-educated since my childhood, I am a technology and science lover with a deep passion for IT, InfoSec and open-source software and obsessed by automation. I write software, create learning contents about IT-related topics and hunt for bugs.


๐Ÿ“ฐ Personal Blog | :elephant: Mastodon | :rocket: Malt | :busts_in_silhouette: LinkedIn | :bug: Open Bug Bounty | :key: Keybase

python4yahdlc's People

Contributors

dependabot[bot] avatar imgbotapp avatar lgtm-migrator avatar skyplabs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

python4yahdlc's Issues

Get Python versions from project file

Version 4.7.0 of the setup-python action allows getting the Python versions from a pyproject.toml file. This would remove the need to update the supported Python versions in multiple files. However, setup.cfg files are not supported, which implies transferring the content of setup.cfg to pyproject.toml.

Unable to install under windows

Hi,
I'm trying to use this library under windows machine, unfortunately installation using pip fails with:
ValueError: path '/home/travis/build/SkypLabs/python4yahdlc/lib/fcs16.c' cannot be absolute

When I tried to build the library manually (python3 setup.py install) I've noticed the source files (from lib and include directories) contain only path to correct location. It looks like git submodule init didn't create links to correct locations from these files.

Wrong processing of messages split into multiple buffers

Hey!

As far as I can see, python4yahdlc doesn't use a continuous buffer, like yahdlc recommends, but still persists its state. This makes it dump raw memory sometimes and doesn't allow for proper partial frames. You either need to store incoming data buffer somewhere and pull / discard bytes as they go (which would make it support partial frames), or call yahdlc_get_data_reset/yahdlc_get_data_reset_with_state after every call to yahdlc_get_data. (to just use yahdlc for HDLC frames parsing and just properly discard partial frames/buffers)

Best regards,
Piotr.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.