Python API
Install lucem with uv or pip, picking only the optional extras your project needs:
uv add lucem # Core: runtime, io, ops, custom (@lucem.op), ml clientuv add "lucem[web]" # + Static WASM browser viewer (`lucem web`)uv add "lucem[app]" # + Native desktop workstation (`lucem app`)uv add "lucem[hist]" # + Histology: stains, tissue, cells, sessionsuv add "lucem[stardist]" # + StarDist nuclei pluginuv add "lucem[ml]" # + StarDist + SAM + InstanSeg pluginsModule map
Section titled “Module map”| Module | What it provides |
|---|---|
lucem.runtime |
Query/select cuda, wgpu, or cpu and run autotune() |
lucem.io |
Lazy OME-Zarr / OME-TIFF Pyramid reading and block-wise ZarrWriter |
lucem.ops |
All 52 GPU operators plus on-device Pipeline chains |
lucem.custom |
@lucem.op, @lucem.transform, blocks(), measure(), segment() |
lucem.web / app / ml / hist |
Launch browser/desktop UIs, discover ML plugins, run histology |