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.
Metadata
Release files for hecdss-rs 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hecdss_rs-0.1.0-cp311-cp311-win_amd64.whl | CPython 3.11 | CPython 3.11 | Windows x86-64 | Details |
Release files / hecdss_rs-0.1.0-cp311-cp311-win_amd64.whl
| Download URL | hecdss_rs-0.1.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 284.2 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
542e6b43ab810654f34c3b063f60559fbc0e5dced4271edb85ebe58e9df11be7
|
|
BLAKE2b-256 checksum How to use checksums |
ef5caa7cdb0888161eff0b82226847d6694ac73fb119b559367eae38f22fccfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.12.6
|