Skip to main content

A Python SDK for interacting with Telemetry Harbor ingestion endpoints.

Project description

Telemetry Harbor Python SDK

PyPI Python Versions Downloads License

Made with Python Stars

The Easiest Way to Visualize Python Data 🚀

Stop managing InfluxDB and Grafana containers.

The Telemetry Harbor SDK lets you send telemetry from any Python application (Raspberry Pi, Servers, Desktop scripts) to a fully managed Grafana dashboard in 1 line of code.

  • ⚡ Instant Visualization: Data appears on your hosted Grafana dashboard in milliseconds.
  • 💾 Infinite Storage: We handle the time-series database for you.
  • 🔌 Zero Config: No Docker, no ports, no firewall rules. Just pip install.

👉 Get your Free API Key at TelemetryHarbor.com


Installation

pip install telemetryharborsdk

30-Second Quickstart

  1. Get a Key: Sign up at TelemetryHarbor.com (Free Tier includes 3M data points).
  2. Run this script:
from telemetryharborsdk import HarborClient, GeneralReading

# 1. Initialize (Replace with your actual ID and Key)
client = HarborClient(
    endpoint="https://telemetryharbor.com/api/v2/ingest/YOUR_HARBOR_ID",
    api_key="sk_live_..."
)

# 2. Send Data (No database schema required)
client.send(GeneralReading(
    ship_id="raspberry-pi-4",    # Your Device Name
    cargo_id="temperature",      # Your Metric Name
    value=42.5
))

print("Data sent! Check your Grafana dashboard.")

Advanced Usage

Sending Batches (Faster)

If you have high-frequency data, use send_batch to upload multiple readings in one HTTP request.

batch = [
    GeneralReading(ship_id="sensor-1", cargo_id="temp", value=22.5),
    GeneralReading(ship_id="sensor-1", cargo_id="humidity", value=60.1),
    GeneralReading(ship_id="sensor-1", cargo_id="voltage", value=3.3),
]

client.send_batch(batch)

Logging GPS Data

Telemetry Harbor automatically groups GPS data for map visualizations. Send latitude and longitude as separate metrics with the same timestamp.

# The SDK handles the timestamps automatically if you don't provide one
client.send_batch([
    GeneralReading(ship_id="truck-01", cargo_id="latitude", value=41.123),
    GeneralReading(ship_id="truck-01", cargo_id="longitude", value=29.456)
])

Pro Tip: In Grafana, use the "Geomap" panel to visualize this instantly.


Features

  • Pydantic Validation: Never send bad data again.
  • Auto-Retry: Built-in exponential backoff for flaky networks (perfect for IoT/Edge).
  • Async Ready: Designed for high-throughput logging.
  • Type Hinting: Full support for modern Python IDEs.

Need Help?

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

telemetryharborsdk-0.1.9.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

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

telemetryharborsdk-0.1.9-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file telemetryharborsdk-0.1.9.tar.gz.

File metadata

  • Download URL: telemetryharborsdk-0.1.9.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for telemetryharborsdk-0.1.9.tar.gz
Algorithm Hash digest
SHA256 feaa2ed746801fb0b258d56ef379567f3b8dab3c4c47985282fea9d91f2ebe55
MD5 e7b25222b0bb99f417b9733962eae780
BLAKE2b-256 612e54d9da2846f03ccfef90b1aac17cb7ce639c2a0e500a2fa458846ad684a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for telemetryharborsdk-0.1.9.tar.gz:

Publisher: publish-to-pypi.yml on TelemetryHarbor/harbor-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file telemetryharborsdk-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for telemetryharborsdk-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6a47eb51e2c6c4332a05ef7ce59a06f7a5891d57f732cf8371e918adbd65a7a3
MD5 f300eb6a194c39821f679a3919cc30b1
BLAKE2b-256 78f3d03f81bb49e29de68074fff8aa996041b2074b0f622beb3adc579ee03d86

See more details on using hashes here.

Provenance

The following attestation bundles were made for telemetryharborsdk-0.1.9-py3-none-any.whl:

Publisher: publish-to-pypi.yml on TelemetryHarbor/harbor-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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