Git Product home page Git Product logo

mlab-vis-api's Introduction

MLAB VIS API

What

Python Flask server connected to Bigtable to serve up data needed for MLab Visualization.

Install

Required packages can be installed via:

pip install -r requirements.txt

Suggestion: Have a conda environment active before installing packages.

Run

Start Flask server via

python main.py

Deploy

We can deploy to flexibe App Engine!

To deploy to app engine, run this simple command:

make deploy

Well, its not really that simple. For this to work, it requires a few things:

1 - access to your Google Service Account JSON file. It currently looks for it in:

../mlab-keys/mlab-cred.json

So ensure that directory and file is present.

2 - copies of the bigtable config files. It looks for them in:

../mlab-vis-pipeline/dataflow/data/bigtable/

You can use make prepare to copy the appropriate config files from the pipeline to the api.

So make sure they are present and up-to-date

3 - the gcloud command line tool.

Currently, gcloud app deploy is used to deploy. Ensure you have this tool installed and configured properly.

The app will be deployed and accessible from:

http://mlab-api-dot-mlab-oti.appspot.com/

The API is documented at this url as well.

Testing

Test requirements are stored in a separate requirements-test.txt file.

(So that the deploy code does not need to download these additional requirements).

Install with:

pip install -r requirements-test.txt

Then run tests with:

make test

code

This code depends heavily on the Flask-RESTPlus package.

It uses the google api python client for communicating with BigTable.

mlab-vis-api's People

Contributors

vlandham avatar pbeshai avatar

Watchers

 avatar James Cloos 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.