Skip to main content

A Python package for Interactive Connectivity Establishment (RFC 5245) with user-defined STUN servers.

Project description

ICE Connect

ICE Connect is a Python package that implements Interactive Connectivity Establishment (ICE) as specified in RFC 5245. It allows dynamic STUN server configuration for gathering local candidates.

Installation

pip install ice_connect

Usage

from ice_connect import IceAgent
import asyncio

async def main():
    agent = IceAgent(stun_server="stun.l.google.com")
    await agent.gather_local_candidates()
    agent.add_remote_candidate("192.168.1.2", 3478)
    success = await agent.establish_connection()
    if success:
        print("Connection verified with HELLO message exchange.")
    else:
        print("Connection could not be established.")

asyncio.run(main())

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

ice_connect-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ice_connect-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file ice_connect-0.1.0.tar.gz.

File metadata

  • Download URL: ice_connect-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for ice_connect-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2e82287aa82df219935af5f17754692d7a27605c5da4d7852f1120c98b8d17e9
MD5 7a94339d100452dfd1d406e9e281901d
BLAKE2b-256 0de7588dfcdb01304b90ce6bee312dbcf97c0a292142bf497730e8739539ca8d

See more details on using hashes here.

File details

Details for the file ice_connect-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ice_connect-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for ice_connect-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57b101c2056f5d40fbeb9ef58a5c7e010121e9f2439d343e2ea10db310e8a24c
MD5 981485c4327e9c10932de038f5d9b36d
BLAKE2b-256 4e664af1747097c9a6152843b2785e77e2cd8b16579324540622834d8bbe89ad

See more details on using hashes here.

Supported by

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