Skip to main content

Easy UDP communication library

Project description

Easy UDP

Easy UDP is a Python package that simplifies UDP communication. It provides convenient classes for UDP client and server 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(np.array("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.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

easy_udp-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file easy_udp-0.1.1.tar.gz.

File metadata

  • Download URL: easy_udp-0.1.1.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

Hashes for easy_udp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 55f9771775f599455a97e8329b41cc6b617d4366e49b35ba8b97580ffd52ec22
MD5 e70c56d32ec6021d87de04d3a760ce34
BLAKE2b-256 419db6da991c31d2954aa595b184a7aa9215b5fabd16d834ae367367e9ce2965

See more details on using hashes here.

File details

Details for the file easy_udp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: easy_udp-0.1.1-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

Hashes for easy_udp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86613b2d7b9d98b47c6f5669354965337d3e3574c2d3dee2a97680089ecbac8f
MD5 e3b1b2f5881645739c9c67ded37528c2
BLAKE2b-256 08c79ebd9716a7ff0c41a1a80078d5e6d4281d80bbbab46e0b9196687b16f569

See more details on using hashes here.

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