Skip to main content

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

xpectra_client-0.1.1.tar.gz (62.3 kB view details)

Uploaded Source

Built Distribution

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

xpectra_client-0.1.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file xpectra_client-0.1.1.tar.gz.

File metadata

  • Download URL: xpectra_client-0.1.1.tar.gz
  • Upload date:
  • Size: 62.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for xpectra_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9e28bbd5d97fc4303288cc3c78beb897c3baa1619561816dbbdfb5054335b01b
MD5 8124da8b10a585733a669d6df7075618
BLAKE2b-256 594b5e551aeda8d1bf3f6c95da41e3d543161838ac14d5ac30d389b2afec7702

See more details on using hashes here.

Provenance

The following attestation bundles were made for xpectra_client-0.1.1.tar.gz:

Publisher: publish.yml on xpectraflow/xpectra-client

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

File details

Details for the file xpectra_client-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: xpectra_client-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for xpectra_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c8a0c876864be2dd19b356737fa75c054c4afd3c075770e0d6ac788f6932efc
MD5 daf316ea5cddbafdea9d269bb39b3780
BLAKE2b-256 2b147519206ee063ccdbe6e43f2ef362103d92e52cb37ba03814e082141f4f14

See more details on using hashes here.

Provenance

The following attestation bundles were made for xpectra_client-0.1.1-py3-none-any.whl:

Publisher: publish.yml on xpectraflow/xpectra-client

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

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page