Metadata-Version: 2.4
Name: mrione_client
Version: 1.0.0
Summary: Python client and CLI for the MRI-one research service (Dataset Drop Lab)
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25
Provides-Extra: numpy
Requires-Dist: numpy; extra == "numpy"

# mrione_client

Python client and `mrione` CLI for the MRI-one research service.

```bash
pip install mrione_client-1.0.0-py3-none-any.whl      # or: pip install ./client
export MRIONE_URL=https://mri-one.namankundra.com
export MRIONE_TOKEN=<workspace token>
mrione capabilities
```

```python
from mrione_client import Client
mr = Client.from_env()
ds = mr.create_dataset(name="Breast MRI training")
mr.add_files(ds.id, "./training-scans", csv="scans.csv")
check = mr.validate(ds.id)
plan = mr.plan(ds.id, validation_id=check.id, recipe="augment", target={"field_strength_t": 3.0})
job = mr.start_job(plan.id, mode="batch")
mr.wait_for_job(job.id)
mr.export(job.id, "./mri-one-dataset.zip")
```

CSV columns: `file, patient_key, split, sequence, manufacturer, field_strength_t, echo_time_ms`.
`file` is the path relative to the uploaded folder (or just the filename). DICOM headers win over the CSV
for scanner fields. Errors raise `MRIoneError` with a stable `code` and a plain-language `message`.

`start_job` sends an idempotency key built from the plan and mode, so re-running a notebook cell returns the
same job instead of starting a second one. Pass `idempotency_key=` to start a fresh run of the same plan.
