Skip to main content

janus-gateway python client

Project description

pyjanus

janus-gateway python client

Usage

from pyjanus import Client
from pyjanus.plugins.videoroom import ListparticipantsRequest

client = Client('wss://janus.conf.meetecho.com/ws')
await client.connect()

session = await client.create_session(keepalive_timeout=9)
handle = await session.attach("janus.plugin.videoroom")

# send request
tr = await handle.send({"request": "list"})
response = await tr.response

# send request use plugin model
tr = await handle.send(ListparticipantsRequest(room=1234).dict(exclude_none=True))
response = await tr.response

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

pyjanus-0.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

pyjanus-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyjanus-0.1.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.10 Linux/5.10.43.3-microsoft-standard-WSL2

File hashes

Hashes for pyjanus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6610e494992c7e8d25f788238934ec49640605e30ab94e2789f6b92e154e6892
MD5 e2609af0f99f6c135d5723eebfd05104
BLAKE2b-256 b8104e8e2b3bf6a6fdff7765b33d34254bd8245e2449663d2ca472b4ea149967

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyjanus-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.10 Linux/5.10.43.3-microsoft-standard-WSL2

File hashes

Hashes for pyjanus-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8dbab8af52992ba35c237dd9797c29d5fc57554c49b79ac1ef80b406e0ed391e
MD5 ab43fde115df88c5f6388bafd69c8d29
BLAKE2b-256 c2fff0d0117b03c4e2d8d8cbb87a0320bea5f82a664a66770240acd8e9eea2de

See more details on using hashes here.

Supported by

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