hydromodpy.core.state.paths#
XDG-compliant path helpers and workspace path utilities.
Cache directory: binaries (solver downloads, http_cache). State directory: index.duckdb, locks, audit.log. Override env vars: HMP_CACHE_HOME, HMP_STATE_HOME, HMP_BIN.
Workspace layout constants and portable-path helpers also live here so every layer (catalog writes, global index, CLI) shares a single source of truth without depending on a higher layer.
Module attributes
|
Per-project catalog DuckDB file living at |
|
Per-project HydroModPy config file living at |
|
Workspace-wide metadata file living at |
|
Machine-wide global index file living under |
Functions
|
Return platform cache dir (HMP_CACHE_HOME override). |
|
Decode an encoded portable path back to an absolute |
|
Encode |
|
Walk up from |
|
Return the absolute path of a workspace-relative POSIX string. |
|
Return True when |
|
Resolve a portable |
|
Return platform state dir (HMP_STATE_HOME override). |
|
Return |
|
Return the |