Skip to content

A project aiming at delevering tools for visualisation and analysis of Barcelona rainfall data. Data is retrieved from there: https://opendata-ajuntament.barcelona.cat/data/en/dataset/precipitacio-hist-bcn.

License

Notifications You must be signed in to change notification settings

paul-florentin-charles/bcn-rainfall-models

Repository files navigation

bcn-rainfall-models

License: MIT coverage badge Ruff MyPy

🚧 Work In Progress 🚧

Requirements

  • Python 3.12
  • Pip
  • Coverage.py / Pytest (coverage, tests)

Get started

  1. Clone repository
  2. Install dependencies
  3. Execute app.py to run FastAPI with Uvicorn
  4. Open Swagger UI

Linux

git clone https://github.com/paul-florentin-charles/bcn-rainfall-models.git
cd bcn-rainfall-models
pip install -r requirements.txt
python app.py

Windows

git clone https://github.com/paul-florentin-charles/bcn-rainfall-models.git
cd bcn-rainfall-models
python -m pip install -r requirements.txt
python app.py

Coverage

Linux

coverage run -m pytest tst
coverage report

Windows

python -m coverage run -m pytest tst
python -m coverage report