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.2.tar.gz (11.3 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.2-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_muse_wrappers-0.1.2.tar.gz
  • Upload date:
  • Size: 11.3 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.2.tar.gz
Algorithm Hash digest
SHA256 fa7224e7bd89e6e97d4288dd74fb7cecb60ab6d494739251064ffec4c2ca2cf4
MD5 29079a1b57d53dd0b7058094c183bbbb
BLAKE2b-256 585c83e24887c3dbe8e6a6c02d23b73eec838d866696fd936fcd37ad6e08c600

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_muse_wrappers-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ec99f790409ec0d0db89d8821e81b63f3fae81792ef8fc0e9dceaa757caedf73
MD5 c2d0f0af8ea36aa2153e394cc1453afc
BLAKE2b-256 b5310532d5a1797a8bf44aa5699326deb925447c29564316c290b715930d9750

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