Skip to main content

OpenVidu Connect

The project aims to connect to the OpenVidu Server. It tries to wrap all the headers and APIs into attributes and methods of a class. OpenVidu Connect provides support for Sync and Async API calls. (Enabled with context manager for both sync and async runs.)

What do we have in store?

  • Future annotations are used to get the maximum output for support in IDEs
  • Built on top of httpx (Get httpx: pip install httpx)

Code Examples

  • Sync Class (OpenViduClient) Example
from openviduconnect import OpenViduClient

ov = OpenViduClient("<HOST>", "<SECRET>")
response = ov.get_sessions()
print(response)

######
# OR #
######

with OpenViduClient("<HOST>", "<SECRET>") as ov:
    response = ov.get_sessions()
print(response)
  • Async Class (AsyncOpenViduClient) Example
from openviduconnect import AsyncOpenViduClient

aov = AsyncOpenViduClient("<HOST>", "<SECRET>")
"""Async Stuff"""
response = await aov.get_sessions()
print(response)

######
# OR #
######

async with AsyncOpenViduClient("<HOST>", "<SECRET>") as aov:
    response = await aov.get_sessions()
print(response)
  • We have all forms of specific errors respective to the documentation of the REST APIs
from openviduconnect.exceptions import SessionBodyParameterError
"""SessionBodyParameterError is just an example there are many more"""

print(SessionBodyParameterError.status)  # Provides HTTP Response Status Code

Support

  • Runs with Python 3.7 and beyond
  • At this point it only supports OpenVidu 2.17.0
  • Will try to maintain versions of openviduconnect for different OepnVidu versions

Known issues?

  • Documentation
  • Others. You tell me

Metadata

Release files for openviduconnect 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openviduconnect 1.0.2
File Size Uploaded
openviduconnect-1.0.2.tar.gz 6.8 kB Details

Release files / openviduconnect-1.0.2.tar.gz

Download URL openviduconnect-1.0.2.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
aa31b9a9ea9fe07f814673adb5a0843a60375d2c32faf1b6f6542cd1bbb710df
BLAKE2b-256 checksum
How to use checksums
f19565329b74b875be63691210b4665261799fe9d62b946b6f71185675e30078
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page