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.1.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.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ice_connect-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 34b55b5aeeebb594f9dda57929bac35f69a4ebf5e4dc53d54c7c89f5c226f1ed
MD5 b269a0fe5cee2d2bad954999c7c5f74d
BLAKE2b-256 fb9c41df3125a8ee33c886b33f4c3ac1eee81c68f6be824fe724334c72c4e0aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ice_connect-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5c007550c0e73588c268c0bcc6dae87fabf4e41cd754abcffa27e83d80759f1
MD5 7b86eea14b35f9a801f8e07a2afc304e
BLAKE2b-256 93c6da7bca19fb62e5f73cf7ec532aa9d1f98eaf6df3187cccdaaa4a30af3790

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