Python client library for Vestaboard Read/Write API
Project description
vestaboard-rw
Typed Python client for Vestaboard’s Read / Write API (and only the Read/Write API).
Links:
Install
pip install vestaboard-rw
Authentication
Enable the Read/Write API in the Vestaboard web app and copy your Read / Write API key (docs).
You can provide the key directly, or via environment variable:
VESTABOARD_READ_WRITE_API_KEY: your key (sent as theX-Vestaboard-Read-Write-Keyheader)
Quickstart
from vestaboard import VestaboardClient
client = VestaboardClient(api_key="YOUR_READ_WRITE_API_KEY")
# Read current message
current = client.read_write.get_current_message()
layout_codes = current.current_message.layout_as_list()
# Send a text message
client.read_write.send_message(text="Hello World")
# Send a layout (validated as either 6x22 Flagship or 3x15 Note)
layout = [[0 for _ in range(22)] for _ in range(6)]
client.read_write.send_message(layout=layout)
Rate limiting
Vestaboard notes that if you send more than 1 message every 15 seconds, messages may be dropped (docs).
Configuration
The underlying HTTP client supports timeouts and retries:
VESTABOARD_TIMEOUT_SECONDS(float, default 10.0)VESTABOARD_MAX_RETRIES(int, default 3)VESTABOARD_RETRY_BACKOFF_SECONDS(float, default 0.5)
Exceptions
All errors derive from vestaboard.exceptions.ApiError and include the HTTP status code
when available:
AuthenticationError(401)ValidationError(400)NotFoundError(404)RateLimitError(429)ServerError(5xx)NetworkError(transport-level failures)
Development
pip install -e ".[dev]"
pytest --cov=vestaboard
mypy vestaboard
flake8 vestaboard tests
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 vestaboard_rw-0.1.1.tar.gz.
File metadata
- Download URL: vestaboard_rw-0.1.1.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9651610a17dc3f58ced96274cc91d23c267032249e6adf420eda48769d81c77a
|
|
| MD5 |
eccc32de4c10a4d9944a0e2b0c9d4b6d
|
|
| BLAKE2b-256 |
c9ff6fa5db048445619e18f9c3e58525770c66193f5ac9f103b6aa4f2d163acc
|
File details
Details for the file vestaboard_rw-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vestaboard_rw-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a217f6f4ce3c768a9f92ce95bf0d1decba874fdc95c83301a21117e91abd6e45
|
|
| MD5 |
ae4d795a8546aa65b7373fc58e3ff292
|
|
| BLAKE2b-256 |
16c4d4fb61bedb0ca8d87883fbd63fd456570c62293d03f9f31b53d5eb203d65
|