Skip to content

Instantly share code, notes, and snippets.

View shakefu's full-sized avatar

Jacob Alheid shakefu

  • Consulting
  • Ashland, Oregon
View GitHub Profile
@shakefu
shakefu / simple_python_datasource.py
Created April 9, 2018 21:01 — forked from linar-jether/simple_python_datasource.py
Grafana python datasource - using pandas for timeseries and table data. inspired by and compatible with the simple json datasource
from flask import Flask, request, jsonify, json, abort
from flask_cors import CORS, cross_origin
import pandas as pd
app = Flask(__name__)
cors = CORS(app)
app.config['CORS_HEADERS'] = 'Content-Type'