Skip to main content

Stream Tool

Stream Tool is a simple tool for making macros!

Use Stream Tool to create macros to control OBS or other programs on your computer. Or literally to run any python code you want to on a button press.

There is currently built-in functionality to run control some basic parts of OBS and to send your own OBS websocket requests. Other functionality may be added in the future but the main feature is that a function can be created and attached to a button to run it.

Project documentation is hosted at Read the Docs here.

Installing Stream Tool

Stream Tool is available on PyPI:

$ python -m pip install stream-tool

Stream Tool officially supports Python 3.10+.

Documentation

Full public API documentation as well as several tutorial to get started are available at Read the Docs. A quick start is available below to show you the jist of it.

Quick Start

Import Stream Tool and necessary modules and functions:

>>> from stream_tool import create_website, builtin_obs_actions, Websockets_Auth

Configure OBS websocket password, create a site, and add a page:

>>> Websockets_Auth.websockets_password = "password"
>>> my_site = create_website(use_obs_websockets=True)
>>> my_page = my_site.add_page("page 1")

Add a button with a link to the index page:

>>> btn_1 = my_page.add_button("index")
>>> btn_1.button_link =m y_site.index.url)

Add a button to increase a OBS input's volume:

>>> btn_2 = my_page.add_button("sound up")
>>> btn2.button_function = 
...     obs_websockets_actions.change_volume("input")

Run the webiste and visit it at the link:

>>> my_site.build_and_run()
* Serving Flask app 'stream_tool._website'
* Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
Press CTRL+C to quit

Metadata

Release files for stream-tool 0.1.0

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

Source distribution (sdist)

Source distribution for stream-tool 0.1.0
File Size Uploaded
stream_tool-0.1.0.tar.gz 23.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stream-tool 0.1.0
File Interpreter ABI Platform
stream_tool-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 48.7 kB

Release files / stream_tool-0.1.0.tar.gz

Download URL stream_tool-0.1.0.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
59ab0f15d1feff3c9b5fe6935642ee4b8509eb56e3475fef306bea0091753c19
BLAKE2b-256 checksum
How to use checksums
162ad3c008a0b408f014469063ae3419c9ad6dac6a2abd0f1cbc9a0494c4fe37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / stream_tool-0.1.0-py3-none-any.whl

Download URL stream_tool-0.1.0-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dac2184edc622c1b0e33162040e8ed5129eaaefe210a89cf09914ba6c8062525
BLAKE2b-256 checksum
How to use checksums
803f74896d965d7d30a248dba755149e18fb65c449e3df5e80807f086ff1f0fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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