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 https://github.com/panda-official/DriftPythonClient.git
Usage Example
import os
from drift_client import DriftClient
drift_client = DriftClient("10.0.0.153", os.getenv("DRIFT_PASSWORD"))
# Download list of history
packages = drift_client.get_list(
["acc-5"],
["2022-01-01 00:00:00", "2022-01-02 00:00:00"],
)
for topic in packages:
print(topic, "->", packages[topic])
for path in packages[topic]:
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.1.1.tar.gz
(13.3 kB
view hashes)
Built Distribution
Close
Hashes for drift-python-client-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7757cc3df3c6a1ff23950fd2ed95221aa0cd59c38c9f2bdb94ce52edea9bd88 |
|
MD5 | 5b17d4b8399938fe5e15503dece1f507 |
|
BLAKE2b-256 | 00008c1262b300a4693c487ba189655090a577f5bfd735f1adc396e713c1b8fe |
Close
Hashes for drift_python_client-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39bb3e5c444791b969155e7da77b3ec24243a93df9a1ad2f0ac64ad03e4705d8 |
|
MD5 | f419b1aca66ba5253b83900adc90077d |
|
BLAKE2b-256 | b7a3549c40ea1a47a7abcc143375b851dc6c6a5796e72ee569aad4803caecf3a |