Drift Python Client
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 Distribution
drift-python-client-0.2.1.tar.gz
(14.5 kB
view hashes)
Built Distribution
Close
Hashes for drift-python-client-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ea2fa5d24999e438fad6059b9b50d2811a7d53ed7b51e1f0fa93e2dc9a36cea |
|
MD5 | 50a88be2bb91a61b7ae94f6d7e9b4d73 |
|
BLAKE2b-256 | 1012a08d3ad06ea50a3294798b5f9eb0b79ba148a10409830c6835565ba0a57a |
Close
Hashes for drift_python_client-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe96a4cdc76f889de0a1a4fc5acd7f1244a1781c503c93bbb7d762532de04b31 |
|
MD5 | 3a61972d446b0446df3786f8f4c77b28 |
|
BLAKE2b-256 | 0f34465bf961dd0de77df7e69995bc4c92773c3a4f1dc6616a0774b7ef3386d4 |