Skip to content

Instantly share code, notes, and snippets.

View hirolovesbeer's full-sized avatar

Hiroshi hirolovesbeer

View GitHub Profile
@hirolovesbeer
hirolovesbeer / simple_python_datasource.py
Created July 24, 2017 02:56 — 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'