DEPRECATED: Please use 'harborscalesdk' instead.
Project description
Harbor Scale Python SDK
The Easiest Way to Visualize Python Data 🚀
Stop managing InfluxDB and Grafana containers.
The Harbor Scale 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 harborscale.com
Installation
pip install harborscalesdk
30-Second Quickstart
- Get a Key: Sign up at harborscale.com (Free Tier includes 3M data points).
- Run this script:
from harborscalesdk import HarborClient, GeneralReading
# 1. Initialize (Replace with your actual ID and Key)
client = HarborClient(
endpoint="https://harborscale.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
Harbor Scale 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?
- 📚 Documentation: docs.harborscale.com
- 💬 Support: support@harborscale.com
- 🐛 Issues: GitHub Issues
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file telemetryharborsdk-1.0.0.tar.gz.
File metadata
- Download URL: telemetryharborsdk-1.0.0.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
686a7ac76e8d20c7b6ea244237ec3ea3fa3b6900141f9fb1730ac985f552f668
|
|
| MD5 |
24779acab6e8944baa61e35f2e0d8746
|
|
| BLAKE2b-256 |
480e51355334350bf8942883320c969f30fe4e42dc3886aead90d3630a194102
|
Provenance
The following attestation bundles were made for telemetryharborsdk-1.0.0.tar.gz:
Publisher:
publish-to-pypi.yml on HarborScale/harbor-sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
telemetryharborsdk-1.0.0.tar.gz -
Subject digest:
686a7ac76e8d20c7b6ea244237ec3ea3fa3b6900141f9fb1730ac985f552f668 - Sigstore transparency entry: 771570716
- Sigstore integration time:
-
Permalink:
HarborScale/harbor-sdk-python@045c32e30c0d9a07c942547dbc55646b43f9b3e7 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/HarborScale
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@045c32e30c0d9a07c942547dbc55646b43f9b3e7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file telemetryharborsdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: telemetryharborsdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
688ed740e73356427584bd1b3f14812de2056c84d9edf7f1c0f4b6821acffaf5
|
|
| MD5 |
fc3e3d506ad033366e75f76f7b224aa4
|
|
| BLAKE2b-256 |
6c02e90ab5f2674d4348c983f48ca6a89df5421f26efc4594bd08a88acec3899
|
Provenance
The following attestation bundles were made for telemetryharborsdk-1.0.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on HarborScale/harbor-sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
telemetryharborsdk-1.0.0-py3-none-any.whl -
Subject digest:
688ed740e73356427584bd1b3f14812de2056c84d9edf7f1c0f4b6821acffaf5 - Sigstore transparency entry: 771570730
- Sigstore integration time:
-
Permalink:
HarborScale/harbor-sdk-python@045c32e30c0d9a07c942547dbc55646b43f9b3e7 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/HarborScale
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@045c32e30c0d9a07c942547dbc55646b43f9b3e7 -
Trigger Event:
push
-
Statement type: