statement-parser 0.0.12__tar.gz → 0.0.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {statement_parser-0.0.12/statement_parser.egg-info → statement_parser-0.0.14}/PKG-INFO +3 -2
- {statement_parser-0.0.12 → statement_parser-0.0.14}/pyproject.toml +4 -3
- {statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser/Bank.py +1 -1
- {statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser/banks/KotakDebit.py +1 -3
- {statement_parser-0.0.12 → statement_parser-0.0.14/statement_parser.egg-info}/PKG-INFO +3 -2
- {statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser.egg-info/requires.txt +2 -1
- {statement_parser-0.0.12 → statement_parser-0.0.14}/LICENSE +0 -0
- {statement_parser-0.0.12 → statement_parser-0.0.14}/README.md +0 -0
- {statement_parser-0.0.12 → statement_parser-0.0.14}/setup.cfg +0 -0
- {statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser/Transaction.py +0 -0
- {statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser/__init__.py +0 -0
- {statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser/banks/HdfcCredit.py +0 -0
- {statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser/banks/HsbcCredit.py +0 -0
- {statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser/banks/HsbcDebit.py +0 -0
- {statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser/banks/IciciCredit.py +0 -0
- {statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser/banks/IciciDebit.py +0 -0
- {statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser/banks/Wallet.py +0 -0
- {statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser.egg-info/SOURCES.txt +0 -0
- {statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser.egg-info/dependency_links.txt +0 -0
- {statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: statement_parser
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.14
|
|
4
4
|
Summary: Bank Statement Parser is a Python library designed to parse and normalize transaction data from various bank statement formats ( CSV, Excel, etc.) into a consistent and easy-to-use Pandas DataFrame. It supports multiple banks and file formats, making it a versatile tool for financial data analysis.
|
|
5
5
|
Author-email: Khuzema Challawala <khuzema.ac@gmail.com>
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -13,11 +13,12 @@ Requires-Dist: pandas>=2.2.3
|
|
|
13
13
|
Requires-Dist: numpy>=2.0.2
|
|
14
14
|
Requires-Dist: xlrd>=2.0.1
|
|
15
15
|
Requires-Dist: openpyxl>=3.1.5
|
|
16
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
16
17
|
Provides-Extra: dev
|
|
17
18
|
Requires-Dist: pytest>=8.3.4; extra == "dev"
|
|
18
19
|
Requires-Dist: pytest-cov>=6.0.0; extra == "dev"
|
|
19
20
|
Requires-Dist: flake8>=7.1.2; extra == "dev"
|
|
20
|
-
Requires-Dist: sphinx
|
|
21
|
+
Requires-Dist: sphinx; extra == "dev"
|
|
21
22
|
Dynamic: license-file
|
|
22
23
|
|
|
23
24
|
# Bank Statement Parser
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "statement_parser"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.14"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Khuzema Challawala", email="khuzema.ac@gmail.com" },
|
|
10
10
|
]
|
|
@@ -20,7 +20,8 @@ dependencies = [
|
|
|
20
20
|
"pandas>=2.2.3",
|
|
21
21
|
"numpy>=2.0.2",
|
|
22
22
|
"xlrd>=2.0.1",
|
|
23
|
-
"openpyxl>=3.1.5"
|
|
23
|
+
"openpyxl>=3.1.5",
|
|
24
|
+
"python-dateutil>=2.8.2",
|
|
24
25
|
]
|
|
25
26
|
|
|
26
27
|
[project.optional-dependencies]
|
|
@@ -28,5 +29,5 @@ dev = [
|
|
|
28
29
|
"pytest>=8.3.4",
|
|
29
30
|
"pytest-cov>=6.0.0",
|
|
30
31
|
"flake8>=7.1.2",
|
|
31
|
-
"sphinx
|
|
32
|
+
"sphinx"
|
|
32
33
|
]
|
|
@@ -86,7 +86,7 @@ class Bank(ABC):
|
|
|
86
86
|
try:
|
|
87
87
|
# Adjust for your date format
|
|
88
88
|
# check if date is less than 1990
|
|
89
|
-
parsed_date=parser.parse(date_str, dayfirst=True)
|
|
89
|
+
parsed_date = parser.parse(date_str, dayfirst=True)
|
|
90
90
|
if parsed_date.year < 1900:
|
|
91
91
|
return None
|
|
92
92
|
return parsed_date
|
|
@@ -71,9 +71,7 @@ class KotakDebit(Bank):
|
|
|
71
71
|
df[["Sl. No."]] = df[["Sl. No."]].astype(int)
|
|
72
72
|
df["Amount"] = df["Amount"].str.replace(",", "")
|
|
73
73
|
df[["Amount"]] = df[["Amount"]].astype(float)
|
|
74
|
-
df["Transaction Date"] =
|
|
75
|
-
df["Transaction Date"], format="%d-%m-%Y"
|
|
76
|
-
)
|
|
74
|
+
df["Transaction Date"] = df["Transaction Date"].apply(self.parse_date)
|
|
77
75
|
|
|
78
76
|
if df["Sl. No."].max() != len(df):
|
|
79
77
|
raise ValueError("No. of rows does not match")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: statement_parser
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.14
|
|
4
4
|
Summary: Bank Statement Parser is a Python library designed to parse and normalize transaction data from various bank statement formats ( CSV, Excel, etc.) into a consistent and easy-to-use Pandas DataFrame. It supports multiple banks and file formats, making it a versatile tool for financial data analysis.
|
|
5
5
|
Author-email: Khuzema Challawala <khuzema.ac@gmail.com>
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -13,11 +13,12 @@ Requires-Dist: pandas>=2.2.3
|
|
|
13
13
|
Requires-Dist: numpy>=2.0.2
|
|
14
14
|
Requires-Dist: xlrd>=2.0.1
|
|
15
15
|
Requires-Dist: openpyxl>=3.1.5
|
|
16
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
16
17
|
Provides-Extra: dev
|
|
17
18
|
Requires-Dist: pytest>=8.3.4; extra == "dev"
|
|
18
19
|
Requires-Dist: pytest-cov>=6.0.0; extra == "dev"
|
|
19
20
|
Requires-Dist: flake8>=7.1.2; extra == "dev"
|
|
20
|
-
Requires-Dist: sphinx
|
|
21
|
+
Requires-Dist: sphinx; extra == "dev"
|
|
21
22
|
Dynamic: license-file
|
|
22
23
|
|
|
23
24
|
# Bank Statement Parser
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{statement_parser-0.0.12 → statement_parser-0.0.14}/statement_parser.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|