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:
```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.
======
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
udt4py-1.2.tar.gz
(17.3 kB
view details)
File details
Details for the file udt4py-1.2.tar.gz
.
File metadata
- Download URL: udt4py-1.2.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 718c1c807ceb642ba9de83c371deb661d619809afb022ec0af63cd588125c616 |
|
MD5 | 43a132f4e4fbf945de3c78f980c8960a |
|
BLAKE2b-256 | ec7c8cd2c2e00883e23b3bc829d862bae54c67546d37d0c3f365385192cacac1 |