drift-python-client-0.5.0
توضیحات
Drift Python Client
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | drift-python-client-0.5.0 |
| نام | drift-python-client |
| نسخه کتابخانه | 0.5.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | PANDA, GmbH |
| ایمیل نویسنده | info@panda.technology |
| آدرس صفحه اصلی | https://github.com/panda-official/DriftPythonClient |
| آدرس اینترنتی | https://pypi.org/project/drift-python-client/ |
| مجوز | - |
# Drift Python Client
[](https://pypi.org/project/drift-python-client/)
[](https://pypi.org/project/drift-python-client/)
[](https://github.com/panda-official/DriftPythonClient/actions)
Python Client to access data of [PANDA|Drift](docs/panda_drift.md)
## 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
```python
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:
* [Documentation](https://driftpythonclient.readthedocs.io/en/latest/)
* [DriftProtocol](https://github.com/panda-official/DriftProtocol)
* [WaveletBuffer](https://github.com/panda-official/WaveletBuffer)
نیازمندی
| مقدار | نام |
|---|---|
| ==1.30.0 | influxdb-client |
| <1.0,>=0.3.0 | drift-protocol |
| <1.0,>=0.6.0 | wavelet-buffer |
| ==1.6.1 | paho-mqtt |
| ==1.23.1 | numpy |
| ==2.1.0 | deprecation |
| ~=1.3 | reduct-py |
| ==7.1.10 | minio |
| ~=1.3 | mkdocs |
| ~=8.3 | mkdocs-material |
| ~=3.5 | plantuml-markdown |
| ~=0.1 | mkdocs-same-dir |
| ~=0.19 | mkdocstrings[python] |
| ~=0.21 | mkdocs-jupyter |
| ==22.6.0 | black[jupyter] |
| ==2.14.4 | pylint |
| ==0.20.2 | pylint-protobuf |
| ==7.1.2 | pytest |
| ==3.8.2 | pytest-mock |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl drift-python-client-0.5.0:
pip install drift-python-client-0.5.0.whl
نصب پکیج tar.gz drift-python-client-0.5.0:
pip install drift-python-client-0.5.0.tar.gz