Skip to main content

Python client for Questra® Data with type-safe pydantic classes and optional pandas integration for user-defined data models and timeseries management

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seven2one_questra_data-3.0.0.tar.gz (73.6 kB view details)

Uploaded Source

Built Distribution

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

seven2one_questra_data-3.0.0-py3-none-any.whl (90.9 kB view details)

Uploaded Python 3

File details

Details for the file seven2one_questra_data-3.0.0.tar.gz.

File metadata

  • Download URL: seven2one_questra_data-3.0.0.tar.gz
  • Upload date:
  • Size: 73.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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}

File hashes

Hashes for seven2one_questra_data-3.0.0.tar.gz
Algorithm Hash digest
SHA256 9c258ebbba9cf7b3a7b60335f952b3ca06bda836b16e00ce92643100e56f8e04
MD5 7f9bd33068d631678d858c9fc2c7d7bb
BLAKE2b-256 46429a3366fc3c13b8cecea69831f1d822e15467d92acfc13827fd0aae9de96d

See more details on using hashes here.

File details

Details for the file seven2one_questra_data-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: seven2one_questra_data-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 90.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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}

File hashes

Hashes for seven2one_questra_data-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b8a4b72b8e76abcb4f29ac654ee15280fd7a9fbc1c893bd0970f63ea74ef5fe
MD5 d84b8fe7240beda7a75e33e39bd0bdb4
BLAKE2b-256 aa6d03265ea512eec74fa17c20517889a48417ac8cebb7f61299f98b098d14d3

See more details on using hashes here.

Supported by

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