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

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.1
File Size Uploaded Provenance Actions
fw_file_rs-0.9.1.tar.gz 248.3 kB Without provenance Details for fw_file_rs-0.9.1.tar.gz

Built distributions (wheels)

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

Total release size: 19.0 MB

Release files / fw_file_rs-0.9.1.tar.gz

Download URL fw_file_rs-0.9.1.tar.gz
Size 248.3 kB
Tags Source
SHA-256 checksum
How to use checksums
12d72da0c21f716a9e305b562329ebb686bb0ca448c70ae81880b151c087d6a7
BLAKE2b-256 checksum
How to use checksums
57d4b3246610586d93ab92128bf27f105d6fd0f9ad9ac1e9c88cb275e992d447
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.1-cp311-abi3-win_amd64.whl

Download URL fw_file_rs-0.9.1-cp311-abi3-win_amd64.whl
Size 2.4 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
cf72a04a4795def0a86b768cc077fbae0b44c163f03d5d6832020cbc6e27f23f
BLAKE2b-256 checksum
How to use checksums
b61861ae09c2be5297fd6f2eb00c2cfd59abb0b8c16796822b00f1c12282679a
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.1-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL fw_file_rs-0.9.1-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
b00029aa9dc77f046e3ea10296b61d0d2452b6b04cfa71bf2cb9fd42c6c0b8d1
BLAKE2b-256 checksum
How to use checksums
f90887fca59f6fde083b3fab1c661890aad1ea7057629754c18cc8ea2266eb06
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.1-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL fw_file_rs-0.9.1-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
b6d07608d983eabdc59e85a768457fa40c1af54f2e130a9ccd48e9c8eb47abed
BLAKE2b-256 checksum
How to use checksums
18f7b5ee3404e2d73d133a6ee098b234c4587110c978fc645243fefd3cba5bc5
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.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fw_file_rs-0.9.1-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
8ac4d95c6604d6b77a66f44b1c772a7e52bb663cbae3a2c64c9177031c048190
BLAKE2b-256 checksum
How to use checksums
2be800956b69187185535d05373f9376472e9a394c8eed650f168971c6a43521
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.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL fw_file_rs-0.9.1-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
de5ab3d7bb1912da6384b63a559404f28f754b81971457c2ab59409237b524ad
BLAKE2b-256 checksum
How to use checksums
df5346429bf233ba12b298c3fa64bb25d1e636a8989fafd66c5cead3d8a70a61
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.1-cp311-abi3-macosx_11_0_arm64.whl

Download URL fw_file_rs-0.9.1-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
08df34ebb4692df767852daf359bb70bb2a4729ec5db655cb2d9af382f955d10
BLAKE2b-256 checksum
How to use checksums
974cd809d370f97113722d3462d87a5520c47245663347d1b163a922d7e8e10e
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.1-cp311-abi3-macosx_10_12_x86_64.whl

Download URL fw_file_rs-0.9.1-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
44499c7b1e843602767f54965f3cc10b86017ff2f81f441aea29f0c423ef7339
BLAKE2b-256 checksum
How to use checksums
f9f8994be59c47404f9fa6bf51827f9c53022e4884b9960858493bbe96318a86
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.1

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