Giter Site home page Giter Site logo

vnshanmukh / nowcasting_api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openclimatefix/uk-pv-national-gsp-api

0.0 0.0 0.0 232 KB

API for hosting nowcasting solar predictions

License: MIT License

Python 51.63% Dockerfile 1.54% Jupyter Notebook 46.83%

nowcasting_api's Introduction

Nowcasting API

All Contributors

codecov

API for hosting nowcasting solar predictions. Will just return 'dummy' numbers until about mid-2022!

We use FastAPI.

Documentation

Documentation can be viewed at /docs. This is automatically generated from the code.

Setup and Run

This can be done it two different ways: With Python or with Docker.

Python

Create a virtual env

python3 -m venv ./venv
source venv/bin/activate

Install Requirements and Run

pip install -r requirements.txt
cd src && uvicorn main:app --reload

Local pytest

To run local pytests you need to

  1. add src to python path export PYTHONPATH=$PYTHONPATH:./src
  2. run pytests: pytest

Docker

  1. Make sure docker is installed on your system.
  2. Use docker-compose up in the main directory to start up the application.
  3. You will now be able to access it on http://localhost:80

Development

We use pre-commit to manage various pre-commit hooks. All hooks are also run as Actions when code is pushed to GitHub.

You can run the formatters and linters locally. To do that:

  1. Install pre-commit
  2. Check the install worked via pre-commit --version
  3. Install the git hooks script via pre-commit install

Deployment

This API is temporarily deployed on AWS Elastic Beanstalk. We will move it to a more stable service once the API matures.

If you want to deploy a new release, then please adjust the version in docker-compose.yml.

eb init
eb deploy --message="Add message here"

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


Peter Dudfield

๐Ÿ’ป

Mohammed Faisal

๐Ÿ’ป

Bodale Denis

๐Ÿ’ป

Souhit Dey

๐Ÿ’ป

Flo

๐Ÿ’ป

Shanmukh

๐Ÿ’ป

This project follows the all-contributors specification. Contributions of any kind welcome!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.