Skip to main content

Client library for Foxglove Data Platform.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

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


Download files

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

Source Distribution

foxglove-data-platform-0.0.5.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

foxglove_data_platform-0.0.5-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file foxglove-data-platform-0.0.5.tar.gz.

File metadata

  • Download URL: foxglove-data-platform-0.0.5.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for foxglove-data-platform-0.0.5.tar.gz
Algorithm Hash digest
SHA256 0159f6542b353d772d47724ad6c617b6239c1950cf1376fa50f15100cb69bc41
MD5 9db3b573cc7c47947de85793f04c2e68
BLAKE2b-256 739f330d38c307ae4f9661d8b4c9544639a0a6f2be07acc898bad652b3b5c332

See more details on using hashes here.

File details

Details for the file foxglove_data_platform-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: foxglove_data_platform-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for foxglove_data_platform-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b2af9419deda5626149b52801c76be62309889ed22616db0d7cc2dd789b74d68
MD5 01792b43f57904a7707f306dbb4ec1c8
BLAKE2b-256 39dfe8c7fdcb5c80641018995b3e765e822c05a560f6553f2dcf954aa2fe2a9a

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