Skip to content
cortexmancer edited this page Jun 25, 2026 · 3 revisions

HidroDB

An python application tool to request and sync data from ANA Hidro WebServices.

Setup

  • Requires sqlite3.
  • Setup your python enviroment and install dependencies:
    pip install .

Usage

python hidrodb --help
usage: hidrodb [-h] [--user-id USER_ID] [--password PASSWORD] [--hidro HIDRO] [--client CLIENT] [--max-workers MAX_WORKERS] [--batch-size BATCH_SIZE] [--log-level {TRACE,VERBOSE,DEBUG,INFO,WARNING,ERROR}]

options:
  -h, --help            show this help message and exit
  --user-id USER_ID     User ID for authentication on ANA HidroWebServices
  --password PASSWORD   Password for authentication on ANA HidroWebServices
  --hidro HIDRO         Path to Hidro Database file
  --client CLIENT       Path to Client Database file
  --max-workers MAX_WORKERS
  --batch-size BATCH_SIZE
                        Batch size threshold to write job data on Hidro Database
  --log-level {TRACE,VERBOSE,DEBUG,INFO,WARNING,ERROR}
                        Set logging level

Documentation

Clone this wiki locally