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.2.0.tar.gz (8.9 MB 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.2.0-py3-none-any.whl (34.5 kB view details)

Uploaded Python 3

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

Hashes for xpectra_client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0ff44e395c1f625455e67bd06e37e994c79e42f5349539c9db4fd9d0eecc40d5
MD5 36c9e3b4e0c7be36eed4dc06714e2921
BLAKE2b-256 0410823b0eeeefcfdb36884df538b3ed403d6807c5a48f5f7d6db8adafa43dd9

See more details on using hashes here.

Provenance

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

Publisher: ci.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.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

Hashes for xpectra_client-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a80989028c815a08f06227b1b90c096b92303c8d1511ac304ad09abbe31e0739
MD5 dc58d4c55356fc5461eb96d2c8e675f9
BLAKE2b-256 a33e79c6de89da6adad58a133c57e16340ef6678c2642b2eda5bb1a8cf5b529f

See more details on using hashes here.

Provenance

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

Publisher: ci.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

This release

0.2.0 This release

2 files

0.1.1

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