Skip to main content

Asyncio high level UDP sockets

Asyncio high level UDP sockets.

Project homepage: https://github.com/eerimoq/asyncudp

Documentation: https://asyncudp.readthedocs.org/en/latest

Installation

$ pip install asyncudp

Example client

import asyncio
import asyncudp

async def main():
    sock = await asyncudp.create_socket(remote_addr=('127.0.0.1', 9999))
    sock.sendto(b'Hello!')
    print(await sock.recvfrom())
    sock.close()

asyncio.run(main())

Example server

import asyncio
import asyncudp

async def main():
    sock = await asyncudp.create_socket(local_addr=('127.0.0.1', 9999))

    while True:
        data, addr = await sock.recvfrom()
        print(data, addr)
        sock.sendto(data, addr)

asyncio.run(main())

Test

$ python3 -m unittest

Metadata

Release files for asyncudp 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asyncudp 0.11.0
File Size Uploaded
asyncudp-0.11.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for asyncudp 0.11.0
File Interpreter ABI Platform
asyncudp-0.11.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / asyncudp-0.11.0.tar.gz

Download URL asyncudp-0.11.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c8ab6459f4dc8ebc42f401d3bd72c2a6c6808d10e42231f39e0c433ac646abf9
BLAKE2b-256 checksum
How to use checksums
890bb94c42d75e2bd018727e625fa3147447cdfb26603e7b0892a4fdfcd2154d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / asyncudp-0.11.0-py3-none-any.whl

Download URL asyncudp-0.11.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96d859d86471e3ed30cf9f05cb38e96920156e3a9fe70ee916096ba758ea316e
BLAKE2b-256 checksum
How to use checksums
17fe77f4a24264e728fd95542e53f026a91249b51d1611087b8c82d3a033ea97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release history Release notifications | RSS feed

This release

0.11.0 This release

2 release files

0.10.0

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page