Skip to main content

aioice

rtd pypi-v pypi-pyversions pypi-l pypi-wheel tests codecov

What is aioice?

aioice is a library for Interactive Connectivity Establishment (RFC 5245) in Python. It is built on top of asyncio, Python’s standard asynchronous I/O framework.

Interactive Connectivity Establishment (ICE) is useful for applications that establish peer-to-peer UDP data streams, as it facilitates NAT traversal. Typical usecases include SIP and WebRTC.

To learn more about aioice please read the documentation.

Example

import asyncio
import aioice

async def connect_using_ice():
    connection = aioice.Connection(ice_controlling=True)

    # gather local candidates
    await connection.gather_candidates()

    # send your information to the remote party using your signaling method
    send_local_info(
        connection.local_candidates,
        connection.local_username,
        connection.local_password)

    # receive remote information using your signaling method
    remote_candidates, remote_username, remote_password = get_remote_info()

    # perform ICE handshake
    for candidate in remote_candidates:
        await connection.add_remote_candidate(candidate)
    await connection.add_remote_candidate(None)
    connection.remote_username = remote_username
    connection.remote_password = remote_password
    await connection.connect()

    # send and receive data
    await connection.sendto(b'1234', 1)
    data, component = await connection.recvfrom()

    # close connection
    await connection.close()

asyncio.run(connect_using_ice())

License

aioice is released under the BSD license.

Metadata

Release files for aioice 0.12.1

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

Source distribution (sdist)

Source distribution for aioice 0.12.1
File Size Uploaded Provenance Actions
aioice-0.12.1.tar.gz 62.2 kB Without provenance Details for aioice-0.12.1.tar.gz

Built distribution (wheel)

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

Total release size: 90.5 kB

Release files / aioice-0.12.1.tar.gz

Download URL aioice-0.12.1.tar.gz
Size 62.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0986585f5bc3848392ac4aa9207e1b311aa605ca3c88c3f68e33916b9c2059cc
BLAKE2b-256 checksum
How to use checksums
8f2b3fc36e3531590b809c2369220bac0ac70f46a2b153167e7faafa83c3e623
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / aioice-0.12.1-py3-none-any.whl

Download URL aioice-0.12.1-py3-none-any.whl
Size 28.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91b195bd4fd6b7f475f8f99d750153c2e4cf063ac819813c4a3aaceaf76154c5
BLAKE2b-256 checksum
How to use checksums
84bbbf4b9d254fe7eac8c04d0c475f73d980f17c0ae5436c64352879b1f589c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for aioice 0.12.1

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.

Release history Release notifications | RSS feed

This release

0.12.1 This release

2 release files No provenance

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