Skip to main content

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

To install the background services (syncs your data to qHarbor automatically):

etiket-services install

Other useful commands (though the service is managed automatically in the background):

etiket-services status      # Check service status
etiket-services start       # Start services
etiket-services stop        # Stop services
etiket-services restart     # Restart services
etiket-services update      # Update packages
etiket-services update --no-connectors  # Update core packages only
etiket-services uninstall   # Remove services

For programmatic control of the sync agent (managing sync sources, viewing sync status, debugging), see the etiket-sdk package. You can also manage the services through the DataQruiser desktop application.

Quick Start

Authentication

import qdrive.authenticate as qauth

# See available institutions and login methods
qauth.print_login_methods()

# Log in with SSO (opens browser)
qauth.log_in_with_sso("MyInstitution")

# Check if logged in
qauth.is_logged_in()  # Returns True/False

# Log out
qauth.logout()

Scopes

from qdrive.scopes import get_scopes, set_default_scope

# List available scopes
get_scopes()

# Set default scope (by name or UUID)
set_default_scope("MyScope")

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

Proprietary — © 2026 QHarbor B.V. All Rights Reserved.

Metadata

Release files for qdrive 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for qdrive 0.3.2
File Interpreter ABI Platform Actions
qdrive-0.3.2-py3-none-any.whl Python 3 none any Details for qdrive-0.3.2-py3-none-any.whl

Release files / qdrive-0.3.2-py3-none-any.whl

Download URL qdrive-0.3.2-py3-none-any.whl
Size 61.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0295ba67bee56cd747a248333275d72c5a0538a9f410f7ef2750eb9a3727b64d
BLAKE2b-256 checksum
How to use checksums
306c6df7b19069fb0c6fbb4dd8c9ef03a22a20718fd47e8d8df1e1295ca56a7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for qdrive 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page