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.7.2
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.7.2.tar.gz | 189.4 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| fw_file_rs-0.7.2-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details |
| fw_file_rs-0.7.2-cp311-abi3-musllinux_1_2_x86_64.whl | CPython 3.11 | abi3 | Linux musl 1.2+ x86-64 | Details |
| fw_file_rs-0.7.2-cp311-abi3-musllinux_1_2_aarch64.whl | CPython 3.11 | abi3 | Linux musl 1.2+ ARM64 | Details |
| fw_file_rs-0.7.2-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.7.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| fw_file_rs-0.7.2-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details |
| fw_file_rs-0.7.2-cp311-abi3-macosx_10_12_x86_64.whl | CPython 3.11 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 16.5 MB
Release files / fw_file_rs-0.7.2.tar.gz
| Download URL | fw_file_rs-0.7.2.tar.gz |
|---|---|
| Size | 189.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf85259ecfe0071a782d19657afda90e226c5707c02137a52c956c69ac880e6b
|
|
BLAKE2b-256 checksum How to use checksums |
59a0282cfcfeb1bf09db31dd76ca61971f2579562d9fce9633d23a4d8d1b8b18
|
| 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.7.2-cp311-abi3-win_amd64.whl
| Download URL | fw_file_rs-0.7.2-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
17b5d4b2ce35d42b51cbe94175d92e891cabbf96f5dfe3793de1ebb313c62d46
|
|
BLAKE2b-256 checksum How to use checksums |
9428ec81cc87168856481aa9e51aa177996383c1de0e8a335b11f89e94d5fa8b
|
| 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.7.2-cp311-abi3-musllinux_1_2_x86_64.whl
| Download URL | fw_file_rs-0.7.2-cp311-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
fce305fb33f634c4edc3ead10315bea47335f4f7fe05ffaa8256f25f53c27e6d
|
|
BLAKE2b-256 checksum How to use checksums |
e2da383ff899cff807ac6edde79df37ec0717e2a57b07fd6036224b543919afc
|
| 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.7.2-cp311-abi3-musllinux_1_2_aarch64.whl
| Download URL | fw_file_rs-0.7.2-cp311-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.11 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
2b2335e711a9ed62a6d9e973dc9347ec8ba30344ecb5d416791dfcc595479438
|
|
BLAKE2b-256 checksum How to use checksums |
4c0d29ffe84f4e75a3eba30d7798d637336aa14568164741f0ad0f95ec230aa5
|
| 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.7.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fw_file_rs-0.7.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7fd2ebac42a3ca2a0eac4dac6cb1261c21506932d427ea0acb12a6c0228192ae
|
|
BLAKE2b-256 checksum How to use checksums |
28a4562e99c3a70e04f1c436afb55de68e1d3febce73eb62a0a9fd90b335c8cd
|
| 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.7.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | fw_file_rs-0.7.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
68a54e9689201927556a6fd7a4b7aef4b2d4fc57c31f459aab761981d9d4df7f
|
|
BLAKE2b-256 checksum How to use checksums |
818a0fbbe65b45ffd2081249d9f89e5497b8f7d526c2800f518631f7105c9165
|
| 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.7.2-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | fw_file_rs-0.7.2-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f8bb2f5624cb8f1f25e61f30517be27abbb2564fcbfbb02edeed6c29f35c8539
|
|
BLAKE2b-256 checksum How to use checksums |
dcefb3bebe3688cf209795c1d46e11f1539c64f16cf16a306cd60298967e010f
|
| 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.7.2-cp311-abi3-macosx_10_12_x86_64.whl
| Download URL | fw_file_rs-0.7.2-cp311-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.11 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
26b5b57549614faca65b0281af4340ce61086adc756a3bfe6811dc40d3e1c950
|
|
BLAKE2b-256 checksum How to use checksums |
2f74f4233a829cf796b2c7f562ff63654e6e959373b2001e03c12564f2059dca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|