Xpectra Python SDK 🚀
The official Python SDK for Xpectra. This library provides a high-level, fluent API for telemetry discovery, ingestion, and querying.
✨ Features
- Fluent Discovery: Easily browse experiments, datasets, and channels.
- Strictly Typed: Full Python types for experiments, datasets, and sensors.
- Pandas Integration: Load telemetry data directly into DataFrames.
- Batch & Stream Ingest: Support for high-performance telemetry submission.
- Org-scoped Auth: Secure authentication using organization API keys.
📦 Installation
# Using uv (recommended)
uv add xpectra-client
# Using pip
pip install xpectra-client
🚀 Quick Start
from xpectra import Client
import pandas as pd
from datetime import datetime
# Initialize the client
client = Client(
api_key="sk_xp_...",
endpoint="app.xpectraflow.com:50051", # gRPC ingest endpoint
base_url="https://app.xpectraflow.com" # Web API base URL
)
# 1. Discover data
dataset = client.get_dataset("Pulse 3", experiment_id="...")
print(f"Dataset status: {dataset.metadata.status}")
# 2. Ingest data
df = pd.DataFrame({
"Temperature": [22.5, 23.1],
"Pressure": [1013, 1012]
}, index=[datetime.now(), datetime.now()])
dataset.ingest(df)
# 3. Load data
loaded_df = dataset.load(limit=100)
print(loaded_df.head())
📚 Examples
Check the examples/ directory for more:
full_client_demo.py: Comprehensive metadata and discovery walkthrough.stream_csv.py: Ingest data from CSV files.api_key_auth.py: Authentication patterns.
🔐 Authentication
Generate your API key in the Xpectra dashboard under Settings → API Keys.
© 2026 Xpectra. All rights reserved.
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 xpectra_client-0.2.0.tar.gz.
File metadata
- Download URL: xpectra_client-0.2.0.tar.gz
- Upload date:
- Size: 8.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ff44e395c1f625455e67bd06e37e994c79e42f5349539c9db4fd9d0eecc40d5
|
|
| MD5 |
36c9e3b4e0c7be36eed4dc06714e2921
|
|
| BLAKE2b-256 |
0410823b0eeeefcfdb36884df538b3ed403d6807c5a48f5f7d6db8adafa43dd9
|
Provenance
The following attestation bundles were made for xpectra_client-0.2.0.tar.gz:
Publisher:
ci.yml on xpectraflow/xpectra-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xpectra_client-0.2.0.tar.gz -
Subject digest:
0ff44e395c1f625455e67bd06e37e994c79e42f5349539c9db4fd9d0eecc40d5 - Sigstore transparency entry: 2345476006
- Sigstore integration time:
-
Permalink:
xpectraflow/xpectra-client@7f62416fd63c1b05f2ee3b521d567591cb67f511 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/xpectraflow
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@7f62416fd63c1b05f2ee3b521d567591cb67f511 -
Trigger Event:
push
-
Statement type:
File details
Details for the file xpectra_client-0.2.0-py3-none-any.whl.
File metadata
- Download URL: xpectra_client-0.2.0-py3-none-any.whl
- Upload date:
- Size: 34.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a80989028c815a08f06227b1b90c096b92303c8d1511ac304ad09abbe31e0739
|
|
| MD5 |
dc58d4c55356fc5461eb96d2c8e675f9
|
|
| BLAKE2b-256 |
a33e79c6de89da6adad58a133c57e16340ef6678c2642b2eda5bb1a8cf5b529f
|
Provenance
The following attestation bundles were made for xpectra_client-0.2.0-py3-none-any.whl:
Publisher:
ci.yml on xpectraflow/xpectra-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xpectra_client-0.2.0-py3-none-any.whl -
Subject digest:
a80989028c815a08f06227b1b90c096b92303c8d1511ac304ad09abbe31e0739 - Sigstore transparency entry: 2345476059
- Sigstore integration time:
-
Permalink:
xpectraflow/xpectra-client@7f62416fd63c1b05f2ee3b521d567591cb67f511 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/xpectraflow
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@7f62416fd63c1b05f2ee3b521d567591cb67f511 -
Trigger Event:
push
-
Statement type: