Drift Python Client
Project description
Drift Python Client
Python Client to access data of Devices on Drift Platform
Description
Drift Python Client is a high level library to get current or historical data with minimal knowledge about Drift infrastructure.
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)
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.0.tar.gz
(14.0 kB
view hashes)
Built Distribution
Close
Hashes for drift-python-client-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a02e67ee9e67919e152ad73f0483c201d8a6e0dab0437cdc13f27067e8943d6 |
|
MD5 | 99fb0ee8b3184ccb5ba2772da0d763d8 |
|
BLAKE2b-256 | 45ab0c99ddac2abed5e475589b553d0112f6472901536b52f9cdc327e496962f |
Close
Hashes for drift_python_client-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d19df4502cdc04a6eafb677f4ee0531299964f09c64cbe22290864eb169ba230 |
|
MD5 | 9677aca1ad7ba73f26f9a883049f6a56 |
|
BLAKE2b-256 | f7600e3df5d25a7bef3793b00e6a896a7681914b8234db6aded76a938173b879 |