Skip to main content

No project description provided

Project description

MUSE Panel Wrapper

Python wrapper library for AMX MUSE G5 touchpad panels. Simplifies touchpad control with automatic state management and a clean component-based API.

What It Does

This library provides a Pythonic interface for authoring projects for the AMX Muse platform.

Key Features

  • CSV Configuration Loading - Import a programmer's report from TPdesign for automatic Touchpad setup.
  • Standardized indexing - Everything is one-indexed. No more off-by-one errors!
  • Searchable components - Avoid indexes all together! Just call find_by_name!
  • Testable user code - Logic and configuration is completely seperated from the Muse framework. You can finally test your project without specialized hardware!
  • Wraps G5 api -No more combing through documation to find the proper command strings. If you eant to change a background color, just update the attribute on the button object and call render(). Python takes care of the rest.

Installation

Clone this repository into your MUSE project directory:

git clone <repo-url> py-muse-wrappers

Basic Usage

from devices.touchpad import Touchpad

# Load touchpad with configuration
touchpad = Touchpad("AMX-10001", "programmers_report.csv")

# Access a button
button = touchpad.find_by_name("power")

# Update button properties
button.text = "Power"
button.visible = True
button.enabled = True

# Changes are sent to device on render
button.render()

# Set event handlers
button.callback.set_on_click(lambda: print("Button clicked!"))
button.callback.set_on_release(lambda: print("Button released!"))

Testing

pytest

License

LGPL v3 - See LICENSE file for details.

This library is licensed under the GNU Lesser General Public License v3.0. You can freely use this library in your proprietary AMX control projects. If you modify the library itself and distribute it, those modifications must remain open source under LGPL v3.

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

py_muse_wrappers-0.1.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

py_muse_wrappers-0.1.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file py_muse_wrappers-0.1.1.tar.gz.

File metadata

  • Download URL: py_muse_wrappers-0.1.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for py_muse_wrappers-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8b26554b04f923e82d848ee8ee0b7abc976e50aa88929739688e80fa867df556
MD5 34e33f252d2bc8c0c47c2b4c89c52d20
BLAKE2b-256 ab40fc780b4e6e1a340a07846782e86d31f8cced3c49f783fe2e12f2c163cd86

See more details on using hashes here.

File details

Details for the file py_muse_wrappers-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: py_muse_wrappers-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for py_muse_wrappers-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 716f6823bf8a2f3ee3204f0e73abee6f6cae369a4f900444981f16296c878b23
MD5 20a3e0e73e07a58760a751c7006181cb
BLAKE2b-256 006a5908720ffce0b13976f33a94600fe27e4a714313ccbd9bdbf1d74b627fad

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