Metadata-Version: 2.1
Name: pyjanus
Version: 0.1.0
Summary: janus-gateway python client
Home-page: https://github.com/skymaze/pyjanus
License: MIT
Author: Jiang Yue
Requires-Python: >=3.6.9,<4.0.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: pydantic (>=1.8.2,<2.0.0)
Requires-Dist: pyee (>=8.1.0,<9.0.0)
Requires-Dist: websockets (>=9.1,<10.0)
Project-URL: Repository, https://github.com/skymaze/pyjanus
Description-Content-Type: text/markdown

# 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
```
