Python SDK and command-line interface for the Diffuse research data platform.
Project description
diffuse-hub
Python SDK and command-line interface for the Diffuse research data platform.
Manage experiments, metadata, and artifacts from your terminal or programmatically from notebooks and scripts.
Installation
# Full install (CLI + SDK)
pip install "diffuse-hub[cli]"
# SDK only (lightweight, no CLI deps)
pip install diffuse-hub
Or run the CLI without installing:
uvx --from "diffuse-hub[cli]" diffuse --help
For a persistent CLI install on your PATH:
uv tool install "diffuse-hub[cli]"
diffuse --help
Quickstart
CLI
diffuse auth login
diffuse experiments list
diffuse experiments create --title "My Experiment" --tags ml,vision
diffuse artifacts upload ./data.h5 --experiment EXP-1
Run diffuse --help for the full command reference.
SDK
from diffuse_cli.sdk import Diffuse
diffuse = Diffuse() # reads config / env vars for auth
experiments = diffuse.experiments.list(query="tag:crystal", sort="recent")
exp = diffuse.experiments.get("EXP-1")
artifacts = diffuse.artifacts.list(experiment="EXP-1")
url = diffuse.artifacts.download_url("abc123")
Configuration
The CLI reads ~/.diffuse/config.json and the following environment variables:
| Variable | Purpose |
|---|---|
DIFFUSE_API_URL |
Override the API base URL |
DIFFUSE_API_KEY |
Authenticate with a personal / system API key (dfk_...) |
DIFFUSE_ENV |
Shorthand: local or prod |
Links
- Platform: https://hub.diffuse.science
- CLI reference: https://hub.diffuse.science/cli-docs
- Source & issues: https://github.com/diff-use/webapp
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 diffuse_hub-0.4.36.tar.gz.
File metadata
- Download URL: diffuse_hub-0.4.36.tar.gz
- Upload date:
- Size: 52.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ba9836331c173a839bf767164f4266788e95b4d126ddb532b3887e78dc1f46c
|
|
| MD5 |
beb81f036c8318eac5fab71746366277
|
|
| BLAKE2b-256 |
4304f0b92d4d2d31b3f342009e83936f8c0ff25776e73ed2e10568fc4e053cc3
|
Provenance
The following attestation bundles were made for diffuse_hub-0.4.36.tar.gz:
Publisher:
release.yml on diff-use/webapp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diffuse_hub-0.4.36.tar.gz -
Subject digest:
4ba9836331c173a839bf767164f4266788e95b4d126ddb532b3887e78dc1f46c - Sigstore transparency entry: 1311847684
- Sigstore integration time:
-
Permalink:
diff-use/webapp@849f73524e3efb213339c0de12c49c3559124f77 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/diff-use
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@849f73524e3efb213339c0de12c49c3559124f77 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file diffuse_hub-0.4.36-py3-none-any.whl.
File metadata
- Download URL: diffuse_hub-0.4.36-py3-none-any.whl
- Upload date:
- Size: 54.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98741be81ec10cd2eb159337c27175f49acc566d7123334d67d4fcb124980410
|
|
| MD5 |
86198fae74183b9d8b4c56a8cfef50e4
|
|
| BLAKE2b-256 |
8b0d3600e59d72f87a58effbb236edf87b535a06d4a3811fdf9011c82eac6224
|
Provenance
The following attestation bundles were made for diffuse_hub-0.4.36-py3-none-any.whl:
Publisher:
release.yml on diff-use/webapp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diffuse_hub-0.4.36-py3-none-any.whl -
Subject digest:
98741be81ec10cd2eb159337c27175f49acc566d7123334d67d4fcb124980410 - Sigstore transparency entry: 1311847814
- Sigstore integration time:
-
Permalink:
diff-use/webapp@849f73524e3efb213339c0de12c49c3559124f77 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/diff-use
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@849f73524e3efb213339c0de12c49c3559124f77 -
Trigger Event:
workflow_dispatch
-
Statement type: