Giter Site home page Giter Site logo

india-api's Introduction

India API

All Contributors

Defines an API to help with building frontends pertaining to displaying wind and solar data.

Running the service

Configuration

The application is configured via the use of environment variables. Currently there is only one source adaptor so there is nothing to configure.

Using docker

Download the latest image from github container regiimage from github container registry:

$ docker run ghcr.io/openclimatefix/fake-api:latest

Using python(v3.11.x)

Clone the repository, and create a new virtual environment with your favorite environment manager. Install the dependencies with

$ pip install -e .

The service is then runnable via the command india-api. You should see the following output:

INFO:     Started server process [87312]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)

The API should then be accessible at http://localhost:8000, and the docs at http://localhost:8000/docs.

Development

Clone the repository, and create a new environment with your favorite environment manager. Install all the dependencies with

pip install -e ".[all]"

You can run the service with the command india-api. Changes will be hot-reloaded by the server.

Running Tests

Make sure that you have pytest and testcontainers installed.

Then run the tests using

pytest

Known Bugs

There may be some issues when installing this with windows.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Rahul Maurya
Rahul Maurya

💻
Dubraska Solórzano
Dubraska Solórzano

💻

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

india-api's People

Contributors

devsjc avatar peterdudfield avatar aryanbhosale avatar allcontributors[bot] avatar braddf avatar confusedmatrix avatar dubraskas avatar rahul-maurya11b avatar

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.