Client library for Foxglove Data Platform.
Project description
Python Client Library for Foxglove Data Platform
This library provides a convenient python client for Foxglove's Data Platform.
In order to use the client you will first have to create an API token for your organization on your organization's settings page.
Sample Usage
import datetime
import io
import time
from datetime import datetime, timedelta, timezone
from foxglove.data_platform.client import Client
token = "<YOUR API TOKEN HERE>"
device_id = "<YOUR DEVICE ID>"
client = Client(token=token)
event = client.create_event(
device_id=device_id,
time=datetime.now(),
duration=0,
metadata={"message": "Hi from python!"},
)
print(event)
download = client.download_data(
device_id=device_id,
start=datetime.now() - timedelta(hours=3),
end=datetime.now() - timedelta(hours=1),
)
print("download", download.read())
events = client.list_events()
print(events)
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
Close
Hashes for foxglove-data-platform-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0159f6542b353d772d47724ad6c617b6239c1950cf1376fa50f15100cb69bc41 |
|
MD5 | 9db3b573cc7c47947de85793f04c2e68 |
|
BLAKE2b-256 | 739f330d38c307ae4f9661d8b4c9544639a0a6f2be07acc898bad652b3b5c332 |
Close
Hashes for foxglove_data_platform-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2af9419deda5626149b52801c76be62309889ed22616db0d7cc2dd789b74d68 |
|
MD5 | 01792b43f57904a7707f306dbb4ec1c8 |
|
BLAKE2b-256 | 39dfe8c7fdcb5c80641018995b3e765e822c05a560f6553f2dcf954aa2fe2a9a |