Easy UDP communication library
Project description
Easy UDP
Easy UDP is a Python package that simplifies UDP communication. It provides convenient classes for UDP Sender and Receiver implementations.
Installation
pip install easy-udp
Usage
UDP Sender
from easy_udp import UDPSender
import numpy as np
# Create UDP sender instance
udp_sender = UDPSender(host="localhost", port=12345, send_pause=0.1)
# Sending data
print("Sending: [1, 2, 3]")
udp_sender.send(np.array([1, 2, 3]))
print("Sending: Hello, World!")
udp_sender.send("Hello, World!")
UDP Receiver
from easy_udp import UDPReceiver
# Create UDP Receiver instance
udp_receiver = UDPReceiver(host="localhost", port=12345, timeout=0.1)
# Receiving data
while True:
received_data = udp_receiver.receive()
if received_data is not None:
print(received_data)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easy_udp-0.1.3.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file easy_udp-0.1.3.tar.gz
.
File metadata
- Download URL: easy_udp-0.1.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dde65fbc0dc7f25a1795a15d29d52b9c67994f76f839f18fa4098c5e2c3931fe |
|
MD5 | ab2ef403a5dd6cbc82cdbfe29fbbd9ee |
|
BLAKE2b-256 | bdbd282c353ed4efa8804c578e8e3345be97d75c0f0861b4b0e423dcfe41079d |
File details
Details for the file easy_udp-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: easy_udp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 015a24dab80b1a6666de8d1ed8a01596bff5d735204ed76ff2e5db3a730c024e |
|
MD5 | 63a413f2974c87dd8d778cb318f27d0d |
|
BLAKE2b-256 | fe71f8352ec9972723101e4d6dbf67b262c2756ea1fed20921ada837cafec915 |