Hi Joseph, Sorry for answering you so late... and thank you very much for the Python extension!
I took some of your ideas and merged one Python binding a few minutes ago [0]. Let me know if it works for you, and if you see any possible improvements. * The Python extension is based on Swig [1]. * It supports both Python 2 and Python 3 thanks to the 'future' Python module [2]. * A short example is available in sources [3]. * All non-regression tests runs fine with the pure-Python implementation of the non-regression test [4]. * It is a bit slow when compared with the pure C implementation, but it makes prototyping applications so much easier. * There are instructions for building, installing and testing the Python extension on the wiki [5]. * There are also some info in the README and INSTALL files in sources. Regards, Didier [0] https://github.com/didier-barvaux/rohc/commit/796da05c2f329efd0cb2b09ec65aa1380e1399a0 [1] http://www.swig.org/ [2] http://python-future.org/ [3] https://github.com/didier-barvaux/rohc/blob/master/contrib/python/example.py [4] https://github.com/didier-barvaux/rohc/blob/master/contrib/python/test_non_regression.py [5] https://rohc-lib.org/wiki/doku.php#python_binding On Tue, 1 Dec 2015 14:00:42 -0500, Joseph Ishac <[email protected]> wrote: > Disclaimer, this is not in any shape or form an official Python > binding of the ROHC library.... for that please see the following bug > report: https://bugs.launchpad.net/rohc/+bug/804542 > > I wrote this code early this year for a series of tests and > experiments and wanted to share it in case anyone else can find use > in it. It is an experimental Python extension written in C that > wraps the ROHC library into a Python object, allowing for packets to > be compressed and decompressed in Python. It has a slightly simpler > API than the normal ROHC library and leverages Python exceptions to > be as verbose as possible when errors are encountered. It has been > used stably with IPv6 traffic, but as always, there may be > undiscovered issues or bugs. > > The code can be found at: > https://github.com/jishac/rohc_python > > It is being released under the same license as the ROHC library. > > Thanks, > > -Joseph > > _______________________________________________ > Mailing list: https://launchpad.net/~rohc > Post to : [email protected] > Unsubscribe : https://launchpad.net/~rohc > More help : https://help.launchpad.net/ListHelp
pgpUk0bY5ldWF.pgp
Description: Signature digitale OpenPGP
_______________________________________________ Mailing list: https://launchpad.net/~rohc Post to : [email protected] Unsubscribe : https://launchpad.net/~rohc More help : https://help.launchpad.net/ListHelp

