Foxglove Client

raw JSON →
0.19.2 verified Mon Apr 27 auth: no python

Client library for the Foxglove API. Current version 0.19.2, requires Python >=3.7. Active development with frequent releases.

pip install foxglove-client
error ModuleNotFoundError: No module named 'foxglove'
cause Old import path from before v0.17.0 namespace package change.
fix
Use 'from foxglove_client import FoxgloveClient' instead.
error AttributeError: 'FoxgloveClient' object has no attribute 'delete_import'
cause Method removed after deprecation.
fix
Use 'delete_recording' with a recording_id.
breaking v0.17.0 converted to namespace package; imports changed from 'foxglove' to 'foxglove_client'.
fix Change 'import foxglove' to 'from foxglove_client import ...'.
deprecated 'delete_import' is deprecated since v0.16.2, use 'delete_recording' with recording_id.
fix Replace client.delete_import(import_id) with client.delete_recording(recording_id).
gotcha API token required; most methods fail with empty token. Always set FOXGLOVE_API_TOKEN env var.
fix Ensure token is set via environment variable or passed to FoxgloveClient(token=...).

Initialize client with API token and fetch a device.

import os
from foxglove_client import FoxgloveClient

client = FoxgloveClient(token=os.environ.get('FOXGLOVE_API_TOKEN', ''))
print(client.get_device(device_id='my-device'))