Python package for AVStumpfl, Pixera API
Project description
Pixera Python API
PixeraPy
Made by Ted Charles Brown
pip install PixeraPy
Usage
Via PyPi (Recommended)
from PixeraPy import Pixera, API
ip = "127.0.0.1" # Replace with your Pixera system's IP address
port = 1400 # Replace with your Pixera system's port if different
pixera = Pixera(ip, port)
api = API()
Manual Downlaod
- Download PixeraPy directly and place into your working directory
Examples
from time import sleep
# ----------------------------- DEFAULT DEBUGGING ---------------------------- #
output = pixera.send()
print(output)
sleep(1)
# ----------------------------- VERBOSE DEBUGGING ---------------------------- #
output = pixera.send(api.outputDebug("Hello from Python!"), verbose=True)
print(output)
sleep(1)
# ---------------------------- CHANGING API METHOD --------------------------- #
output = pixera.send(api.getApiRevision(), protocol="TCP_DL", port=1401, verbose=True)
print(output)
sleep(1)
# ------------------------- ACCESSING CONTROL MODULES ------------------------ #
output = pixera.send(["NewModule.Test"])
print(output)
sleep(1)
# ---------------------------- MULTIPLE PARAMETERS --------------------------- #
pixera.send(api.setTransportModeOnTimeline("Timeline 1", 1))
sleep(1)
pixera.send(api.setTransportModeOnTimeline("Timeline 1", 0))
sleep(1)
# ----------------------------- HANDLING HANDLES ----------------------------- #
screens = pixera.return_array(pixera.send(api.getScreens()))
for screen in screens:
output = pixera.send(api.Screen().getName(int(screen)), verbose=True)
print(output)
sleep(1)
# ------------------------------- MANUAL INPUT ------------------------------- #
output = pixera.send(["Pixera.Utility.outputDebug", ["message"], ["Hello from Python!"]], verbose=True)
print(output)
Update Log
v0.381.3 - Fixes error where default IP was not changing
v0.381.2 - Revised the parsing of incoming data, offers option for raw output
v0.381.1 - Pixera API revision 381 (Pixera 2.0.40)
v0.367.2 - Pixera API revision 367
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
PixeraPy-0.381.3.tar.gz
(21.1 kB
view hashes)
Built Distribution
PixeraPy-0.381.3-py3-none-any.whl
(20.4 kB
view hashes)
Close
Hashes for PixeraPy-0.381.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28d40eef913874172afd8a314b8ede6060f7ef259c3cc5a7ca85bd2e8e3402fc |
|
MD5 | 0e247b5f9ecde8e12c8b8aa29993fc18 |
|
BLAKE2b-256 | 777b22e3dff8a9be6b0b938b78068800ab81767a45280b094d9c0499f4ba162c |