Skip to main content

ras-commander-fast-hdf

The default HDF engine of ras-commander: a native (Rust) reader for HEC-RAS HDF files.

ras-commander's Hdf* classes read plan results, geometry, terrain and land-cover HDF files through this engine. Results are identical to the h5py reference implementation (values, dtypes, columns, index, CRS, attributes and exceptions). Large reads are faster: 2D cell polygons 4–19× depending on mesh size, and mesh time series 2–8× on large meshes. Small reads are up to a few milliseconds slower. In the default auto mode, any read the engine refuses uses h5py.

Install

ras-commander installs this package automatically on Windows x64, Linux x64 and macOS arm64 (ras-commander 0.108.0 and later install 0.2.x; 0.107.1 installs 0.1.x), so this is enough:

pip install ras-commander

With ras-commander 0.107.0, install both: pip install ras-commander ras-commander-fast-hdf.

from ras_commander import fast_hdf
fast_hdf.available()   # True

Wheels: Windows x64, Linux x64 (manylinux2014, glibc 2.17 or later; and musllinux_1_2 for Alpine) and macOS arm64, CPython 3.10 or later. No HDF5 C library or Rust toolchain is needed to install. Windows and Linux are qualified against HEC-RAS result files; macOS builds and passes the smoke tests but has not been qualified. On other platforms ras-commander does not install the engine and uses h5py for every read; the source distribution builds the engine there but needs Rust.

Engine modes

Choose the mode with RAS_COMMANDER_FAST_HDF (h5py turns the native engine off):

Value Behavior
auto (default) Native where it is qualified; h5py whenever the engine refuses a read.
h5py Never use the native engine.
native Native or raise FastHdfError; for testing and qualification.

License

MIT license. The wheel includes the licenses of every bundled crate in THIRD-PARTY-NOTICES.md.

ras-commander-fast-hdf is an independent open source project. HEC-RAS is developed by the U.S. Army Corps of Engineers Hydrologic Engineering Center (HEC). This project is not affiliated with, endorsed by, or supported by HEC or USACE.

Metadata

Release files for ras-commander-fast-hdf 0.2.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 ras-commander-fast-hdf 0.2.2
File Size Uploaded Provenance
ras_commander_fast_hdf-0.2.2.tar.gz 729.7 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for ras-commander-fast-hdf 0.2.2
File
ras_commander_fast_hdf-0.2.2-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
ras_commander_fast_hdf-0.2.2-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details
ras_commander_fast_hdf-0.2.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details
ras_commander_fast_hdf-0.2.2-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 27.3 MB

Release files / ras_commander_fast_hdf-0.2.2.tar.gz

Download URL ras_commander_fast_hdf-0.2.2.tar.gz
Size 729.7 kB
Tags Source
SHA-256 checksum
How to use checksums
015c356cbea3ca2a0b9feacb75b9162aedfad3461cae34f156249f521dc6538b
BLAKE2b-256 checksum
How to use checksums
3c4f2eb1e05b0988164e7ecb60f23684cd2d31cd9723fcc735c418088e8939aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / ras_commander_fast_hdf-0.2.2-cp310-abi3-win_amd64.whl

Download URL ras_commander_fast_hdf-0.2.2-cp310-abi3-win_amd64.whl
Size 6.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
40924b1a9c26c81918c8fb34a86a7c6b480d24891d1fbf43f11d21859d26471d
BLAKE2b-256 checksum
How to use checksums
8cc44548441804a56ba0fdb178e97ae4e5c826e80d80702c117026435b7e9f70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / ras_commander_fast_hdf-0.2.2-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL ras_commander_fast_hdf-0.2.2-cp310-abi3-musllinux_1_2_x86_64.whl
Size 6.6 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
4b15b43e56becfc6d839aff349d49dca4b195a56f061d0b26033f7b8721bb0e6
BLAKE2b-256 checksum
How to use checksums
1ca38f53d529603f554a4d2a0fd793951220c5d67fa15fc837f18d58874d4bbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / ras_commander_fast_hdf-0.2.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ras_commander_fast_hdf-0.2.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 6.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
f1d921eac61c5902f0e59996b013ecf8da4ba2ecd5cbbb00e0836e0b58d9c792
BLAKE2b-256 checksum
How to use checksums
63c81ba95a3407b0947c150400fe9e1bbbd75a1306db5df3e0333ab331d90258
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / ras_commander_fast_hdf-0.2.2-cp310-abi3-macosx_11_0_arm64.whl

Download URL ras_commander_fast_hdf-0.2.2-cp310-abi3-macosx_11_0_arm64.whl
Size 6.5 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cc4402b3889eccb3a57e5b97125fa8be269be7bbc7778131b6a1bacddef6cf8d
BLAKE2b-256 checksum
How to use checksums
9174e03ee8252a510185992735fb4979587e31a8889ae6761bed3cfde6f41627
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for ras-commander-fast-hdf 0.2.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.

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