All Projects → Elektordi → obs-websocket-py

Elektordi / obs-websocket-py

Licence: MIT license
Python library to communicate with an obs-websocket server (for OBS Studio)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to obs-websocket-py

OBS-ChatSpam
Python script for OBS Studio that posts messages in Twitch chat
Stars: ✭ 26 (-81.29%)
Mutual labels:  obs-studio, obs-websocket
kiwi
Kiwi turns your Pimoroni Keybow into a fully customizable poor-man's Elgato Stream Deck!
Stars: ✭ 40 (-71.22%)
Mutual labels:  obs-studio, obs-websocket
obs-websocket-js
Consumes https://github.com/obsproject/obs-websocket
Stars: ✭ 521 (+274.82%)
Mutual labels:  obs-studio, obs-websocket
Obs Websocket
Remote-control of OBS Studio through WebSocket
Stars: ✭ 2,425 (+1644.6%)
Mutual labels:  obs-studio
CounterStrike-GlobalOffensive-LiveStat-for-OBS-Studio
Showing you LIVEstats of CS:GO in your Stream like OBS-Studio while playing/streaming.
Stars: ✭ 24 (-82.73%)
Mutual labels:  obs-studio
obs-studio
This is a community-supported modified build of OBS Studio.
Stars: ✭ 86 (-38.13%)
Mutual labels:  obs-studio
obs-face-tracker
Face tracking plugin for OBS Studio
Stars: ✭ 185 (+33.09%)
Mutual labels:  obs-studio
Obs Virtual Cam
obs-studio plugin to simulate a directshow webcam
Stars: ✭ 1,558 (+1020.86%)
Mutual labels:  obs-studio
obs blade
Make use of the OBS WebSocket Plugin (https://github.com/obsproject/obs-websocket) and control your stream
Stars: ✭ 182 (+30.94%)
Mutual labels:  obs-studio
obs-golang-plugin
OBS Studio Golang Plugin
Stars: ✭ 50 (-64.03%)
Mutual labels:  obs-studio
obs-scripts
Contains scripts I created for obs-studio (https://github.com/obsproject/obs-studio)
Stars: ✭ 24 (-82.73%)
Mutual labels:  obs-studio
websocket-overlays
Websocket controlled Video Overlay server for OBS-Studio, XSplit, CasparCG, ProPresenter and everything with web browser.
Stars: ✭ 27 (-80.58%)
Mutual labels:  obs-studio
obs-text-slideshow
OBS plugin inspired by the built in image slideshow, except for text sources instead. Both Free Type 2 and GDI+ are supported.
Stars: ✭ 45 (-67.63%)
Mutual labels:  obs-studio
obs-vkcapture
OBS Linux Vulkan/OpenGL game capture
Stars: ✭ 332 (+138.85%)
Mutual labels:  obs-studio
BeatRecorder
Easily record your BeatSaber gameplay!
Stars: ✭ 20 (-85.61%)
Mutual labels:  obs-studio
Obs Ndi
NewTek NDI integration for OBS Studio
Stars: ✭ 1,893 (+1261.87%)
Mutual labels:  obs-studio
XION-ChaseCam
This is a free-to-use HTML/javascript based overlay for roleplay streamers. Basically it mimics the overlay of the AXON bodycam, but since most folks play in 3rd person, it's a ChaseCam. I've included a logo, and the html file. The html file has the css, html, and javascript all in one file for ease of editing. Goto line 81 of the html file to c…
Stars: ✭ 27 (-80.58%)
Mutual labels:  obs-studio
marv
Marv your Swiss streaming tool!
Stars: ✭ 149 (+7.19%)
Mutual labels:  obs-websocket
OBSliveTally
Display the stream status or tally information for a scene or source on any device in the network.
Stars: ✭ 20 (-85.61%)
Mutual labels:  obs-websocket
obs-zoom-and-follow
Dynamic zoom and mouse tracking script for OBS Studio
Stars: ✭ 126 (-9.35%)
Mutual labels:  obs-studio

obs-websocket-py

Python library to communicate with an obs-websocket server.

Licensed under the MIT License

Project pages

GitHub project: https://github.com/Elektordi/obs-websocket-py

PyPI package: https://pypi.org/project/obs-websocket-py/

Installation

Just run pip install obs-websocket-py in your Python venv or directly on your system.

For manual install, git clone the github repo and copy the directory obswebsocket in your python project root.

Requires: websocket-client (from pip)

Usage

See python scripts in the samples directory.

Or take a look at the documentation below:

Output of pydoc obswebsocket.core.obsws:

Help on class obsws in obswebsocket.core:

obswebsocket.core.obsws = class obsws
 |  Core class for using obs-websocket-py
 |  
 |  Simple usage:
 |      >>> import obswebsocket, obswebsocket.requests
 |      >>> client = obswebsocket.obsws("localhost", 4444, "secret")
 |      >>> client.connect()
 |      >>> client.call(obswebsocket.requests.GetVersion()).getObsWebsocketVersion()
 |      u'4.1.0'
 |      >>> client.disconnect()
 |      
 |  For advanced usage, including events callback, see the 'samples' directory.
 |  
 |  Methods defined here:
 |  
 |  __init__(self, host=None, port=4444, password='')
 |      Construct a new obsws wrapper
 |      
 |      :param host: Hostname to connect to
 |      :param port: TCP Port to connect to (Default is 4444)
 |      :param password: Password for the websocket server (Leave this field empty if no auth enabled
 |          on the server)
 |  
 |  call(self, obj)
 |      Make a call to the OBS server through the Websocket.
 |      
 |      :param obj: Request (class from obswebsocket.requests module) to send to the server.
 |      :return: Request object populated with response data.
 |  
 |  connect(self, host=None, port=None)
 |      Connect to the websocket server
 |      
 |      :return: Nothing
 |  
 |  disconnect(self)
 |      Disconnect from websocket server
 |      
 |      :return: Nothing
 |  
 |  reconnect(self)
 |      Restart the connection to the websocket server
 |      
 |      :return: Nothing
 |  
 |  register(self, function, event=None)
 |      Register a new hook in the websocket client
 |      
 |      :param function: Callback function pointer for the hook
 |      :param event: Event (class from obswebsocket.events module) to trigger the hook on.
 |          Default is None, which means trigger on all events.
 |      :return: Nothing
 |  
 |  send(self, data)
 |      Make a raw json call to the OBS server through the Websocket.
 |      
 |      :param obj: Request (python dict) to send to the server. Do not include field "message-id".
 |      :return: Response (python dict) from the server.
 |  
 |  unregister(self, function, event=None)
 |      Unregister a new hook in the websocket client
 |      
 |      :param function: Callback function pointer for the hook
 |      :param event: Event (class from obswebsocket.events module) which triggered the hook on.
 |          Default is None, which means unregister this function for all events.
 |      :return: Nothing

Problems?

Please check on Github project issues, and if nobody else have experienced it before, you can file a new issue.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].