This release is a pre-release and may not be stable for production use.
RSNA DICOM Anonymizer
Other languages: Deutsch, Español, Français.
Version 19.1.0.dev10 is the current 19.1 development pre-release on the dev branch (uv pip install --pre rsna-anonymizer). Stable 19.0.10 remains on master. Requires Python 3.11–3.14 with tkinter built in. Prefer 3.12 for the widest Tk/AI wheel coverage; avoid 3.14.1 (torchvision excludes that patch).
Install
You need three things: uv, a Python 3.11–3.14 environment that includes tkinter, and (on macOS, for AI Features) libomp.
1. Install uv
uv installs Python, creates the venv, and pulls large AI dependencies.
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows (PowerShell)
irm https://astral.sh/uv/install.ps1 | iex
Confirm uv is on your PATH:
uv --version
2. Install Python with tkinter, then the app
The desktop UI needs tkinter. Install a Python that ships with it, then create the venv and install 19.1.0.dev10 (--pre):
| Platform | Ensure tkinter is available |
|---|---|
| Windows | Install Python 3.11–3.14 from python.org with Add to PATH and tcl/tk and IDLE checked |
| macOS | Prefer uv python install 3.12 (Tk 9.x). Or Homebrew: brew install python@3.12 python-tk@3.12 |
| Linux | sudo apt install python3.12 python3.12-tk python3.12-venv (or the matching python3.11 / python3.11-tk / python3.11-venv packages) |
uv python install 3.12 # or: 3.11 / 3.13 / 3.14
uv venv rsna-anonymizer --python 3.12 # or: --python 3.11 / 3.13 / 3.14
source rsna-anonymizer/bin/activate # Windows: rsna-anonymizer\Scripts\activate
uv pip install --pre rsna-anonymizer # version 19.1.0.dev10
3. Verify the install
python --version # 3.11.x–3.14.x
python -m tkinter # a small Tk window must open — required for the UI
rsna-anonymizer --version # should report 19.1.0.dev10
If python -m tkinter fails, the venv’s Python was built without Tk: fix the platform step above, recreate the venv, and reinstall.
4. macOS only — OpenMP for AI Features
On macOS, AI Features that use TotalSegmentator / Harmonize contrast analysis need the C++ OpenMP runtime libomp. Install it once with Homebrew before you download or run those models:
brew install libomp
Without libomp, Harmonize contrast can crash (for example exit code 139 / XGBoost OpenMP errors). Face blur and other AI tools that depend on the same stack can be affected. Linux and Windows normally do not need this step.
5. Run
rsna-anonymizer
On first launch, use the Welcome screen AI Features button to download models and accept the face license when needed.
Run (modes)
rsna-anonymizer
rsna-anonymizer -c path/to/ProjectModel.json # headless DICOM receive
rsna-anonymizer -c path/to/ProjectModel.json --ai-batch path/to/AiBatchConfig.json --ai-batch-run
# MCP (experimental / opt-in for 19.1.0):
# rsna-anonymizer --mcp # or --mcp HOST:PORT
Headless AI batch uses a companion AiBatchConfig.json (algorithms, modes, study selection, CT/MR resolution). OCR whitelists remain under the project whitelists/ directory. The MCP server is experimental / opt-in for 19.1.0 (start with --mcp) — see Run headless.
Upgrade
source rsna-anonymizer/bin/activate
uv pip install --upgrade --pre rsna-anonymizer
See CHANGELOG for release notes.
Documentation
Clinician user manual (MkDocs Material, English). Build locally: uv sync --group docs && uv run mkdocs serve. Maintainer notes: docs/README.md.
Development
git clone https://github.com/RSNA/anonymizer.git
cd anonymizer
git checkout dev
uv sync --group dev
uv run pre-commit install
uv run rsna-anonymizer
macOS AI Features: brew install libomp (OpenMP runtime for Harmonize contrast / TotalSegmentator).
Hot-reload UI work: uv run python src/prototyping/dev/dev_anonymizer.py (optional watchexec; falls back to watchfiles).
Experimental CLIs live under src/prototyping/.
Linting (Ruff)
Config: [tool.ruff] in pyproject.toml (scope: src/anonymizer/).
uv run ruff check ./src/anonymizer/
uv run ruff check ./src/anonymizer/ --fix # safe auto-fixes; not used in CI
uv run pre-commit run ruff-check --all-files
Unit testing
Layout mirrors source: tests/controller/ → src/anonymizer/controller/. Prototyping tests: src/prototyping/*/tests/. See tests/README.md.
uv run pytest tests/controller/tseg -q
uv run pytest -q # same suite as CI (controller + model + mcp + Orthanc)
uv run pytest src/prototyping -q
uv run pytest tests/view -m 'not view_dev' -q # local GUI suite
Optional: tests/controller/.env with AWS_USERNAME / AWS_PASSWORD for S3 upload tests. Markers are documented in pyproject.toml and tests/README.md.
Translations
Languages: en_US, de, es, fr. Install gettext (brew install gettext, choco install gettext, or apt install gettext), then:
cd src/anonymizer/assets/locales/
./extract_translations.sh
./update_translations.sh
Software architecture
User manual (MkDocs)
uv sync --group docs
uv run mkdocs serve # http://127.0.0.1:8000
uv run mkdocs build --strict
Community
- Code of Conduct
- Security policy
- License (Apache-2.0)
Metadata
Release files for rsna-anonymizer 19.1.0.dev10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rsna_anonymizer-19.1.0.dev10.tar.gz | 12.1 MB | With provenance | Details for rsna_anonymizer-19.1.0.dev10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rsna_anonymizer-19.1.0.dev10-py3-none-any.whl | Python 3 | none | any | Details for rsna_anonymizer-19.1.0.dev10-py3-none-any.whl |
Total release size: 24.4 MB
Release files / rsna_anonymizer-19.1.0.dev10.tar.gz
| Download URL | rsna_anonymizer-19.1.0.dev10.tar.gz |
|---|---|
| Size | 12.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab2c1276fb3c7c5ef3c54747afd127704e34a65956b116b6e290a9c480ef0c03
|
|
BLAKE2b-256 checksum How to use checksums |
8fd835b7dbddbde7342be36c41fb3e1ad816820996c155ae3068e56c8a52f59c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 19, 2026.
Transparency logRelease files / rsna_anonymizer-19.1.0.dev10-py3-none-any.whl
| Download URL | rsna_anonymizer-19.1.0.dev10-py3-none-any.whl |
|---|---|
| Size | 12.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4a7e0211361052bd9cb78796859711a0b5da7ce3fe89160861bfa56b1a9ded3
|
|
BLAKE2b-256 checksum How to use checksums |
965f9e76a558bbe4a1df584c70f73b081d8fa13b773b3b395d6046a9fef98445
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 19, 2026.
Transparency logSecurity for rsna-anonymizer 19.1.0.dev10
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rsna_anonymizer-19.1.0.dev10.tar.gz
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 Nov 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.