Python Client to access data of PANDA|Drift
Project description
Drift Python Client
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
Release history Release notifications | RSS feed
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
Close
Hashes for drift_python_client-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e2d2b417c3973291d91cd2bd18c9875c580f40c1d59477c1d02c71e2b15ff84 |
|
MD5 | 50cd078756bd5f4b022e84782ecdce26 |
|
BLAKE2b-256 | 257bda044720f090a3e9ba626d122b423042cf6bdf840325f40e48bd276deedd |