Skip to main content

Seven2one Questra Data

Python Client für die Questra Data Platform – Verwaltung von benutzerdefinierten Datenmodellen, Zeitreihen und Berechtigungen.

Features

  • Data Client: Vereinfachte Schnittstelle für häufige Operationen
  • Typsichere Dataclasses: IDE-Unterstützung mit Type Hints
  • Zeitreihen-Verwaltung: Effiziente Verwaltung von TimeSeries-Daten
  • CRUD-Operationen: Für benutzerdefinierte Datenmodelle
  • Optional: pandas Integration: DataFrames für Analyse-Workflows

Installation

# Basis-Installation
pip install seven2one-questra-data

# Mit pandas-Unterstützung (empfohlen für Data Science)
pip install seven2one-questra-data[pandas]

Siehe INSTALLATION.md für detaillierte Installations-Anleitungen.

Schnellstart

from seven2one.questra.authentication import QuestraAuthentication
from seven2one.questra.data import QuestraData
from datetime import datetime

# Authentifizierung
auth = QuestraAuthentication(
    url="https://auth.example.com",
    username="user",
    password="pass"
)

# Client initialisieren
client = QuestraData(
    graphql_url="https://api.example.com/data-service/graphql",
    auth_client=auth
)

# Inventory Items auflisten
items = client.list_items(
    inventory_name="Devices",
    namespace_name="IoT",
    properties=["_id", "name", "status"],
    first=10
)

# Zeitreihen-Werte laden
result = client.list_timeseries_values(
    inventory_name="Sensors",
    namespace_name="IoT",
    timeseries_properties="measurements",
    from_time=datetime(2025, 1, 1),
    to_time=datetime(2025, 1, 31)
)

# Optional: Als pandas DataFrame
df = result.to_df()

Inventory erstellen

from seven2one.questra.data import StringProperty, IntProperty

properties = [
    StringProperty(property_name="name", max_length=200, is_required=True),
    IntProperty(property_name="age")
]

client.create_inventory(name="Users", properties=properties)

pandas Integration

# Alle Result-Objekte haben .to_df() Methode
df = result.to_df()
df_items = items.to_df()

Weitere Informationen

Requirements

  • Python >= 3.10
  • gql >= 3.5.0
  • requests >= 2.31.0
  • questra-authentication >= 0.1.4

Optional

  • pandas >= 2.0.0 (für DataFrame-Unterstützung)

License

Proprietary - Seven2one Informationssysteme GmbH

Release files for seven2one-questra-data 3.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seven2one-questra-data 3.3.0
File Size Uploaded
seven2one_questra_data-3.3.0.tar.gz 84.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for seven2one-questra-data 3.3.0
File Interpreter ABI Platform
seven2one_questra_data-3.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 188.2 kB

Release files / seven2one_questra_data-3.3.0.tar.gz

Download URL seven2one_questra_data-3.3.0.tar.gz
Size 84.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8e341079b87fa49b92f18b0d1fda87dc25df1040b0dbf402f5a7bf9696261c1d
BLAKE2b-256 checksum
How to use checksums
a09a77ee60489614c1a37f4508fa245c433d21ed353fe386458bf0bcd2c80550
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / seven2one_questra_data-3.3.0-py3-none-any.whl

Download URL seven2one_questra_data-3.3.0-py3-none-any.whl
Size 103.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5130af357d73556fd0741059800b2db768afc800053a2ae9fa25113215a0b9c2
BLAKE2b-256 checksum
How to use checksums
493a32644399569980196985166cabd229a691b98740a975f2b750924749ff41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page