A collection of scripts to create, read, update, list, and delete data through CWMS Data API (CDA) and other commonly used API in the US Army Corps of Engineers water management. CWMS-CLI wraps these API in a friendly to use terminal based interface.
- 📖 Read the docs: https://cwms-cli.readthedocs.io/en/latest/
pip install cwms-cliNote: You may need to run python -m pip install cwms-cli if PIP is not in your path.
pip install cwms-cli --upgradeOr as of version 0.3.0+
cwms-cli updateTo install a specific version:
cwms-cli update --target-version 0.7.1 --yesView the help in terminal:
cwms-cli --helpfrom cwmscli.usgs.getusgs_cda import getusgs_cda
from cwmscli.usgs.getusgs_measurements_cda import getusgs_measurements_cda
from cwmscli.usgs.getUSGS_ratings_cda import getusgs_rating_cdaThe repository includes a Linux/Python 3.12 development container exercised by a dedicated CI job. Open the repository with the VS Code Dev Containers extension, or use the Dev Container CLI:
devcontainer up --workspace-folder .
devcontainer exec --workspace-folder . poetry run pytest -qThe container installs project dependencies with Poetry and uses
/home/vscode/.venv, so it does not reuse a host operating system's .venv.
Poetry itself is kept in a separate /opt/poetry environment. Use the container
for changes involving time zones, paths, native libraries, or other
operating-system-dependent behavior. Standard Python 3.9 and Python 3.12
installations remain covered by the existing CI matrix.