This release is a pre-release and may not be stable for production use.
RSNA DICOM Anonymizer (V18 stable / V19 dev)
Install Python with tkinter (GUI library)
Windows
- Download Python 3.12 from python.org (pytorch does not currently support 3.13)
- Run installer
- Select "Add python.exe to PATH"
- Enable "tcl/tk and IDLE"
macOS
- Install Homebrew if not present: `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)'
- Install Python 3.12 with Tcl/Tk:
brew install python@3.12
brew install tcl-tk
Linux (Ubuntu/Debian)
- Install the required packages:
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.12 python3.12-tk
Verify Installation
python --version
python -m tkinter
If python + tkinter has been installed successfully a small GUI window should open
Install rsna-anonymizer package from PyPI
Use uv for installs. It is much faster than plain pip for V19, which pulls large ML dependencies (PyTorch, TotalSegmentator, etc.).
One-time: install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows (PowerShell): powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Restart the terminal if uv is not found.
Create a virtual environment
uv venv rsna-anonymizer --python 3.12
source rsna-anonymizer/bin/activate # Windows: rsna-anonymizer\Scripts\activate
Install the package
Stable (V18):
uv pip install rsna-anonymizer
V19 development pre-release (requires --pre; does not replace the stable install above):
uv pip install --pre rsna-anonymizer
Pin a specific dev build:
uv pip install --pre rsna-anonymizer==19.0.0.dev3
Verify: uv pip show rsna-anonymizer or rsna-anonymizer --version. See CHANGELOG for dev release notes.
TotalSegmentator, XGBoost, and related dependencies are included. Enable Harmonize, Face Blur, and Remove Pixel PHI per project in Settings → Project (or when creating a new project). Download models and apply the face license from the AI Features panel.
Execution
rsna-anonymizer
Headless Mode
You need to provide a path to a project configuration to run in headless mode
rsna-anonymizer -c path/to/ProjectModel.json
Upgrading
Activate the virtual environment first (source rsna-anonymizer/bin/activate).
Stable:
uv pip install --upgrade rsna-anonymizer
V19 dev pre-release:
uv pip install --upgrade --pre rsna-anonymizer
Pin a specific dev build:
uv pip install --upgrade --pre rsna-anonymizer==19.0.0.dev3
Documentation
Development
Setup
- Setup python environment (3.12) which includes Tkinter, recommend using pyenv with MacOS & Linux
- Ensure python is installed with Tkinter:
python -m tkinter, a small GUI window should open - Install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh - Clone repository (for V19 work, checkout branch
V19before syncing) - Create virtual environment and install dependencies:
uv sync --group dev - macOS Harmonize contrast:
brew install libompwhen using XGBoost/TotalSegmentator contrast - Enable Git pre-commit hooks (Ruff lint, same rules as CI):
uv run pre-commit install
For hot-reload during UI work: uv run python scripts/dev_anonymizer.py (requires watchexec).
Hooks run on every git commit, including commits from the VS Code / Cursor Source Control UI. To skip once: git commit --no-verify.
Linting (Ruff)
Configuration: [tool.ruff] in pyproject.toml (scope: src/anonymizer/).
uv run ruff check ./src/anonymizer/
uv run ruff check ./src/anonymizer/ --fix # safe auto-fixes only; not run in CI
uv run pre-commit run ruff-check --all-files
CI runs ruff check without --fix. Pre-commit uses the same check on staged Python files under src/anonymizer/.
Unit Testing
Test layout mirrors source: tests/controller/ → src/anonymizer/controller/, prototyping tests live under src/prototyping/*/tests/. See tests/README.md.
uv sync --group dev
uv run pytest tests/controller/tseg -q # may download TS weights
uv run pytest tests/controller tests/model -q # CI suite (no view)
uv run pytest src/prototyping -q # prototyping only
uv run pytest -q # full local suite (controller + view + model)
Optional: create tests/controller/.env with AWS_USERNAME and AWS_PASSWORD for S3 upload tests.
Markers (tseg_integration, dicom_integration, rsna_local_data) are documented in pyproject.toml and tests/README.md.
Translations
Languages for 17.3: en_US, de, es, fr
Ensure gettext is installed:
- Windows: Install instructions or
choco install gettext - Mac OSX:
brew install gettext - Linux:
sudo apt-get install gettext
Extracting messages from source files:
cd src/anonymizer/assets/locales/ ./extract_translations.sh
Updating translations:
cd src/anonymizer/assets/locales/ ./update_translations.sh
Software Architecture
Full class diagram on github here
Metadata
Release files for rsna-anonymizer 19.0.0.dev3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rsna_anonymizer-19.0.0.dev3.tar.gz | 18.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rsna_anonymizer-19.0.0.dev3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.2 MB
Release files / rsna_anonymizer-19.0.0.dev3.tar.gz
| Download URL | rsna_anonymizer-19.0.0.dev3.tar.gz |
|---|---|
| Size | 18.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
daf41719d5f5336770dcaeb7136fb5dc22fbffd61f8e4e5997f7be656ef9c3e6
|
|
BLAKE2b-256 checksum How to use checksums |
d9a6006308d946f007c300dd1cd9327f38a8e8cb70e30fab65fa6021d0da6e38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.
Transparency logRelease files / rsna_anonymizer-19.0.0.dev3-py3-none-any.whl
| Download URL | rsna_anonymizer-19.0.0.dev3-py3-none-any.whl |
|---|---|
| Size | 11.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d4ef6df3050ab09d14cde50a8bc2ba28efb0f2e0d028c52347f20cf8c53c167
|
|
BLAKE2b-256 checksum How to use checksums |
44bda29ff175661d198d31331d13f1ee40eedd541e4119ef56e04d1a5ffa8f0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.
Transparency log