trame-slicer library
Project description
trame-slicer
trame-slicer is a Python library bringing 3DSlicer components in trame as a composable library.
It uses 3D Slicer's python wrapping and adds a thin wrapping to make it available with the trame framework.
Usage
The API Reference documentation provides API-level documentation.
Warning
The API has not been stabilized / reviewed by the 3D Slicer core developers so please use this library with caution.
Installing
The library can be installed in a Python environment as follows:
- Setup a Python 3.10-3.13 (included) virtualenv and activate it
- From PyPI
- Use
pip install trame-slicer[standalone]to install the latest release
- Use
- From GitHub
- Git clone the library
- cd into the library
- Use the
pip install -e .[standalone]command to install the library along it's dependencies
- For optimal performances, you should install turbo-jpeg
Getting started
To get started using trame, please have a look at the introductory trame course.
To start using the trame-slicer library, have a look and run the medical viewer app:
python examples/medical_viewer_app.py
Features
The following subset of 3D Slicer features are currently supported :
- (limited) file loading
- Volume files (DCM, NRRD, NIFTI, ...)
- Model files (STL, OBJ)
- MRML / MRB files
- Segmentations (NRRD, NIFTI, ...)
- Display
- 2D/3D with 3D Slicer UI manipulation
- Volume Rendering preset / shift
- Bare bone access to 3D Slicer MRML scene and Core logic components
Work in progress
To make it easier for users to use trame-slicer, the following work are in progress :
- Slicer wheel generation merge into 3D Slicer's preview release
- CI changes to build the Slicer wheel along 3D Slicer's release
- 3D Slicer extension to install trame-slicer and launch a trame-slicer server directly from 3D Slicer
Troubleshooting
ERROR: No matching distribution found for slicer-core
slicer-core is only supported on specific platforms, please check that your OS and Python version are listed on pypi
Contributing
Contributions are welcomed, please follow the CONTRIBUTING.md file for more information.
License
The library is distributed with a permissive license. Please look at the LICENSE file for more information.
Acknowledgments
This library was funded by the following projects :
- Cure Overgrowth Syndromes (COSY) RHU Project (ANR-18-RHUS-005).
- Handling heterogeneous Imaging and signal data for analysing the Neurodevelopmental Trajectories of premature newborns (HINT) ANR project (ANR-22-CE45-0034)
This library was created from the trame-cookicutter library.
Contact
If you are interested in learning how you can use trame-slicer for your use case in the near future, or want to get an early start using the framework, don't hesitate to contact us. Or reach out in the issue tracker and 3DSlicer discourse community.
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 trame_slicer-1.9.0.tar.gz.
File metadata
- Download URL: trame_slicer-1.9.0.tar.gz
- Upload date:
- Size: 2.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2aa29bbbff4b6b1570aa37a4ce5b4c45a267bb1b52abc9d698fef1e3588ecc07
|
|
| MD5 |
feac496093b6b601cd2924ebdd42f9bd
|
|
| BLAKE2b-256 |
17ff394d233f843b947c4e370a12af624cbc2ad0165dbe78c5edfb67be6a120a
|
Provenance
The following attestation bundles were made for trame_slicer-1.9.0.tar.gz:
Publisher:
release.yml on KitwareMedical/trame-slicer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trame_slicer-1.9.0.tar.gz -
Subject digest:
2aa29bbbff4b6b1570aa37a4ce5b4c45a267bb1b52abc9d698fef1e3588ecc07 - Sigstore transparency entry: 1135401888
- Sigstore integration time:
-
Permalink:
KitwareMedical/trame-slicer@a508ea23c939f8a3c89a62f2065e8a3326abc411 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/KitwareMedical
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a508ea23c939f8a3c89a62f2065e8a3326abc411 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file trame_slicer-1.9.0-py3-none-any.whl.
File metadata
- Download URL: trame_slicer-1.9.0-py3-none-any.whl
- Upload date:
- Size: 984.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b520b79c709cd203c50e7cb6cf16d9d5fb5bbae6620f677fa97cdfa76771dec
|
|
| MD5 |
5134e666aa44f0ef9c990dae974b33b7
|
|
| BLAKE2b-256 |
bdf4147b41956542e9d098e911d54b056bb6dc95f6cc52d401e8850db666ceda
|
Provenance
The following attestation bundles were made for trame_slicer-1.9.0-py3-none-any.whl:
Publisher:
release.yml on KitwareMedical/trame-slicer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trame_slicer-1.9.0-py3-none-any.whl -
Subject digest:
3b520b79c709cd203c50e7cb6cf16d9d5fb5bbae6620f677fa97cdfa76771dec - Sigstore transparency entry: 1135401930
- Sigstore integration time:
-
Permalink:
KitwareMedical/trame-slicer@a508ea23c939f8a3c89a62f2065e8a3326abc411 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/KitwareMedical
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a508ea23c939f8a3c89a62f2065e8a3326abc411 -
Trigger Event:
workflow_dispatch
-
Statement type: