Skip to content

ctxmc/hidrodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

323 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Documentation

About

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

Topics

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Contributors

Languages