Skip to main content

Python client SDK for Ultravox.

Project description

Ultravox client SDK for Python

Python client SDK for Ultravox.

pypi-v

Getting started

pip install ultravox-client

Usage

import asyncio
import signal

import ultravox_client as uv

session = uv.UltravoxSession()
done = asyncio.Event()

@session.on("status")
def on_status():
    if session.status == uv.UltravoxSessionStatus.DISCONNECTED:
        done.set()

await session.join_call(os.getenv("JOIN_URL", None))
loop = asyncio.get_running_loop()
loop.add_signal_handler(signal.SIGINT, lambda: done.set())
loop.add_signal_handler(signal.SIGTERM, lambda: done.set())
await done.wait()
await session.leave_call()

See the included example app for a more complete example. To get a joinUrl, you'll want to integrate your server with the Ultravox REST API.

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

ultravox_client-0.1.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

ultravox_client-0.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ultravox_client-0.1.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ultravox_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 043a33ceaea61da66f7b4140c06442ea945d15192007e99fb622620353e3dd48
MD5 2b9c8c6bbcd682cf1c54faf374399c76
BLAKE2b-256 21b270bce5743494f19d0bbb8680b2aa3b9d058d0b6cbafb583f90850328f8d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ultravox_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ultravox_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25be38aed5e845fb936778083860e7bf2681df880a4ca383b307ff168c6741f6
MD5 448b6a39e827d067187cc69a7f35baa9
BLAKE2b-256 28610fa12e1caff94242a7a50695e6529161af5b635212757512a6811c5514d6

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