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 Provenance Actions
asyncudp-0.11.0.tar.gz 4.0 kB Without provenance Details for asyncudp-0.11.0.tar.gz

Built distribution (wheel)

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

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

Security for asyncudp 0.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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