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
============
.. code-block:: python
$ pip install asyncudp
Example client
==============
.. code-block:: python
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
==============
.. code-block:: python
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
====
.. code-block::
$ python3 -m unittest
Raw data
{
"_id": null,
"home_page": "https://github.com/eerimoq/asyncudp",
"name": "asyncudp",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "asyncio",
"author": "Erik Moqvist",
"author_email": "erik.moqvist@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/89/0b/b94c42d75e2bd018727e625fa3147447cdfb26603e7b0892a4fdfcd2154d/asyncudp-0.11.0.tar.gz",
"platform": null,
"description": "Asyncio high level UDP sockets\n==============================\n\nAsyncio high level UDP sockets.\n\nProject homepage: https://github.com/eerimoq/asyncudp\n\nDocumentation: https://asyncudp.readthedocs.org/en/latest\n\nInstallation\n============\n\n.. code-block:: python\n\n $ pip install asyncudp\n\nExample client\n==============\n\n.. code-block:: python\n\n import asyncio\n import asyncudp\n\n async def main():\n sock = await asyncudp.create_socket(remote_addr=('127.0.0.1', 9999))\n sock.sendto(b'Hello!')\n print(await sock.recvfrom())\n sock.close()\n\n asyncio.run(main())\n\nExample server\n==============\n\n.. code-block:: python\n\n import asyncio\n import asyncudp\n\n async def main():\n sock = await asyncudp.create_socket(local_addr=('127.0.0.1', 9999))\n\n while True:\n data, addr = await sock.recvfrom()\n print(data, addr)\n sock.sendto(data, addr)\n\n asyncio.run(main())\n\nTest\n====\n\n.. code-block::\n\n $ python3 -m unittest\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Asyncio high level UDP sockets.",
"version": "0.11.0",
"project_urls": {
"Homepage": "https://github.com/eerimoq/asyncudp"
},
"split_keywords": [
"asyncio"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "17fe77f4a24264e728fd95542e53f026a91249b51d1611087b8c82d3a033ea97",
"md5": "d90226c138344f1cf41893edcbeca01c",
"sha256": "96d859d86471e3ed30cf9f05cb38e96920156e3a9fe70ee916096ba758ea316e"
},
"downloads": -1,
"filename": "asyncudp-0.11.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d90226c138344f1cf41893edcbeca01c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3538,
"upload_time": "2023-07-24T14:45:30",
"upload_time_iso_8601": "2023-07-24T14:45:30.411342Z",
"url": "https://files.pythonhosted.org/packages/17/fe/77f4a24264e728fd95542e53f026a91249b51d1611087b8c82d3a033ea97/asyncudp-0.11.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "890bb94c42d75e2bd018727e625fa3147447cdfb26603e7b0892a4fdfcd2154d",
"md5": "d412333ac0d0c9387b7ff1dc7d1b1ee1",
"sha256": "c8ab6459f4dc8ebc42f401d3bd72c2a6c6808d10e42231f39e0c433ac646abf9"
},
"downloads": -1,
"filename": "asyncudp-0.11.0.tar.gz",
"has_sig": false,
"md5_digest": "d412333ac0d0c9387b7ff1dc7d1b1ee1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3986,
"upload_time": "2023-07-24T14:45:31",
"upload_time_iso_8601": "2023-07-24T14:45:31.664499Z",
"url": "https://files.pythonhosted.org/packages/89/0b/b94c42d75e2bd018727e625fa3147447cdfb26603e7b0892a4fdfcd2154d/asyncudp-0.11.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-24 14:45:31",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "eerimoq",
"github_project": "asyncudp",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "asyncudp"
}