{"id":19262744,"url":"https://github.com/aiortc/aioice","last_synced_at":"2025-05-15T13:06:20.702Z","repository":{"id":29055639,"uuid":"120102008","full_name":"aiortc/aioice","owner":"aiortc","description":"asyncio-based Interactive Connectivity Establishment (RFC 5245)","archived":false,"fork":false,"pushed_at":"2025-04-13T08:08:30.000Z","size":337,"stargazers_count":116,"open_issues_count":12,"forks_count":59,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-12T19:16:30.834Z","etag":null,"topics":["asyncio","network","python","rfc-5245"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aiortc.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-02-03T15:12:58.000Z","updated_at":"2025-05-05T05:18:02.000Z","dependencies_parsed_at":"2024-06-18T16:40:48.433Z","dependency_job_id":"752485c2-5473-42c8-93fb-09e68e2a2642","html_url":"https://github.com/aiortc/aioice","commit_stats":{"total_commits":352,"total_committers":12,"mean_commits":"29.333333333333332","dds":0.03409090909090906,"last_synced_commit":"3cd4bcc9f710d335d3b3ef8ae7a786830712f24f"},"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiortc%2Faioice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiortc%2Faioice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiortc%2Faioice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiortc%2Faioice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aiortc","download_url":"https://codeload.github.com/aiortc/aioice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346624,"owners_count":22055808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","network","python","rfc-5245"],"created_at":"2024-11-09T19:33:19.201Z","updated_at":"2025-05-15T13:06:20.682Z","avatar_url":"https://github.com/aiortc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"aioice\n======\n\n|rtd| |pypi-v| |pypi-pyversions| |pypi-l| |pypi-wheel| |tests| |codecov|\n\n.. |rtd| image:: https://readthedocs.org/projects/aioice/badge/?version=latest\n   :target: https://aioice.readthedocs.io/\n\n.. |pypi-v| image:: https://img.shields.io/pypi/v/aioice.svg\n    :target: https://pypi.python.org/pypi/aioice\n\n.. |pypi-pyversions| image:: https://img.shields.io/pypi/pyversions/aioice.svg\n    :target: https://pypi.python.org/pypi/aioice\n\n.. |pypi-l| image:: https://img.shields.io/pypi/l/aioice.svg\n    :target: https://pypi.python.org/pypi/aioice\n\n.. |pypi-wheel| image:: https://img.shields.io/pypi/wheel/aioice.svg\n    :target: https://pypi.python.org/pypi/aioice\n\n.. |tests| image:: https://github.com/aiortc/aioice/workflows/tests/badge.svg\n    :target: https://github.com/aiortc/aioice/actions\n\n.. |codecov| image:: https://img.shields.io/codecov/c/github/aiortc/aioice.svg\n    :target: https://codecov.io/gh/aiortc/aioice\n\nWhat is ``aioice``?\n-------------------\n\n``aioice`` is a library for Interactive Connectivity Establishment (RFC 5245)\nin Python. It is built on top of ``asyncio``, Python's standard asynchronous\nI/O framework.\n\nInteractive Connectivity Establishment (ICE) is useful for applications that\nestablish peer-to-peer UDP data streams, as it facilitates NAT traversal.\nTypical usecases include SIP and WebRTC.\n\nTo learn more about ``aioice`` please `read the documentation`_.\n\n.. _read the documentation: https://aioice.readthedocs.io/en/stable/\n\nExample\n-------\n\n.. code:: python\n\n    import asyncio\n    import aioice\n\n    async def connect_using_ice():\n        connection = aioice.Connection(ice_controlling=True)\n\n        # gather local candidates\n        await connection.gather_candidates()\n\n        # send your information to the remote party using your signaling method\n        send_local_info(\n            connection.local_candidates,\n            connection.local_username,\n            connection.local_password)\n\n        # receive remote information using your signaling method\n        remote_candidates, remote_username, remote_password = get_remote_info()\n\n        # perform ICE handshake\n        for candidate in remote_candidates:\n            await connection.add_remote_candidate(candidate)\n        await connection.add_remote_candidate(None)\n        connection.remote_username = remote_username\n        connection.remote_password = remote_password\n        await connection.connect()\n\n        # send and receive data\n        await connection.sendto(b'1234', 1)\n        data, component = await connection.recvfrom()\n\n        # close connection\n        await connection.close()\n\n    asyncio.run(connect_using_ice())\n\nLicense\n-------\n\n``aioice`` is released under the `BSD license`_.\n\n.. _BSD license: https://aioice.readthedocs.io/en/stable/license.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiortc%2Faioice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faiortc%2Faioice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiortc%2Faioice/lists"}