Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/panda-official/driftpythonclient
Python Client to access data of Devices on Drift Platform
https://github.com/panda-official/driftpythonclient
ai drift python
Last synced: about 2 months ago
JSON representation
Python Client to access data of Devices on Drift Platform
- Host: GitHub
- URL: https://github.com/panda-official/driftpythonclient
- Owner: panda-official
- License: mpl-2.0
- Created: 2022-07-12T07:53:38.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2023-12-14T12:27:01.000Z (about 1 year ago)
- Last Synced: 2024-04-19T14:28:53.241Z (9 months ago)
- Topics: ai, drift, python
- Language: Python
- Homepage: https://driftpythonclient.readthedocs.io/en/latest/
- Size: 379 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Drift Python Client
[![PyPI](https://img.shields.io/pypi/v/drift-python-client)](https://pypi.org/project/drift-python-client/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/drift-python-client)](https://pypi.org/project/drift-python-client/)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/panda-official/DriftPythonClient/ci.yml?branch=develop)](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 datetimefrom drift_client import DriftClient
drift_client = DriftClient("10.0.0.153", os.getenv("DRIFT_PASSWORD"))
# Download list of historypackages = 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)