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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa7224e7bd89e6e97d4288dd74fb7cecb60ab6d494739251064ffec4c2ca2cf4
|
|
| MD5 |
29079a1b57d53dd0b7058094c183bbbb
|
|
| BLAKE2b-256 |
585c83e24887c3dbe8e6a6c02d23b73eec838d866696fd936fcd37ad6e08c600
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec99f790409ec0d0db89d8821e81b63f3fae81792ef8fc0e9dceaa757caedf73
|
|
| MD5 |
c2d0f0af8ea36aa2153e394cc1453afc
|
|
| BLAKE2b-256 |
b5310532d5a1797a8bf44aa5699326deb925447c29564316c290b715930d9750
|