Skip to main content

rawblock-io

PyPI version Python License OS

CI codecov

Downloads total Downloads/month Downloads/week

Raw block device I/O with automatic strategy fallback and cross-platform device/mount point resolution.

Features

  • Pluggable I/O strategies — tries direct access first, falls back through loop-device backing file to sudo dd
  • DirectIOStrategy — os.pread/os.pwrite on regular files and accessible block devices
  • BackingFileStrategy — resolves loop-device backing files (/sys/block, losetup, or hdiutil on macOS)
  • DDStrategy — sudo dd fallback for physical block devices
  • resolve_device — find the underlying block device for any file path (Linux /proc/partitions + /sys/dev/block, macOS hdiutil)
  • resolve_mount_point — find the mount point for any file path (Linux findmnt, macOS df)

Quick start

from rawblock_io import RawBlockIO, resolve_device

io = RawBlockIO()
device = resolve_device('/some/file')
data = io.read(device, 0, 512)  # read first sector

License

GPL-3.0-only

Metadata

Release files for rawblock-io 0.2.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 rawblock-io 0.2.0
File Size Uploaded Provenance Actions
rawblock_io-0.2.0.tar.gz 23.3 kB With provenance Details for rawblock_io-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rawblock-io 0.2.0
File Interpreter ABI Platform Actions
rawblock_io-0.2.0-py3-none-any.whl Python 3 none any Details for rawblock_io-0.2.0-py3-none-any.whl

Total release size: 44.9 kB

Release files / rawblock_io-0.2.0.tar.gz

Download URL rawblock_io-0.2.0.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7b17d9f60a7fb1586dce97dceeaacfbd52c64ecb976eeaa1e735577f24de4df9
BLAKE2b-256 checksum
How to use checksums
95af5b8a4a86bea5a21a72212f0699aef7b92ef4e2bd89b3a46664e663909fc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 14, 2026.

Transparency log

Release files / rawblock_io-0.2.0-py3-none-any.whl

Download URL rawblock_io-0.2.0-py3-none-any.whl
Size 21.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c819b2525952c1f33209721a906e30367285b4551f9ddad866043cadef64118
BLAKE2b-256 checksum
How to use checksums
525e09dd0f9f53ac9bd21e09ab75004aacbf58bcc001f08a9f1923d1b76dfd46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 14, 2026.

Transparency log

Security for rawblock-io 0.2.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rawblock_io-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 14, 2026.

Transparency log

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.2.0 This release

2 release files Full 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