Tiny Python SDK for the Drift dataset API
Project description
Drift
A tiny Python SDK for the Drift dataset API.
Installation
pip install drift
Quick start
import drift
# Load dataset metadata
Dataset = drift.load("jordy-v0")
print(Dataset.id)
# Inspect routes and segments
route = drift.route("my-route")
segment = drift.segment("my-segment")
print(segment.download_url)
Downloads
segment.download("downloads/segment.bin")
PyTorch
from drift.torch import DriftDataset
loader = DriftDataset("jordy-v0")
sample = loader[0]
print(sample)
TensorFlow / Keras
from drift.tensorflow import DriftDataset
dataset = DriftDataset("jordy-v0")
for item in dataset:
print(item)
Release notes
0.1.1
- polished package metadata and documentation
- added release workflow and repository scaffolding
- improved SDK examples for downloads and framework integrations
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
drift_sdk-0.1.1.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file drift_sdk-0.1.1.tar.gz.
File metadata
- Download URL: drift_sdk-0.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9b2ebc53d3d5350a0e3f56161ea94a9076e7e49ce800e4edef4f26d7902013c
|
|
| MD5 |
f69163ff6ade8caf2b67cbc40f11c003
|
|
| BLAKE2b-256 |
a3644aee41cbe217d23dd9885108743ab8f63bea34571288d1fd715aba9ed42d
|
File details
Details for the file drift_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: drift_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c150c1a3f236ae817e31695b8dba6e004a9de5206130664b24ef338e45763f33
|
|
| MD5 |
22b0a18985679c3a292c1ac57d0f40ea
|
|
| BLAKE2b-256 |
14f11c7e146031393e488cb46969699bd356b7086cf6cefbe87acdad7c6a859c
|