# udt4py **Repository Path**: mirrors_Samsung/udt4py ## Basic Information - **Project Name**: udt4py - **Description**: libudt4 Python wrapper written with Cython - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-07-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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 UDTSocket if __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.