Pure Rust HEC-DSS version 7 file reader/writer with Python bindings
Project description
dss-python
PyO3 native Python module for HEC-DSS version 7 files. Zero C library dependency.
Installation
cd crates/dss-python
pip install maturin
maturin build --release
pip install ../../target/wheels/dss_python-*.whl
Quick Start
import hecdss_rs
import numpy as np
with hecdss_rs.DssFile.create("example.dss") as dss:
# Time series
dss.write_ts("/A/B/FLOW/01JAN2020/1HOUR/SIM/",
np.array([100.0, 200.0, 300.0]), "CFS", "INST-VAL")
values = dss.read_ts("/A/B/FLOW/01JAN2020/1HOUR/SIM/") # numpy array
# Catalog with wildcards
entries = dss.catalog(filter="/*/*/FLOW///*/")
# Date conversion
j = hecdss_rs.DssFile.date_to_julian("15MAR2020")
y, m, d = hecdss_rs.DssFile.julian_to_ymd(j)
All Operations
35+ methods covering: text, regular/irregular time series, paired data, arrays, location, grids, delete/undelete, squeeze, copy, aliases, CRC tracking, date utilities, wildcard catalog filtering.
See Python API Reference for complete documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hecdss_rs-0.1.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: hecdss_rs-0.1.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 284.2 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
542e6b43ab810654f34c3b063f60559fbc0e5dced4271edb85ebe58e9df11be7
|
|
| MD5 |
9ee16c1a6479a1ca4107b905b752aa55
|
|
| BLAKE2b-256 |
ef5caa7cdb0888161eff0b82226847d6694ac73fb119b559367eae38f22fccfb
|