Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chimp_osc-0.2.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chimp_osc-0.2.0-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

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

Hashes for chimp_osc-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2dfd98133f378851eb36d74aafd72758aedff53a1af2774e1c691290c6b29a54
MD5 d575c5fa5b10cbea0fb28834cf1fbd10
BLAKE2b-256 07e0f149731b87db5486e26e45978caeac4534a0b72fa60d13a207e31755b18c

See more details on using hashes here.

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

Hashes for chimp_osc-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14518b48f4433f639928f1f25ae41f3e5e46cfcbf1847bb5e752542abab52097
MD5 3610d22e55ea00af7f8aaf225c1db382
BLAKE2b-256 f72ff827021a839092e324f0cda2c9cb4ed49d86fa340ef42a1e9de462c0a352

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page