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

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.0
File Size Uploaded Provenance Actions
fw_file_rs-0.9.0.tar.gz 238.4 kB Without provenance Details for fw_file_rs-0.9.0.tar.gz

Built distributions (wheels)

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

Total release size: 19.0 MB

Release files / fw_file_rs-0.9.0.tar.gz

Download URL fw_file_rs-0.9.0.tar.gz
Size 238.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c3c97e0a2e65df999df466a61fd3385da76f89817de3872323b4157a999b3338
BLAKE2b-256 checksum
How to use checksums
8f0f9ef208d2792a1b4677ede21e645e4faad347be81207964d30dfde8ac9e53
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.9.0-cp311-abi3-win_amd64.whl

Download URL fw_file_rs-0.9.0-cp311-abi3-win_amd64.whl
Size 2.4 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
1540b5dabd2e0148dbfb215a03f9a768bdd5afe86bfdfe3608d7b0fa19ef80ec
BLAKE2b-256 checksum
How to use checksums
3929a0443fc21cfaf24953a57d86c2ba54d49ed31938d008a67604f595cc43f4
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.9.0-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL fw_file_rs-0.9.0-cp311-abi3-musllinux_1_2_x86_64.whl
Size 2.9 MB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
81a138a79d674e2a5988da9172decf2967684b6fdfee2f8072cb4f85aff167fb
BLAKE2b-256 checksum
How to use checksums
057f22fce03d4b835b6d3210d1c68d076aaffe729c70023dd4642bc4840ecb6b
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.9.0-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL fw_file_rs-0.9.0-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
ca343614e9addf06c269ec9db9a39fb84ad10b831b4ad268e17da6a93490723b
BLAKE2b-256 checksum
How to use checksums
3f487c871891f4a3f34d3b2b9d23c7e790322f6a2ca022ccfbf203a2e674c7ce
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.9.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fw_file_rs-0.9.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_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
862ef0ebda009800e43a97df960a41ac0b7ea5c4a0396eb443e12891da08b7a0
BLAKE2b-256 checksum
How to use checksums
2cf89eb1f461fafed85a711cddd106ae8c7c5b1c30fb143a8140d45ad3136749
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.9.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL fw_file_rs-0.9.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 2.8 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
148e71926f6db272110fdb277f39b3ff1e54c5455742e9acd6619b0c69e8c745
BLAKE2b-256 checksum
How to use checksums
06aaf4007833c08a3978ff1f49683fd138e5724f00a042ce78ad05f1e069ce25
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.9.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL fw_file_rs-0.9.0-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
bdf89bc326d218ca3bf1d53a0a1429ee2d8a35546570f159ecb8f397a381e5c9
BLAKE2b-256 checksum
How to use checksums
980c5bdc074285cfd834bd14aa868e5b94385fb4cfacd91d3e1294c819efdcd4
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.9.0-cp311-abi3-macosx_10_12_x86_64.whl

Download URL fw_file_rs-0.9.0-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
9272bf26e5abcac2d4143c143196e810b18c809957758d345362795680dca4ab
BLAKE2b-256 checksum
How to use checksums
f905b79227cbd55f00a6100b691b4ae3c84fe5dd8a5ed3500e2c2cb4441d0fe6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Security for fw-file-rs 0.9.0

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