Skip to main content

Dataset management and measurement library for scientific data

Project description

qdrive

Dataset management and measurement library for the qHarbor data platform.

qdrive is the Python interface for creating, managing, and syncing scientific datasets with qHarbor.

Features

  • 📦 Create & manage datasets — Store measurements with rich metadata (tags, attributes, descriptions)
  • 📁 Multi-file support with versioning — Attach xarray, NumPy, JSON, HDF5 or any file, with automatic version tracking
  • 🔍 Powerful search — Filter datasets by attributes, date range, tags, or text
  • ☁️ Cloud sync — Automatic synchronization via the sync agent
  • 📊 Measurement tools — Built-in do0D, do1D, do2D sweep functions using native qHarbor format, compatible with QCoDeS parameters

Installation

pip install qdrive

Quick Start

Log in

import qdrive
qdrive.launch_GUI()

Create a dataset

from qdrive import dataset

ds = dataset.create(
    'Qubit T2* measurement',
    tags=['calibration'],
    attributes={'sample': 'Q7-R3', 'fridge': 'BlueFors-1'}
)

Add files to a dataset

import numpy as np
import xarray as xr

# Add various file types
ds['config.json'] = {'param1': 42, 'param2': 'value'}
ds['raw_data.npz'] = np.random.rand(100, 100)
ds['measurement.hdf5'] = xr.Dataset({'signal': (['time'], np.sin(np.linspace(0, 10, 100)))})
ds['script.py'] = __file__  # Attach the current script

Retrieve and access data

from qdrive import dataset

ds = dataset('59c40af3-cef3-49aa-8747-64707a9b080a')  # Load by UUID

# Access files in multiple formats
xr_data = ds['measurement.hdf5'].xarray
json_data = ds['config.json'].json

Search datasets

from qdrive.dataset.search import search_datasets

results = search_datasets(
    search_query='T2*',
    attributes={'sample': 'Q7-R3'},
    ranking=1
)

for ds in results:
    print(ds.name, ds.uuid)

Documentation

License

GPL-3.0 — © 2024-2026 QHarbor B.V. See LICENCE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qdrive-0.2.60-py3-none-any.whl (132.1 kB view details)

Uploaded Python 3

File details

Details for the file qdrive-0.2.60-py3-none-any.whl.

File metadata

  • Download URL: qdrive-0.2.60-py3-none-any.whl
  • Upload date:
  • Size: 132.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for qdrive-0.2.60-py3-none-any.whl
Algorithm Hash digest
SHA256 7d4a119f40c899ac9c174fb191e22064ab3a7b8433f1da30c62b37c92b07efea
MD5 b71fcbed7ee0d2d1f1ee1b307b94d2a1
BLAKE2b-256 2c5853bdb9b6bf580e8ef07ede39d7556edbe05edf7acbbb9d3265b035cc79bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page