AioUDP
A better API for asynchronous UDP
A websockets-like API for UDP
Here's an example echo server:
import aioudp
import asyncio
async def main():
async def handler(connection):
async for message in connection:
await connection.send(message)
async with aioudp.serve("localhost", 9999, handler):
await asyncio.Future() # Serve forever
if __name__ == '__main__':
asyncio.run(main())
And a client to connect to the server:
import aioudp
import asyncio
async def main():
async with aioudp.connect("localhost", 9999) as connection:
await connection.send(b"Hello world!")
assert await connection.recv() == b"Hello world!"
if __name__ == '__main__':
asyncio.run(main())
Metadata
Release files for aioudp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aioudp-0.1.0.tar.gz | 16.8 kB | Without provenance | Details for aioudp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aioudp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aioudp-0.1.0-py3-none-any.whl |
Total release size: 34.5 kB
Release files / aioudp-0.1.0.tar.gz
| Download URL | aioudp-0.1.0.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2485e828820a29127897d6e511cfd5fc386a48bcc861c00ffb6cee862cf9190
|
|
BLAKE2b-256 checksum How to use checksums |
a50387e275a0c2478f8bc8fc57bf8ee65f811093de533f084731554baa3db24e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.10 CPython/3.9.1 Darwin/20.6.0
|
Release files / aioudp-0.1.0-py3-none-any.whl
| Download URL | aioudp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51af7e841e1ccee7b1dac83c7bf38a0a93eb99e19eaef88dd8edd3238cb6e60d
|
|
BLAKE2b-256 checksum How to use checksums |
a853961e4ae23e334fdf6ba8acbc0c0cbcb7d089e607892907aea45d9aef656e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.10 CPython/3.9.1 Darwin/20.6.0
|
Security for aioudp 0.1.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.