Skip to main content

libudt4 Python wrapper written with Cython

Project description

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:

python3 setup.py build_ext --inplace

In Ubuntu, you will need cython3 package. To run the tests, execute:

PYTHONPATH=`pwd` nosetests3 -w tests --tests udt_socket,udt_epoll

Example usage:

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.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

udt4py_ng-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (874.2 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

udt4py_ng-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (892.9 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

udt4py_ng-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (832.3 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

udt4py_ng-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (835.1 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

udt4py_ng-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (852.4 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page