How to build a data source to access from flask app?

Raj

I am trying to build a flask app, the purpose of which is to act as a dashboard.

I am fairly new to flask and python & have been trying to build by following online tutorials.

The basic front end is completed. Now, I need to provide a query from the front end which should match with a value in the data source.

My data should be in the following way:

Query1 -Functionality1 - int value
        Functionality2 - sub_FunctionalityA - int value
                         sub_FunctionalityB - int value
                         sub_FunctionalityC - int value
                         sub_FunctionalityD - int value
        Functionality3 - int value

Query2 -Functionality4 - int value
        Functionality5 - sub_FunctionalityE - int value
                         sub_FunctionalityF - int value
        Functionality6 - int value

Query3 -Functionality7 - int value
        Functionality8 - sub_FunctionalityG - int value
                         sub_FunctionalityH - int value
        Functionality9 - int value

(Sorry for the bad representation. Didn't know how else I could do better)

So, when I search for 'Query1' from GUI, I want a data source which would return the values under 'Query1'. I need to pass these 'int values' to a module which would return a string, that has to be printed in the web page.

I am not sure about the data source format to be used here. Based on what I searched, I could use database tables (I am very new to these concepts) or save these values in files or create a dynamic JSON file which can be parsed to get values.

Could someone help me by pointing to a procedure to start creating a data source?

Raj

After searching and analyzing the available options, I have decided to use JSON format for storing the required data.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Build Android from Source - Add Prebuilt App with Shared Library

From Dev

How to return data from a MySQL query in a Flask app?

From Dev

Access Skype db from data/app location

From Dev

Build HikariCP from source

From Dev

How do I access CSV data from Google App Engine?

From Dev

How to build Chameleon bootloader from SVN source?

From Dev

How to build a .deb file for CMake from source?

From Dev

Access to Spark from Flask app

From Dev

Hide source code from build executable in electron-app

From Dev

How do I build libcurl from source?

From Dev

How to Access type="file" Input From Flask App

From Dev

How to build Chromium from source on OpenBSD?

From Dev

How do I build libcurl from source?

From Dev

How do I build Unity from source?

From Dev

How to access data from callback

From Dev

Fullcalendar js how to build from source

From Dev

How to build Chameleon bootloader from SVN source?

From Dev

Access data from SharePoint-hosted app

From Dev

How to access data from GMemoryOutputStream

From Dev

How do I build Tmux from source without root access with a custom-built libevent 2.1?

From Dev

How to build the GDB documentation from source?

From Dev

Hide source code from build executable in electron-app

From Dev

How to build Compiz from source?

From Dev

How to build Firefox from 4.0 source and optimize it?

From Dev

How to build gnuradio without the documentation (from source)

From Dev

Loading data from json in Flask app

From Dev

How to access html data in python flask

From Dev

How to access fields with special characters from _source?

From Dev

How to build Android Bluetooth server app handling data sent from Raspberry Pi using pybluez

Related Related

HotTag

Archive