Skip to main content

An implementation of Interactive Connectivity Establishment (RFC 5245)

Project description

rtd pypi-v pypi-pyversions pypi-l pypi-wheel travis coveralls

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.

#!/usr/bin/env python

import asyncio
import aioice

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

    # gather local candidates
    local_candidates = await connection.get_local_candidates()

    # send your information to the remote party using your signaling method
    send_local_info(
        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
    connection.remote_candidates = remote_candidates
    connection.remote_username = remote_username
    connection.remote_password = remote_password
    await connection.connect()

    # send and receive data
    await connection.send(b'1234')
    data = await connection.recv()

    # close connection
    await connection.close()

asyncio.get_event_loop().run_until_complete(connect_using_ice())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aioice-0.3.1.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

aioice-0.3.1-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file aioice-0.3.1.tar.gz.

File metadata

  • Download URL: aioice-0.3.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aioice-0.3.1.tar.gz
Algorithm Hash digest
SHA256 154a72b95d67f0b787a8230245d65317c670ce49e58452d354ef341822697edf
MD5 88f818b9107f86ccb34cd5803aad6666
BLAKE2b-256 d6d5a4810b5bba5a50035536ca0022ecbd55bd36770d376630ede0e4e9d4accb

See more details on using hashes here.

File details

Details for the file aioice-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aioice-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2f08ee037bfe5cf9c1234dfbfddab8193c699e5b99c8812db443ac8618da9df
MD5 f64d8c4ff1a9a22e7d0ad0826a7d598f
BLAKE2b-256 2f8357f941da5a57549a41b33bbf62f1a7743ffa55a50556720635cf6a78d018

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page