updated config

This commit is contained in:
2026-06-14 16:49:20 +05:30
parent 6ec74f1c64
commit 78887017a0
4 changed files with 114 additions and 12 deletions
+3 -3
View File
@@ -176,7 +176,7 @@ class UPIParser:
by_type[txn_type]["count"] += 1
by_type[txn_type]["amount"] += amt
# Convert Decimal string
# Convert Decimal → string
by_status_final = {
k: {"count": v["count"], "amount": f"{v['amount']:.2f}"}
for k, v in by_status.items()
@@ -257,9 +257,9 @@ def print_summary(summary: Dict):
# -------------------------
if __name__ == "__main__":
file_path = r"C:\Users\2780475\Desktop\Test\TUMLUK_31052026_8C_UPI.txt.gz"
file_path = r"C:\Users\2780475\Desktop\upi_file_based\TUMLUK_05062026_8C_UPI.txt"
parser = UPISwitchParser(file_path)
parser = UPIParser(file_path)
transactions, metadata, summary = parser.parse()