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.0.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.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_muse_wrappers-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 8138c7c2cf7f81b32b063f06fdaab1055cc85bdff066a4f7d7acfdfeda8bc090
MD5 96a4d3379c15c3c9b1ad92313a6f4ba2
BLAKE2b-256 a4be93622cba9f360a43b13f21c674b4655c88bb87ec7fb576cd448193557cbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_muse_wrappers-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f554a64b9a5f9a5864f180910f1b3766f96f75aec594e61d0d20c632358119c7
MD5 59909db4bcf991ac39f944604d5b22a9
BLAKE2b-256 440fe5ccc809c2f4a9aaaa5f50426b37fdf5878c13bf93782652630663d73872

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