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():
    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_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()

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

Uploaded Source

Built Distribution

aioice-0.2.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aioice-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1131996457f67d6c03778c7aa0271aa7f15642d354704250715c0fdf40762246
MD5 c211ba9f80122dace868bb0beae7f634
BLAKE2b-256 33381f19e656136081cb40d6d091c3bbc976f69470fdd8ef1f88cdd90d0f960d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aioice-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54691ac7f0492abeafccb3b4d64780ae77a95b2a08e82a823229f83bd1e22058
MD5 c00155f424364624b61ed28ec8187044
BLAKE2b-256 56da249986e3ba32e621fab07496f4bbe110bec4df386ff547c7ed9b446ef7e2

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