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.2.tar.gz (2.5 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.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ice_connect-0.1.2.tar.gz
  • Upload date:
  • Size: 2.5 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.2.tar.gz
Algorithm Hash digest
SHA256 493fcb61499b5e8148005e83b31d20d109016b6da98909aed678caf656d48407
MD5 0c7d27d807ea2bbd7236cb2e7573e86d
BLAKE2b-256 da39bfa56d13210a6fb662f3d529637edba982b4948f982ef6bda29809a3e0d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ice_connect-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6f5fe39e62943519d17a88f74f16ced9667ff9dbaa0cb15a3f134bb0f86e1103
MD5 96b1e4933b8713fcc2b6a283ba61550a
BLAKE2b-256 1d94f62bb685b4c6bebc3ed6ac56a29b20371b1cc28ff96b63aac2160e4eb075

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