a simple tool for making macros
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file stream_tool-0.1.0.tar.gz
.
File metadata
- Download URL: stream_tool-0.1.0.tar.gz
- Upload date:
- Size: 23.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59ab0f15d1feff3c9b5fe6935642ee4b8509eb56e3475fef306bea0091753c19 |
|
MD5 | 71c07f052a450c8488bbb92e382d2da9 |
|
BLAKE2b-256 | 162ad3c008a0b408f014469063ae3419c9ad6dac6a2abd0f1cbc9a0494c4fe37 |
File details
Details for the file stream_tool-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: stream_tool-0.1.0-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dac2184edc622c1b0e33162040e8ed5129eaaefe210a89cf09914ba6c8062525 |
|
MD5 | 85622d20a6cd10c8db399a0cd266cc15 |
|
BLAKE2b-256 | 803f74896d965d7d30a248dba755149e18fb65c449e3df5e80807f086ff1f0fa |