The Ration Manager is a Flask web application designed to manage recipient records for ration distribution. It allows users to add, update, delete, and view records, as well as upload data from Excel files and NIC images. This application is built using Flask, SQLAlchemy, and Tesseract OCR for image processing.
- User authentication with Flask-Login
- CRUD operations for recipient records
- Upload and process data from Excel files
- Upload NIC images and extract text using OCR
- Manual input of recipient data
- Activation and deactivation of members
- Filter records based on various criteria
- Delete duplicate records
- Python 3.x
- Flask
- Flask-SQLAlchemy
- Flask-Login
- Pandas
- Pillow
- Pytesseract (Tesseract OCR)
- SQLite
-
Clone the repository:
git clone https://github.com/ijlalkhanzada/ration-manager.git
-
Navigate to the project directory:
cd ration-manager
-
Install the required packages:
pip install -r requirements.txt
-
Set up Tesseract OCR:
- Install Tesseract OCR on your system. Installation guide.
- Make sure to configure the Tesseract path in your code if necessary.
-
Create the database:
- The application will automatically create the necessary database tables when it runs for the first time.
-
Run the application:
python app.py
-
Access the application in your web browser at
http://127.0.0.1:5000
.
- Login: Use the username and password to log in (default: admin/password).
- Display Records: View all recipient records, filter them, or add new records.
- Upload Data: Upload Excel files or NIC images to populate the database with recipient data.
- Manage Records: Edit, activate, deactivate, or delete recipient records as needed.
- Duplicate Records: Remove duplicate entries from the records.
Contributions are welcome! Please feel free to submit issues or pull requests to improve the application.
This project is licensed under the MIT License - see the LICENSE file for details.
- Flask - Micro web framework for Python.
- SQLAlchemy - SQL toolkit and Object-Relational Mapping (ORM) system for Python.
- Tesseract OCR - Open-source OCR engine.