-
Notifications
You must be signed in to change notification settings - Fork 14
/
stout.py
39 lines (31 loc) · 908 Bytes
/
stout.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
'''
distill: This package contains a flask app RESTful api for distill
This flask app exposes some restful api endpoints for querying User-ALE.
Very similar to Lucene syntax for basic query operations.
Copyright 2016, The Charles Stark Draper Laboratory
Licensed under Apache Software License.
'''
from distill import app
import sqlite3
import pandas as pd
class Stout ():
conn = None
cursor = None
"""
Parse master answer table into readable/queryable format
"""
def parse (f):
pass
def connect ():
# Load Configurations
app.config.from_pyfile('config.cfg')
db = app.config ['SQLITEDB']
conn = sqlite3.connect (db)
cursor = conn.cursor ()
def lookup (topic='SYS_IND_SESS_'):
cursor.execute ('SELECT ' + topic + ' FROM stout')
def operational_task (sessionID=''):
pass
# Look up session ID : tasknum in DB
# Determine if performing task1 or task2
# Add new column OT