An python application tool to request and sync data from ANA Hidro WebServices.
- Requires sqlite3.
- Setup your python enviroment and install dependencies:
pip install .usage: hidrodb [-h] [--hidro HIDRO] [--client CLIENT]
[--max-workers MAX_WORKERS] [--batch-size BATCH_SIZE]
[--log-level {TRACE,VERBOSE,DEBUG,INFO,WARNING,ERROR}]
[--skip-series-jobs]
[--skip-for [{Chuvas,ResumoDescarga,Sedimentos,Cotas,Vazoes,Granulometria,CurvaDescarga,QualAgua,PerfilTransversal} ...]]
[--stations [STATIONS ...]]
options:
-h, --help show this help message and exit
--hidro HIDRO Path to Hidro Database file
--client CLIENT Path to Client Database file
--max-workers MAX_WORKERS
Maximum number of worker threads
--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
--skip-series-jobs Skip all series jobs when present
--skip-for [{Chuvas,ResumoDescarga,Sedimentos,Cotas,Vazoes,Granulometria,CurvaDescarga,QualAgua,PerfilTransversal} ...]
Skip job creation and requesition for the given
choices
--stations [STATIONS ...]
Stations codes to request data