LuwakX - Config-Driven DICOM Anonymization
LuwakX is a powerful, config-driven tool for anonymizing DICOM files using the deid library. It supports flexible configuration through JSON files and provides both command-line and programmatic interfaces.
It is based on the 2025b DICOM standards.
Installation
From PyPI
pip install luwakx
From source
git clone https://github.com/ZentaLabs/LUWAKX.git
cd luwak
pip install -e ".[test]"
Using requirements.txt (development)
pip install -r requirements.txt
pip install -e ".[test]"
Note:
deidis a custom fork not available on PyPI. It is automatically installed from GitHub the first time anonymization is run.
Prerequisites
- Python >= 3.12
Usage
Command Line Interface
luwakx --config_path /path/to/config.json
Options:
--config_path: Path to the JSON configuration file--no-console: Disable console logging (only log to file)
Programmatic Interface
from luwakx.anonymize import LuwakAnonymizer
anonymizer = LuwakAnonymizer("/path/to/config.json")
result = anonymizer.anonymize()
Configuration
Create a JSON configuration file:
{
"inputFolder": "/path/to/input/dicom/files",
"patientIdPrefix": "Patient",
"outputDeidentifiedFolder": "/path/to/output/deidentified",
"outputPrivateMappingFolder": "/path/to/output/privateMapping",
"recipesFolder": "/path/to/output/recipes",
"recipes": ["basic_profile"],
"projectHashRoot": "your_encryption_key",
"maxDateShiftDays": 1095,
"logLevel": "INFO"
}
For full configuration documentation see luwakx/README.md.
License
Apache License 2.0 — see LICENSE.txt.
Metadata
Release files for luwakx 0.1.1
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 | |
|---|---|---|---|---|
| luwakx-0.1.1.tar.gz | 1.5 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| luwakx-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.8 MB
Release files / luwakx-0.1.1.tar.gz
| Download URL | luwakx-0.1.1.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59b2172edc3dca2c59be77c48651853830e7bc4b2771030d1143e3d481c5f867
|
|
BLAKE2b-256 checksum How to use checksums |
e2c73fbe497145673ae74cb3c36433d42c510279ab8c3c9eda8025166bd7013d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 27, 2026.
Transparency logRelease files / luwakx-0.1.1-py3-none-any.whl
| Download URL | luwakx-0.1.1-py3-none-any.whl |
|---|---|
| Size | 310.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95d6278b685576a73203847cad964d4f9f4672ea5231b8bb105320dc3c05fb59
|
|
BLAKE2b-256 checksum How to use checksums |
50f7ef6801da55f8a755f5f86cff116acfc3b3b77ff35b59cb173e222ed5ab1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 27, 2026.
Transparency logSecurity for luwakx 0.1.1
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for luwakx-0.1.1.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 May 27, 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.