Metadata-Version: 2.4
Name: rayglass
Version: 0.1.9
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: 3
Summary: DICOM research API — same engine as the RayGlass viewer
License: Proprietary
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# rayglass

```python
import rayglass as rg

# Folder + Series Instance UID, or open a .rgview.json (loads source.root + applies view)
s = rg.open("./dicom", series_uid="1.2.840...")
# s = rg.open("view.rgview.json")

vol = s.volume()          # Volume: .shape (Z,Y,X), .hu (numpy), .affine, .units
png = s.render("out.png", view="view.rgview.json")  # apply + PNG bytes (+ write)
s.export("vol.nii")       # NIfTI; also .nrrd / .i16le — or format="nifti"|"nrrd"|"i16"|"bids"

urls = rg.desktop_open_urls("./dicom", "1.2.840...", "view.rgview.json", mode="mpr")
# urls["protocol"] / urls["http"] → open in RayGlass desktop
```

```bash
pip install 'rayglass>=0.1.0'
rayglass view ./dicom -o axial.png   # CLI binary (not this wheel)
```

Wheels (cibuildwheel): **linux x86_64 + aarch64**, **macOS arm64**, **Windows x64**. Not built: macOS Intel, Windows ARM. `abi3` → one wheel tag per platform for Python 3.10+.

`rg.__version__` matches `rayglass --version` and the desktop About box. No GUI.

`rg.demo()` opens `$RAYGLASS_DICOM_ROOT` (anonymized local corpus only).
`rg.view("view.rgview.json")` → stack_index / kind helpers.

