https://github.com/edap/pardi
A rust command line utility to parse DICOM files
https://github.com/edap/pardi
Last synced: about 1 year ago
JSON representation
A rust command line utility to parse DICOM files
- Host: GitHub
- URL: https://github.com/edap/pardi
- Owner: edap
- License: gpl-3.0
- Created: 2025-03-23T13:50:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-23T17:25:51.000Z (over 1 year ago)
- Last Synced: 2025-03-23T17:33:24.663Z (over 1 year ago)
- Language: Rust
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pardi
A command line tool to parse DICOM files. It extracts Patient ID, Patient Name and file name.
## Build
To build the cli tool, move into the pardi folder and run `cargo build --release`. This command generates an optimized build in the `target/release` folder
To build the tool with [rayon](https://docs.rs/rayon/latest/rayon/) enabled, run `cargo build --release --features rayon`
## Usage
After the build process, in `target/release` you can find the `pardi` binary. Run it with `./pardi`. See the next sections for the available options.
## Options
- `--path` = Specify the path where to look for DICOM files. By default it tries to scan the current directory
Example: `./target/release/pardi --path /home/user/data`
- `--format` = The format of the output, json and csv are available. Default json
Example: `./target/release/pardi --path data --format csv`
- `--debug` = Print error messages for unprocessable files. Default false.
Example: `./target/release/pardi --path data --debug`
- `--output` = Save the catalog to a file. If no output option is speficied, it prints the catalogue on screen.
Example: `./target/release/pardi --path data --format json --output catalog.json`