Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vmarkovtsev/udt4py
libudt4 Python wrapper written with Cython
https://github.com/vmarkovtsev/udt4py
Last synced: 22 days ago
JSON representation
libudt4 Python wrapper written with Cython
- Host: GitHub
- URL: https://github.com/vmarkovtsev/udt4py
- Owner: vmarkovtsev
- License: other
- Created: 2014-02-28T13:56:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-07-26T11:47:10.000Z (over 3 years ago)
- Last Synced: 2024-10-05T04:41:11.359Z (about 1 month ago)
- Language: Python
- Size: 238 KB
- Stars: 26
- Watchers: 3
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
udt4py
======libudt4 Python wrapper written with Cython.
Tested with Python 2.7 and Python 3.3 on Linux. In buffer operations bytes,
bytearray and memoryview objects are supported, allowing zero-copy operations.In order to build the native module, execute:
```bash
python3 setup.py build_ext --inplace
```In Ubuntu, you will need ``cython3`` package.
To run the tests, execute:```bash
PYTHONPATH=`pwd` nosetests3 -w tests --tests udt_socket,udt_epoll
```Example usage:
```python
from udt4py import UDTSocketif __name__ == "__main__":
socket = UDTSocket()
socket.bind("0.0.0.0:7777")
socket.listen()
channel = socket.accept()
msg = bytearray(5)
channel.recv(msg)
```Released under Simplified BSD License.
Copyright (c) 2014, Samsung Electronics Co.,Ltd.