Skip to main content

An implementation of Interactive Connectivity Establishment (RFC 5245)

Project description

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(uri):
    connection = aioice.Connect(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_username = remote_username
    connection.remote_password = remote_password
    connection.set_remote_candidates(remote_candidates)
    await connection.connect()

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

    # 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.1.4.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

aioice-0.1.4-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aioice-0.1.4.tar.gz
Algorithm Hash digest
SHA256 614742575609f2b2c51ad1047a38d97fe95e60f5f7c89b32809caa8f06615d05
MD5 2158db7512610f573f798a006c6de607
BLAKE2b-256 9b54ebdb5c7738e81bb0df1b6a1829ce11b8e3efe914b31773fcd209fde58778

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aioice-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 98ad63d1a6d4e5dde52412269d1d391e80e24c05f7522c3269abd16322a18259
MD5 1829a7038b64fb071e166ae895282838
BLAKE2b-256 b6fb6d65c00d88d2b3a5d1547f42d262de2058ff6eaa50a3ce56bfd1004e9f24

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