ITR model update code

This commit is contained in:
2025-11-30 16:24:49 +05:30
parent 602c87148d
commit d9a86f41a1
33 changed files with 1790 additions and 346 deletions

21
AppCode/Config.py Normal file
View File

@@ -0,0 +1,21 @@
import mysql.connector
import os
class DBConfig:
# Database credentials (can also be read from environment variables)
MYSQL_HOST = os.getenv("MYSQL_HOST", "127.0.0.1")
MYSQL_USER = os.getenv("MYSQL_USER", "root")
MYSQL_PASSWORD = os.getenv("MYSQL_PASSWORD", "root")
MYSQL_DB = os.getenv("MYSQL_DB", "income_tax")
@staticmethod
def get_db_connection():
"""
Returns a MySQL connection object.
"""
return mysql.connector.connect(
host=DBConfig.MYSQL_HOST,
user=DBConfig.MYSQL_USER,
password=DBConfig.MYSQL_PASSWORD,
database=DBConfig.MYSQL_DB
)