A Python SDK for OBS Studio WebSocket v5.0
Maintained. Last release 5 weeks ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install obsws-pythonREADME as published on PyPI with version 1.8.1.
A Python SDK for OBS Studio WebSocket v5.0
Not all endpoints in the official documentation are implemented.
Requirements
- OBS Studio
- OBS Websocket v5 Plugin
- With the release of OBS Studio version 28, Websocket plugin is included by default. But it should be manually installed for earlier versions of OBS.
- Python 3.9 or greater
How to install using pip
pip install obsws-python
How to Use
By default the clients connect with parameters:
host: "localhost"port: 4455password: ""timeout: None
You may override these parameters by storing them in a toml config file or passing them as keyword arguments.
Order of precedence: keyword arguments then config file then default values.
config file
A valid config.toml might look like this:
[connection]
host = "localhost"
port = 4455
password = "mystrongpass"
It should be placed in your user home directory.