Client library for interacting with the FormPix API
Project description
Formpix Module
For interacting with a formPix instance easily.
Install in Python project
pip install formpix
Example script
import formpix
formpix.login(
"ADDRESS OF FORMPIX INSTANCE HERE, NO '/'... ",
"GET AN API KEY FROM THE FORMBAR INSTANCE THE FORMPIX IS CONNECTED TO"
)
formpix.fill('#ff0000', 0, 10)
Methods
# Connect to formpix
formpix.login(formpixURL, formbarAPIkey)
# Fill length of bar with color
formpix.fill(color, start, length)
# Fill length of bar with two color gradient
formpix.gradient(start_color, end_color, start, length)
# Set a single pixel to a color
formpix.set_pixel(location, color)
# Set an array of pixels (as pixel objects)
# { "pixel_number": integer, "color": #hexcolor }
formpix.set_pixels(pixels)
# Display text on the board extension
formpix.say(text, color, bgcolor)
# Get a list of 'bgm' or 'sfx' on the formpix
# type is 'bgm' or 'sfx'
formpix.get_sounds(type)
# Play a bgm or sound on the formpix
# Use 'None' for the parameter you don't want to use
formpix.play_sound(sfx, bgm)
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
formpix-1.0.1.tar.gz
(2.4 kB
view details)
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 formpix-1.0.1.tar.gz.
File metadata
- Download URL: formpix-1.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89f0402197af358b28f6a42e30ced66ebc485c819f21c33330a2df4056672baa
|
|
| MD5 |
3cee83081b9db81bd95c4f893a5dc91c
|
|
| BLAKE2b-256 |
dd4699a6208eec86ad6ea79390c536f85dccc02e384b7222741c55b23331d282
|
File details
Details for the file formpix-1.0.1-py3-none-any.whl.
File metadata
- Download URL: formpix-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d0c5902c1bff60621ed86f08f480ec37ef210563dfc3a4ef17c34f116400114
|
|
| MD5 |
07f0ef00955bc854a32b92aa4e8e4cc5
|
|
| BLAKE2b-256 |
ba036e0a0e37953ffb1d11d42440846ceb5a0e156aa4c25f79499e30b2685fe7
|