riyaz489 / mnrega

Python terminal app with Unit-Testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

'MGNREGA' is an console application for mgnrega projects and its member management
it consist of three roles:

1. Block Development Officer (Admin)
2. Gram Panchayat Member
3. Member

Download

cd MGNREGA_HOME
git clone https://github.com/Riyazuddin489/mgnrega.git
cd MGNREGA

Activate your Python virtual environment, and download the required libraries

source venv/bin/activate
export PYTHONPATH = '.'
pip install -r requirements.txt

How to run app on local laptop

Follow the guide here to ensure you run correct main file

python mgnrega/login.py

To connect to your local sqlite:

MGNREGA> cd data
MGNREGA/data>  sqlite3 mgnrega.db
MGNREGA/data> select * from <your_table> (or describe <your_table>)

Database schema is created once via the file data/schema_script.sql

Key Entities in Code

+-- common
|  +--connect_db.py
|  +--constants.py
|  +--helper.py
|  +--password_encryption.py

+-- data
|  +--mgnrega.py
|  +--schema_script.sql

+-- mgnrega
|  +--bdo.py
|  +--config.yaml
|  +--gpm.py
|  +--login.py
|  +--member.py

 

About

Python terminal app with Unit-Testing


Languages

Language:Python 95.1%Language:HTML 4.3%Language:C 0.3%Language:JavaScript 0.2%Language:CSS 0.1%Language:Shell 0.0%