A Flask-based web application that allows users to search data from an Excel file in real time. Features a clean and modern UI with a responsive layout and interactive elements.
Before you begin, ensure you have the following installed:
- Python 3.7 or higher
- pip β Python package installer
- Virtualenv (optional but recommended)
excel-search-app/
βββ app.py
βββ templates/
β βββ index.html
βββ static/
β βββ style.css (optional if not using inline styles)
βββ data/
β βββ glossary.xlsx
βββ requirements.txt
βββ README.md
git clone https://github.com/your-username/excel-search-app.git
cd excel-search-app
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
Place your glossary.xlsx
file inside the data/
directory.
python app.py
Visit http://127.0.0.1:5000
in your browser to use the app.
- Python (Flask) β for backend server logic
- HTML, CSS, JavaScript β for frontend UI
- Pandas β for reading and filtering Excel data
- Jinja2 β for template rendering in Flask
- π Responsive search form
- π Stylish table with hover effects and animations
- π¨ Modern gradient background using theme colors:
#CADCFC
,#8AB6F9
,#00246B
- β³ Loading spinner for search feedback
- π« "No results found" alert
- π§Ύ Footer with source code link
- π± Mobile responsive layout
flask
pandas
openpyxl
from flask import Flask, render_template, request
import pandas as pd
app = Flask(__name__)
df = pd.read_excel('data/glossary.xlsx')
@app.route('/', methods=['GET', 'POST'])
def index():
query = request.form.get('search', '')
if query:
results = df[df.apply(lambda row: row.astype(str).str.contains(query, case=False).any(), axis=1)].to_dict(orient='records')
else:
results = []
return render_template('index.html', query=query, results=results)
if __name__ == '__main__':
app.run(debug=True)
- Pagination for large Excel datasets
- Option to upload and parse different Excel files
- Column-specific search functionality
Design & Code by: [Keval Ravani](
A Flask-based web application that allows users to search data from an Excel file in real time. Features a clean and modern UI with a responsive layout and interactive elements.
Before you begin, ensure you have the following installed:
- Python 3.7 or higher
- pip β Python package installer
- Virtualenv (optional but recommended)
excel-search-app/
βββ app.py
βββ templates/
β βββ index.html
βββ static/
β βββ style.css (optional if not using inline styles)
βββ data/
β βββ glossary.xlsx
βββ requirements.txt
βββ README.md
git clone https://github.com/your-username/excel-search-app.git
cd excel-search-app
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
Place your glossary.xlsx
file inside the data/
directory.
python app.py
Visit http://127.0.0.1:5000
in your browser to use the app.
- Python (Flask) β for backend server logic
- HTML, CSS, JavaScript β for frontend UI
- Pandas β for reading and filtering Excel data
- Jinja2 β for template rendering in Flask
- π Responsive search form
- π Stylish table with hover effects and animations
- π¨ Modern gradient background using theme colors:
#CADCFC
,#8AB6F9
,#00246B
- β³ Loading spinner for search feedback
- π« "No results found" alert
- π§Ύ Footer with source code link
- π± Mobile responsive layout
flask
pandas
openpyxl
from flask import Flask, render_template, request
import pandas as pd
app = Flask(__name__)
df = pd.read_excel('data/glossary.xlsx')
@app.route('/', methods=['GET', 'POST'])
def index():
query = request.form.get('search', '')
if query:
results = df[df.apply(lambda row: row.astype(str).str.contains(query, case=False).any(), axis=1)].to_dict(orient='records')
else:
results = []
return render_template('index.html', query=query, results=results)
if __name__ == '__main__':
app.run(debug=True)
- Pagination for large Excel datasets
- Option to upload and parse different Excel files
- Column-specific search functionality