Wrapper for OSC of the Infinity Chimp Lighting Console
Project description
chimp-osc
Wrapper for OSC of the Infinity Chimp Lighting Console Logging is used in all modules and can be activated by:
import logging
logging.basicConfig(
level=logging.DEBUG,
format="%(asctime)s [%(levelname)s] %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
)
Use Chimp or Interface for custom implementation
Install library without options
pip install chimp-osc
Use plain OSC-Interface
from chimp_osc import ChimpOSCInterface
itf = ChimpOSCInterface("<IP of console>")
def handler(address, *args):
logging.info(f"Received {args} in {address}")
itf.add_handler("/*",handler)
itf.executor_flash(nr=1,data=True)
Or use the Chimp Console
from chimp_osc import Chimp
chimp = Chimp(target_ip="<IP of console>")
chimp.faders[1].flash.press()
Use web-based User Interface
pip install chimp-osc[ui]
and create it using with the already shown chimp
from chimp_osc.chimp_ui import create_ui
create_ui(chimp)
Use Controllers like XBox-controllers
pip install chimp_osc[controller]
The controller runs in it own thread. This offers the possibility to connect multiple controllers or run a controller and the UI at the same time.
from chimp_osc.controllers import XBoxController
XBoxController(chimp).start()
while True:
pass
Use Full features in combination
Install dependencies for all above mentioned features
pip install chimp-osc[full]
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chimp_osc-0.2.0.tar.gz.
File metadata
- Download URL: chimp_osc-0.2.0.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dfd98133f378851eb36d74aafd72758aedff53a1af2774e1c691290c6b29a54
|
|
| MD5 |
d575c5fa5b10cbea0fb28834cf1fbd10
|
|
| BLAKE2b-256 |
07e0f149731b87db5486e26e45978caeac4534a0b72fa60d13a207e31755b18c
|
File details
Details for the file chimp_osc-0.2.0-py3-none-any.whl.
File metadata
- Download URL: chimp_osc-0.2.0-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14518b48f4433f639928f1f25ae41f3e5e46cfcbf1847bb5e752542abab52097
|
|
| MD5 |
3610d22e55ea00af7f8aaf225c1db382
|
|
| BLAKE2b-256 |
f72ff827021a839092e324f0cda2c9cb4ed49d86fa340ef42a1e9de462c0a352
|