Skip to main content

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 the X-Vestaboard-Read-Write-Key header)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vestaboard_rw-0.1.1.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vestaboard_rw-0.1.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

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

Hashes for vestaboard_rw-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9651610a17dc3f58ced96274cc91d23c267032249e6adf420eda48769d81c77a
MD5 eccc32de4c10a4d9944a0e2b0c9d4b6d
BLAKE2b-256 c9ff6fa5db048445619e18f9c3e58525770c66193f5ac9f103b6aa4f2d163acc

See more details on using hashes here.

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

Hashes for vestaboard_rw-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a217f6f4ce3c768a9f92ce95bf0d1decba874fdc95c83301a21117e91abd6e45
MD5 ae4d795a8546aa65b7373fc58e3ff292
BLAKE2b-256 16c4d4fb61bedb0ca8d87883fbd63fd456570c62293d03f9f31b53d5eb203d65

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page