This release is a pre-release and may not be stable for production use.
qualia-sdk — Python client for Qualia robot data: upload, curate, version, export
Status: beta pre-release (0.8.0rc19) · Published: qualia-sdk wheels for Python 3.10+
Qualia keeps robot recordings (MCAP or LeRobot) as datasets of episodes. From Python you upload a
folder of takes and read what preparation found in it. You link the episodes to a Task (what the
robot was asked to do), run checks that flag failed or broken takes, and keep or reject each take.
The kept takes become an immutable version, which downloads as LeRobot v3 or v2.1, ROS 2 MCAP or a
partner layout. The upload engine is compiled into the wheel, so there is nothing else to install.
Wheels cover Linux (x86_64, arm64) and, from 0.8.0rc17, Apple Silicon Macs;
elsewhere pip builds the engine from source, which takes minutes and needs a Rust toolchain.
The qualia command line is the separate qualia-cli package.
During a LeRobot upload, video validation reports files done / total and the
current file every five seconds while the server is reachable. After a new
publication with episodes, the final message points to qualia status list
and the dataset page, which show whether the server started preparing it; the
upload's response does not say.
Install
pip install --pre qualia-sdk
The client and the deployment it talks to negotiate the upload protocol exactly, so pin the version
your deployment's docs name, for example pip install 'qualia-sdk==0.8.0rc19'. client.preparation
first shipped in 0.8.0rc12; 0.8.0rc11 raises AttributeError. client.preparation.wait first
shipped in 0.8.0rc14. client.models.download first shipped in 0.8.0rc19, and a list call's page
is typed by its items (PaginatedPage[Dataset]) from 0.8.0rc19. The SDK needs pydantic 2.12 or
newer, from 0.8.0rc19.
Request IDs
Every request_id follows the SDK request ID rule.
UUID5 keys work for deterministic batch edits as well as creates. Keep the
same ID and arguments when retrying one logical edit.
Usage
Set QUALIA_API_KEY (and QUALIA_BASE_URL for a deployment other than the default), or log in
once with qualia auth login. An API key names its account, so no account setting is needed.
me = client.whoami() gives a Whoami model. Read me.account_id and, when me.key is
present, me.key.scope.
Dictionary use (me["account_id"], me.get, in, len, keys, items, values, dict(me),
{**me}) is deprecated and kept for one release; it warns DeprecationWarning. Iterating me
gives pydantic's (field, value) pairs, and me is not a dict (isinstance, json.dumps,
== and item assignment don't work): use me.model_dump(mode="json") for a dictionary.
from qualia import Qualia
client = Qualia()
dataset = client.data.upload("./takes", "box-pick")["dataset_id"]
# Preparation starts by itself. Wait for it to end.
prep = client.preparation.wait(dataset)
print(prep.state, prep.warnings) # what preparation found
# get_run(...).phase: READING, PUBLISHING, DONE; state says whether it succeeded.
# Publication can wait behind preparation or another background publisher.
# The VLM check reads each episode against the published Task it is linked to.
task = client.tasks.create(
"Pick a box", draft={"description": "Move the box from the crate to the table"}
)
task = client.tasks.update(task.id, success="The box stands on the table")
client.tasks.publish(task.id, etag=task.etag)
client.datasets.update(dataset, linked_task=task.id)
estimate = client.checks.estimate(dataset) # free: nothing is reserved
started = client.checks.run(dataset, max_cost=estimate.credits)
client.checks.wait(started.check_runs[0]) # a VLM check starts one run
for issue in client.checks.findings(dataset).items:
print(issue.text)
client.episodes.reject(dataset, ["<episode-id>"], reason="the box slipped")
client.episodes.keep(dataset, filter="state = UNREVIEWED")
client.versions.create(dataset, "1.0") # the takes a person kept
client.data.download(f"{dataset}:1.0", "./box-pick-1.0", format="lerobot_v2_1")
checks.run(...) returns a CheckRunResult with check_runs, a list of run names,
for both heuristic and VLM checks. check_run is an alias for the first name
(or "" when the list is empty).
A list call such as client.datasets.list() or client.checks.findings(dataset)
returns a PaginatedPage typed by its items (PaginatedPage[Dataset]): read
page.items and page.page_info, and page.model_dump(mode="json") gives the whole
page as JSON. The page's class is that typed subclass, so test it with
isinstance(page, PaginatedPage), not type(page) is PaginatedPage
(the qualia.v1 lists).
A folder from git clone or hf download --local-dir uploads as it is: the upload skips
.gitattributes, .gitignore, .git/ and .cache/huggingface/ at the folder root, and OS
files such as .DS_Store anywhere. Any other dot-prefixed path refuses the upload
(what an upload skips).
The upload's name is the dataset's display name and may hold spaces
(client.data.upload("./takes", "Pick and place")). The same name lands in the same dataset
each time, and the server makes the repository name from it. A failed or finished Hugging Face
import leaves the import list and the Datasets page with
client.data.dismiss_huggingface_import(import_id); get_huggingface_import still reads it
(follow an import).
When the dataset changes before an upload publishes (its preparation publishes, say), the upload
reads the dataset again and publishes the same files against its new version, at most three
attempts in all. It stops without publishing when another upload changed files this one carries,
or when a file in the local folder was edited, added or removed after the first attempt read it.
The retry needs a gateway that says whether QDS answered the upload's heartbeat (answered).
Against an older gateway the upload fails at the first change with the advice to wait for
preparation and run it again, as before
(a dataset that changed during the upload).
An API key names its account automatically. Set an account override only when
needed; the API guide describes the server requirement and release history.
An account= (or QUALIA_ACCOUNT) that is not an account UUID is refused with
a ValueError; leave it unset to use the key's own account. Publishing a
preview (client.versions.create(dataset, tag, preview=...), or
qualia dataset pin <dataset> <tag> --preview <preview>) needs no override
either: the tag the server answers under the key's account UUID is the one
asked for.
A Task's procedure step carries its conditions (state_checks, text written on
the step that the graph check reads) and its metric limits (bounds). A Task
read with client.tasks.get() and saved back to itself keeps them, and
Step(..., state_checks=[StateCheck(text="...")]) writes one. The
API guide's Tasks section has the fields, what
publishing requires and an example. This needs 0.8.0rc18 or newer: earlier
wheels drop a step's conditions and limits when the Task is saved back.
client.data.download("<dataset>") with no version takes stable, the newest
tag. A fresh upload has no tag yet, so it takes the newest version, v0 (the
upload as it arrived), and reports {"step": "newest", "version": "<slug>:v0"}
to on_progress. Only a dataset with no version at all is refused. While the
format renders, a status read or start that times out, drops its connection or
gets a 429, 503 or 504 is tried again, up to 4 tries in a row, and none starts
past timeout. The listing that signs the links again during a long transfer
gets the same 4 tries when it has no answer or a 503 or 504. The
API guide's Data section has the examples and the
waits.
Any upload can name the rig it was recorded on with rig=: any rig of the
workspace, such as an arm rig for teleop or joint-recorded data
(client.data.upload("./session", "kitchen", rig="my-franka-rig")), a UMI rig
or another capture rig (the Rigs page's "Other rigs"). Only a UMI rig converts a
handheld recording; the others are just recorded on the upload, and the dataset
shows the rig once the upload publishes. A name that is no rig of the workspace
(a robot template, a gripper template, a robot's own mounted gripper) is refused
before anything is stored, and so is an arm rig named for a tree whose
meta/ingest.toml declares a [rig], or another capture rig named for a tree
that declares the UMI kind. This needs 0.8.0rc13 or newer; earlier wheels send no
transfer session, so nothing is recorded and the server asks you to upgrade.
An upload needs no rig: client.datasets.update(dataset, rig="my-franka-rig") adds one
later or changes it, and rig="" clears it. The value is a rig's resource name, id or
display name, looked up in the dataset's workspace, and the recording's kind decides which
kind it takes. rig goes alone in the call. A UMI rig set this way is a record only:
resolve_poses moves the poses. This needs 0.8.0rc17 or newer.
A handheld (UMI) recording converts at a UMI rig of its workspace. Make one from
a gripper template with client.robots.make_umi_rig(template, name) (or
qualia gripper umi-rig), then give it its calibration with
client.robots.import_gripper_calibration(rig.name, "tcp_calibration.json"); a
workspace may have several. Name the rig with rig= on upload. Without it, an
upload into a merged dataset whose uploads agree on one rig takes it, and a tree
that declares [rig] kind = "umi-handheld" takes the workspace's one UMI rig.
With none or several it is not refused: it converts at the gripper roots (or at
the TCP its own meta/ingest.toml declares) and records no rig (the dataset reads "Not recorded"); pass rig= to record one, or add it later with update(rig=).
client.datasets.resolve_poses(dataset, gripper="<name>") names the rig a
resolve uses, and asks which when there are several and the upload records none of them. The
API guide's Data section has the example.
A merged dataset moves its uploads with precheck_merged_poses and
move_merged_poses. With several UMI rigs of one kind, name the rig of each upload that
asks. The rig of a move that lands is stored for the upload:
check = client.datasets.precheck_merged_poses(merged.name)
moved = client.datasets.move_merged_poses(
merged.name,
membership_revision=check.membership_revision,
rigs={upload.name: rig.name}, # upload to the UMI rig it was recorded on
)
An upload appended to a merged dataset whose recordings are being re-processed to a
new time sync is not refused: client.datasets.merge(..., into=) accepts it, and
client.data.upload(..., merge_target=) reports result["merge_append"]["status"]
as "joining", not "action_needed" (also when the upload is run again before it
joins). The server checks the upload against the dataset and appends it once the current
re-processing has settled, and re-processes it then when the dataset has a current time
sync (not after a Cancel); the dataset's sync_preparation.joining lists it until then,
and, if it could no longer join, with the reason. The stored append intent reads appended
once it has joined. A tool center point move, and an append that carries resolutions,
are still refused meanwhile. merge() returns the dataset with a joining_uploads
attribute, empty unless the append was queued, then naming what was.
The API guide has the full example.
A merged dataset has one time sync, a clock and an alignment per channel, that every upload it
holds is processed to. Check it, apply it, and read where the uploads stand with
precheck_merged_sync, apply_merged_sync and merged_sync_status. The time sync is a patch
(schema = 1, a [clock] and [channels.<topic>] align entries), and each upload keeps its
other settings. A merged dataset's time sync cannot change its uploads' frame rate yet, so an
upload it would give another rate is blocked. Uploads that cannot be moved are listed with their
reasons, and Try again is apply_merged_sync(..., members=[upload]):
check = client.datasets.precheck_merged_sync(merged.name, toml)
client.datasets.apply_merged_sync(merged.name, toml, check.membership_revision)
# n of N, and the uploads not there yet
status = client.datasets.merged_sync_status(merged.name)
The server re-processes the uploads a few at a time, each as a new generation of that upload.
An upload sends its transfer session id when it begins, so the UMI rig composed for it stays its own. An upload from an SDK too old to send it records no rig, so upgrade to record one. Against a gateway that predates the field, the SDK drops it and begins again (QDS service: UMI rigs).
A LeRobot dataset can say who recorded each episode, on which station and in which shift: put
meta/qualia/episodes.jsonl in the folder before you upload it, one line per episode with its
episode_index (a number, from 0) and operator, scene (the station) and session_id (the
shift) as quoted strings:
{"episode_index": 0, "operator": "ana", "scene": "station-2", "session_id": "2026-11-09-am"}
{"episode_index": 1, "operator": "ben", "scene": "station-1", "session_id": "2026-11-09-am"}
{"episode_index": 2, "operator": "ana", "scene": "station-2", "session_id": "2026-11-09-pm"}
An episode without a line keeps them empty, and a line that cannot be applied is left out with a
finding, never a failed upload. rig_id there means the robot, as in episode.json, so leave
stations out of it. Filter and count with
client.episodes.list(dataset, filter='operator = "ana" AND session = "2026-11-09-am"') and
client.episodes.summarize(dataset, facets=["operator", "scene", "session"]), and correct a
station with client.episodes.update_many(dataset, [{"episode": "<EPISODE>", "scene": "station-1"}]),
which wins over the file
(data collection guide).
client.datasets.setup() takes no solver: a dataset follows its robot's solver, set on
the robot's Solver page (setting a dataset up).
client.checks.reach_status(dataset).calibration_mix is set when the dataset's uploads hold more than one
capture calibration (or the solver is refused for a mix), and says which calibrations and rigs, whether each is
current and whether the solver will not run on the mix or runs
(API guide).
Upgrading from 0.3.6: 0.8.0rc11 removed the fine-tuning calls, client.finetune and client.jobs.
Training isn't available on your account's plan yet. We're working on it. To request access, write
to support@qualiastudios.dev.
Split proposals and the undo
Preparation proposes splits and publishes none. client.preparation.review_splits
decides the open proposals of an upload: accept draws each cut on its take's
draft, so only a version published from it holds the pieces; reject closes the
proposal and leaves the take as it is.
Each proposal says why preparation would cut there. In client.preparation.get,
each of cuts.takes has its proposal, whose cuts (one per boundary between two
kept windows) carry start_seconds, the model's confidence and its reason. Runs
from before preparation kept them leave confidence unset and reason empty.
client.preparation.review_splits(dataset, "accept", [take_a, take_b])
client.preparation.review_splits(dataset, "reject") # every open one, newest run
client.episodes.unsplit_many restores the takes preparation split and
published before it proposed splits: the upload gets one new head version that
holds each take whole, versions that hold a piece keep it, and each cut is an
open proposal again.
done = client.episodes.unsplit_many(dataset, preparation=True)
print(done.version) # the upload's new head version
Both take validate_only=True, which answers what would be decided or
restored and writes nothing, and request_id, an idempotency key the SDK makes
per call when you pass none. A take that cannot be decided or restored is in
left with its reason; the others go on. Both first shipped in 0.8.0rc18;
0.8.0rc17 raises AttributeError. Review the proposed splits
and undo an old split
have the reasons and the rules.
Batch episode edits
client.episodes.trim_to_markers, clear_trims and name_subtasks draw on each episode's
draft. They read the episodes 6 at a time and send the edits together, up to 500 per request.
An episode left alone goes to skipped with its reason (no such marker inside its frames, a
drawn split, another person editing it), and the others are edited. A write refused for one
episode as FAILED_PRECONDITION skips that episode, and the rest of the request is sent again
without it; a refusal that names no episode (a merged-away upload) skips every edit not yet
saved. An episode named twice is edited once, and the repeat is skipped. A read error other than
FAILED_PRECONDITION stops the batch before anything is written. A write error other than
FAILED_PRECONDITION saves none of that request's edits; the requests before it stay saved.
batch = client.episodes.trim_to_markers(dataset, ids, start_labels=["success"])
for skipped in batch.skipped: # e.g. "being edited by <name>"
print(skipped.episode, skipped.reason)
Labels with a LeRobot download
A LeRobot download names each exported episode (qds_episode_id) and carries
nothing else Qualia knows about it. labels=True (qualia dataset download <dataset>:<tag> --labels) writes two more files into a lerobot_v3 or
lerobot_v2_1 folder, once its files are checked and before it appears. Any
other format is refused. First shipped in 0.8.0rc16.
result = client.data.download("box-pick:1.0", "./box-pick-1.0", labels=True)
print(result.labels.counts) # episodes, kept, checked, not_checked, failed
rows = client.versions.labels("box-pick:1.0").rows # the same rows, no download
The labels reference has the fields of each row and of
export.json, how rows are matched in each format, the time base, and when
the labels are refused or a source is skipped.
Download a trained model
client.models.download(model_id, dest) fetches a finetune's exported model
into dest in Hugging Face layout, so from_pretrained(dest) loads it (CLI:
qualia model download <model_id> --dir <dest>). Each file comes from a
short-lived signed link, is checked against its listed checksum, and is moved
into place only then. Run it again to resume: verified files are skipped and a
partial one continues where it stopped. A failed transfer names its HTTP
status or error type, never the signed link. With workspace= set, project_id
defaults to that workspace; a key restricted to workspaces needs it.
model = client.models.list_trained(limit=1).items[0]
result = client.models.download(model.artifact_id, "./my-policy")
print(result.revision, result.downloaded, result.skipped)
files() lists the files with their checksums and file_link() issues one
file's link. Models reference.
Catalog checks
Use client.checks.estimate(dataset, kind="heuristic", categories=["heuristic"])
to see which free checks would run, then client.checks.run(dataset, kind="heuristic", all=True) to start them without a credit ceiling. kind
can also be "vlm"; without it the catalog selects runnable heuristics (VLM
catalog checks are unavailable here). A run contains only one kind. VLM runs need max_cost covering
the estimated bound.
Automatic checks
The free checks run on every upload and have no switch: heuristic=False
raises ValueError. A stuck joint (heuristic.frozen) or NaN (heuristic.nan)
keeps a take out of kept until a person keeps or rejects it; the other free
checks are notes. client.checks.get("heuristic.frozen").blocks and each
list(dataset) entry's blocks say which.
Paid video checks default on and spend credits; an org, workspace or dataset can turn them off. An organization Admin/Owner can set the org default, a workspace Admin/Owner its default, and a dataset writer an override. It inherits from dataset → workspace → org → platform. Reading returns the effective on/off value and its source. Switching on starts nothing; existing episodes need a manual run.
client.checks.automatic_policy("<ORG_UUID>", org=True)
client.checks.set_automatic_policy("<ORG_UUID>", org=True, graph=False)
client.checks.set_automatic_policy("<WORKSPACE_UUID>", workspace=True, graph=True)
client.checks.set_automatic_policy("<DATASET_UUID>", reset=("graph",))
Automatic policy contract and permissions.
Pipeline templates
A workspace keeps its own pipeline templates as TOML files that pin public
templates. client.pipelines.catalog() lists what may be pinned; validate
and apply take the file's text, and apply writes the next version only when
the graph changed. estimate gives the most a launch may cost; launch takes
that bound as max_cost and is refused if the run no longer prices as quoted.
from pathlib import Path
applied = client.pipelines.apply(Path("our-act.toml").read_text(encoding="utf-8"))
values = {"dataset": "<VERSION_ID>"}
bound = client.pipelines.estimate(
applied.pipeline_template_id, project_id="<PROJECT_ID>", values=values
)
client.pipelines.launch(
applied.pipeline_template_id,
project_id="<PROJECT_ID>",
values=values,
max_cost=bound.credits,
quote_digest=bound.quote_digest,
)
Your workspace's templates are billed per run. On a deployment that does not
bill per run, apply still writes the template but answers launchable=False
with a launch_refusal (code, message) saying why, and launch is refused
with run_billing_required. validate, catalog() and templates() carry the
same two fields.
versions, version and retire read and end a template's history.
The file format and every rule.
API
In the repository (these links do not resolve on PyPI):
- API guide, examples and release history
- Upload preparation: waiting for it, what prepare found, confirming task names and deciding its split proposals (
client.preparation) - Episode drafts and version publication
- Labels with a LeRobot download: the files
labels=Truewrites - Server contracts and operations
License
MIT
Metadata
Release files for qualia-sdk 0.8.0rc19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qualia_sdk-0.8.0rc19.tar.gz | 616.1 kB | Without provenance | Details for qualia_sdk-0.8.0rc19.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qualia_sdk-0.8.0rc19-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details for qualia_sdk-0.8.0rc19-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| qualia_sdk-0.8.0rc19-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ ARM64 | Details for qualia_sdk-0.8.0rc19-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| qualia_sdk-0.8.0rc19-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for qualia_sdk-0.8.0rc19-cp310-abi3-macosx_11_0_arm64.whl |
Total release size: 5.6 MB
Release files / qualia_sdk-0.8.0rc19.tar.gz
| Download URL | qualia_sdk-0.8.0rc19.tar.gz |
|---|---|
| Size | 616.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33f1d23df41f98fef13ab5b90301ef33c35a180bc7850ea539a72a3793eab660
|
|
BLAKE2b-256 checksum How to use checksums |
5d617f8f29fe2beff6d67b09df9f7b3791687e2b41226d263de4053253dca17d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / qualia_sdk-0.8.0rc19-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | qualia_sdk-0.8.0rc19-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
bb1b0cba6be472b48ee89ef7babf6d9c3cba877ec2b1e7851a6b1f79b7dc49e5
|
|
BLAKE2b-256 checksum How to use checksums |
b2fb5059d198002405184a000de21349d87c3843db8d87b3d38d638c88abfc90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / qualia_sdk-0.8.0rc19-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | qualia_sdk-0.8.0rc19-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
6dc27618bcbac1df29d4b2efa37696c09961144c12c246f31b3f83bf8cd5c4b8
|
|
BLAKE2b-256 checksum How to use checksums |
80b1750502c99538a7365ab9da7aa2f554848efdc0ca3ff99a1acb69aad7bc8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Release files / qualia_sdk-0.8.0rc19-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | qualia_sdk-0.8.0rc19-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9aa80c64ac51397862c1ef92c57221b385988bf69f08ff043e027230ad1074cc
|
|
BLAKE2b-256 checksum How to use checksums |
67864a63929776147ae67533d8bf3ea3af4906d5e61660fc57f7c77a1a705333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.16.0
|
Security for qualia-sdk 0.8.0rc19
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.