Skip to main content

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.9.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fw-file-rs 0.9.2
File Size Uploaded Provenance Actions
fw_file_rs-0.9.2.tar.gz 254.3 kB Without provenance Details for fw_file_rs-0.9.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fw-file-rs 0.9.2
File Actions
fw_file_rs-0.9.2-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for fw_file_rs-0.9.2-cp311-abi3-win_amd64.whl
fw_file_rs-0.9.2-cp311-abi3-musllinux_1_2_x86_64.whl CPython 3.11 abi3 Linux musl 1.2+ x86-64 Details for fw_file_rs-0.9.2-cp311-abi3-musllinux_1_2_x86_64.whl
fw_file_rs-0.9.2-cp311-abi3-musllinux_1_2_aarch64.whl CPython 3.11 abi3 Linux musl 1.2+ ARM64 Details for fw_file_rs-0.9.2-cp311-abi3-musllinux_1_2_aarch64.whl
fw_file_rs-0.9.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for fw_file_rs-0.9.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
fw_file_rs-0.9.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for fw_file_rs-0.9.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
fw_file_rs-0.9.2-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for fw_file_rs-0.9.2-cp311-abi3-macosx_11_0_arm64.whl
fw_file_rs-0.9.2-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for fw_file_rs-0.9.2-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 19.1 MB

Release files / fw_file_rs-0.9.2.tar.gz

Download URL fw_file_rs-0.9.2.tar.gz
Size 254.3 kB
Tags Source
SHA-256 checksum
How to use checksums
070f41c018708d8a3cb58499beb70dc4398bf338ac98e2d4b792909d4d25a304
BLAKE2b-256 checksum
How to use checksums
f89abf72414b7a625a506f2f3df9a101aa87899a7852edc88353a0b4762d47df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / fw_file_rs-0.9.2-cp311-abi3-win_amd64.whl

Download URL fw_file_rs-0.9.2-cp311-abi3-win_amd64.whl
Size 2.4 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0a2533c53d6c5068803015db2f3862e35542650b56e77115af28be1c22d617b5
BLAKE2b-256 checksum
How to use checksums
724f26231cb2be94353c7dd7c96afe5b992af33fd38ef8d8619b82c9f451df62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / fw_file_rs-0.9.2-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL fw_file_rs-0.9.2-cp311-abi3-musllinux_1_2_x86_64.whl
Size 3.0 MB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
fcb40c92e23c989e56e736cb5fff353f34cd2372eedc9a31dcadd9325c5c403a
BLAKE2b-256 checksum
How to use checksums
22ac1824856de08f89a7f21c540705e0abac5ed80706f796cbfefc648853eb8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / fw_file_rs-0.9.2-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL fw_file_rs-0.9.2-cp311-abi3-musllinux_1_2_aarch64.whl
Size 2.9 MB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
d040e6a6033ad027fd9ab1d14ae191e5745cbb877ba2a5c332a04976650ef655
BLAKE2b-256 checksum
How to use checksums
3ec289db77085db893f035e96ef3d94de9b8b5d4dd04e1217cbe4f7a35952680
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / fw_file_rs-0.9.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL fw_file_rs-0.9.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.8 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
797dcc3bc1c37c01b59e8d01aa2e74920a78c5549c96f1cae773c1960e272425
BLAKE2b-256 checksum
How to use checksums
6c5539fda31fed7f3c2202cf9c7334e31b12ca80eb6f6e523a7a2abd7708d0c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / fw_file_rs-0.9.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL fw_file_rs-0.9.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 2.8 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
6f11c14fbe2725ffc9cbe1096892886e3b85d6f50b745712ca3506ebc1a8aa0f
BLAKE2b-256 checksum
How to use checksums
3447a659b80db2e0bd63c9fd0691542fde27a22b7fbac6fb7ad764fb2820127f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / fw_file_rs-0.9.2-cp311-abi3-macosx_11_0_arm64.whl

Download URL fw_file_rs-0.9.2-cp311-abi3-macosx_11_0_arm64.whl
Size 2.5 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bddf518523c6d3d5eb7423f4e855151561a75ee3a6701a01e9bb83b8578bece5
BLAKE2b-256 checksum
How to use checksums
44b8c76cc0fa2f29ec1ce1e47ac0efc65a627643d0dc5952ff46011f70f30117
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / fw_file_rs-0.9.2-cp311-abi3-macosx_10_12_x86_64.whl

Download URL fw_file_rs-0.9.2-cp311-abi3-macosx_10_12_x86_64.whl
Size 2.5 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
20c3b19469c80abec433f00277a9aed1c027344e6b67220271697659601b2352
BLAKE2b-256 checksum
How to use checksums
b42207bebe6c3b051434cebf12215eaa6e71c04b51993f3ea9f55fce3fd17850
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for fw-file-rs 0.9.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.9.2 This release

8 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page