fw-file-rs
Python bindings for the fw-file-rs Rust library.
Usage
from fw_file_rs.dcm import Context, read_until_pixels
# Create a configured context using the builder pattern
ctx = (Context()
.parse_include([
"InstitutionAddress",
"InstitutionName",
])
.group_by(["StudyInstanceUID", "SeriesInstanceUID"])
.split_localizer(True)
.deid_profile("""
version: 1
name: profile
dicom:
fields:
- name: PatientName
replace-with: REDACTED
"""))
# Read DICOM header bytes from file
header_bytes = ctx.read_until_pixels("/path/to/dicom/file.dcm")
# Extract metadata using the configured context
meta = ctx.parse_header(header_bytes)
# Get Flywheel-specific metadata
fw_meta = ctx.get_fw_meta(meta)
# Group DICOM files by configured tags with localizer splitting
path_meta_pairs = [("1.dcm", meta)]
groups = ctx.group_series(path_meta_pairs)
# De-identify the DICOM header using the configured profile
deid_header = ctx.deid_header(header_bytes)
Metadata
Release files for fw-file-rs 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fw_file_rs-0.8.0.tar.gz | 218.4 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| fw_file_rs-0.8.0-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details |
| fw_file_rs-0.8.0-cp311-abi3-musllinux_1_2_x86_64.whl | CPython 3.11 | abi3 | Linux musl 1.2+ x86-64 | Details |
| fw_file_rs-0.8.0-cp311-abi3-musllinux_1_2_aarch64.whl | CPython 3.11 | abi3 | Linux musl 1.2+ ARM64 | Details |
| fw_file_rs-0.8.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| fw_file_rs-0.8.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| fw_file_rs-0.8.0-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details |
| fw_file_rs-0.8.0-cp311-abi3-macosx_10_12_x86_64.whl | CPython 3.11 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 18.2 MB
Release files / fw_file_rs-0.8.0.tar.gz
| Download URL | fw_file_rs-0.8.0.tar.gz |
|---|---|
| Size | 218.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ba0265747e4d7a08b63a5723919c047f89872393fb8b7268e79b4a8c17334b5
|
|
BLAKE2b-256 checksum How to use checksums |
3ac0829911f2b7af2d163b34f94a00d57c4873af000471bdc34d9a2f6d01b55a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / fw_file_rs-0.8.0-cp311-abi3-win_amd64.whl
| Download URL | fw_file_rs-0.8.0-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8a75d7c00b431f8018755e81e417103e5109ac31a433802194d0e6daff5d5514
|
|
BLAKE2b-256 checksum How to use checksums |
fe207e2b2d8cd4ef2df7c086d408b4d62a56e1d6db51d0e440e34b7ce752c887
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / fw_file_rs-0.8.0-cp311-abi3-musllinux_1_2_x86_64.whl
| Download URL | fw_file_rs-0.8.0-cp311-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.8 MB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1dafab171e8c69c5072b1633e9b6de1e89c73fbd0b3c80423c93c75b4eec6258
|
|
BLAKE2b-256 checksum How to use checksums |
ed863e025beee1201a74efee1ee0e4ad2466168c41b5a1ca7e656096557c4961
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / fw_file_rs-0.8.0-cp311-abi3-musllinux_1_2_aarch64.whl
| Download URL | fw_file_rs-0.8.0-cp311-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 2.8 MB |
| Tags | CPython 3.11 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
555706afcc610973517b6b240e417b4928b71c58771002a66b02487516dec410
|
|
BLAKE2b-256 checksum How to use checksums |
eb6af49afd81265061aa0ba161416cd2c26e33d7305b7013bac992b67f74765c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / fw_file_rs-0.8.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fw_file_rs-0.8.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.7 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0897e16216fe8f55f4724605f77fcb49f52c8b34ba3640cc8e60fb9ef8fda70b
|
|
BLAKE2b-256 checksum How to use checksums |
769780f325c17dfb192978b5f533e2af06cb70e284c62000446a0b82c8812b6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / fw_file_rs-0.8.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | fw_file_rs-0.8.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 2.7 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
fed10452450c00a51f70f343216631363843bba2777048c49145799ed23a81f9
|
|
BLAKE2b-256 checksum How to use checksums |
ec515bd9895b63be0882ef55d4857876d5e97cd2140b43d13019a8a7e1288a4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / fw_file_rs-0.8.0-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | fw_file_rs-0.8.0-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
1fde79a9ec53eef8a9180c2bdd54993dbe04c4c048db396fa9e06657499a4a7e
|
|
BLAKE2b-256 checksum How to use checksums |
369d9793d7102425f817db3de4f35b850c8e31aa8e287e938e81c3a00c8ad70d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / fw_file_rs-0.8.0-cp311-abi3-macosx_10_12_x86_64.whl
| Download URL | fw_file_rs-0.8.0-cp311-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.11 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
da647992290870986d2d7e6a875665c227eef59cb90feb9c9accc49825dc2ae1
|
|
BLAKE2b-256 checksum How to use checksums |
aeea3dc043752b2e4511885680f6e4ab21a8cfc5238ee5318cd26e2e65fd0651
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|