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.3.tar.gz
(2.5 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.3.tar.gz.
File metadata
- Download URL: formpix-1.0.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff9e322e7cf121cbda16abd0d9c9fa3516655498a3c6d90b366efec68949b63b
|
|
| MD5 |
76ba4e58a6cd7f5494287e06e16777fc
|
|
| BLAKE2b-256 |
c1932b2f82df61126aeea806c235ebc6aa57f7c7caf105b36ca6a5f6b3cf33db
|
File details
Details for the file formpix-1.0.3-py3-none-any.whl.
File metadata
- Download URL: formpix-1.0.3-py3-none-any.whl
- Upload date:
- Size: 2.8 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 |
25d9bea52047a9eb021f4ca1950a02e3b221e1ced479a930974512960adb2628
|
|
| MD5 |
a9e2c9e6f1c83569859853f2d6e4685c
|
|
| BLAKE2b-256 |
82e99957d5c4dc5d76f0b1fe52c9b0244d262d156ed7505db0722f37e7448e88
|