Skip to main content

Python Client to access data of PANDA|Drift

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Drift Python Client

PyPI PyPI - Downloads GitHub Workflow Status

Python Client to access data of PANDA|Drift

Description

Drift Python Client is a high level library to get current or historical data with minimal knowledge about PANDA|Drift infrastructure.

Features

  • Access to live Drift data
  • Access to history of input data
  • Access to history of metrics
  • Cross-platform

Requirements

  • Python >= 3.8

Installing

pip install drift-python-client

If you need the latest version from GitHub:

pip install git+https://github.com/panda-official/DriftPythonClient.git

Usage Example

import os
from datetime import datetime

from drift_client import DriftClient

drift_client = DriftClient("10.0.0.153", os.getenv("DRIFT_PASSWORD"))
# Download list of history

packages = drift_client.get_package_names(
    "acc-5",
    datetime.strptime("2022-01-01 00:00:00", "%Y-%m-%d %H:%M:%S"),
    datetime.strptime("2022-01-02 00:00:00", "%Y-%m-%d %H:%M:%S")
)

print(packages)
for path in packages:
    data = drift_client.get_item(path).as_np(scale_factor=2)
    print(data)

References:

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

drift_python_client-0.10.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file drift_python_client-0.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for drift_python_client-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e182306783fb0b8b1a28139cce0d9b6e2b56dd432203f2ba7ade8e6b4012db5
MD5 7743eb25e0b15d9b67a870b1fa66fb7b
BLAKE2b-256 5ccf4908211e523c32b8e2be590c36743fb29c84d4d89a0d9ca6d5439d1e4cfa

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