bankstatementparser 0.0.29__tar.gz → 0.0.30__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.
Files changed (62) hide show
  1. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/PKG-INFO +11 -8
  2. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/README.md +6 -4
  3. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/__init__.py +1 -1
  4. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/pyproject.toml +11 -8
  5. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/LICENSE +0 -0
  6. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/LICENSE-APACHE +0 -0
  7. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/LICENSE-MIT +0 -0
  8. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/_amounts.py +0 -0
  9. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/_llm_common.py +0 -0
  10. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/additional_parsers.py +0 -0
  11. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/analytics/__init__.py +0 -0
  12. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/analytics/cash_flow.py +0 -0
  13. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/analytics/common.py +0 -0
  14. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/analytics/models.py +0 -0
  15. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/analytics/patterns.py +0 -0
  16. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/api.py +0 -0
  17. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/api_limits.py +0 -0
  18. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/api_worker.py +0 -0
  19. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/bank_statement_parsers.py +0 -0
  20. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/base_parser.py +0 -0
  21. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/camt_parser.py +0 -0
  22. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/camt_reports.py +0 -0
  23. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/cli.py +0 -0
  24. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/enrichment/__init__.py +0 -0
  25. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/enrichment/account_mapper.py +0 -0
  26. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/enrichment/categorizer.py +0 -0
  27. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/exceptions.py +0 -0
  28. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/export/__init__.py +0 -0
  29. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/export/ledger.py +0 -0
  30. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/export/parquet.py +0 -0
  31. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/field86_parser.py +0 -0
  32. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/forensics.py +0 -0
  33. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/hybrid/__init__.py +0 -0
  34. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/hybrid/evaluation.py +0 -0
  35. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/hybrid/llm_extractor.py +0 -0
  36. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/hybrid/ollama_direct.py +0 -0
  37. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/hybrid/orchestrator.py +0 -0
  38. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/hybrid/pdf_text.py +0 -0
  39. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/hybrid/prompts.py +0 -0
  40. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/hybrid/scanner.py +0 -0
  41. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/hybrid/verification.py +0 -0
  42. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/hybrid/vision.py +0 -0
  43. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/input_validator.py +0 -0
  44. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/pain001_parser.py +0 -0
  45. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/parallel.py +0 -0
  46. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/parsers/__init__.py +0 -0
  47. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/parsers/bai2.py +0 -0
  48. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/parsers/common.py +0 -0
  49. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/parsers/csv_parser.py +0 -0
  50. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/parsers/mt940.py +0 -0
  51. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/parsers/mt942.py +0 -0
  52. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/parsers/ofx.py +0 -0
  53. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/plugins.py +0 -0
  54. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/privacy.py +0 -0
  55. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/py.typed +0 -0
  56. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/reconciliation.py +0 -0
  57. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/record_types.py +0 -0
  58. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/telemetry.py +0 -0
  59. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/transaction_deduplicator.py +0 -0
  60. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/transaction_models.py +0 -0
  61. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/xml_validator.py +0 -0
  62. {bankstatementparser-0.0.29 → bankstatementparser-0.0.30}/bankstatementparser/zip_security.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bankstatementparser
3
- Version: 0.0.29
3
+ Version: 0.0.30
4
4
  Summary: Parse bank statements (CAMT, PAIN.001, MT940, MT942, OFX, BAI2, CSV, and PDF) into unified Transactions with treasury analytics, 2-way reconciliation, PDF forensics, and ledger export.
5
5
  License: Apache-2.0 OR MIT
6
6
  License-File: LICENSE
@@ -29,17 +29,18 @@ Requires-Dist: aiohttp (>=3.14.4) ; (python_version < "3.14") and (extra == "hyb
29
29
  Requires-Dist: certifi (>=2026.10.19) ; extra == "hybrid" or extra == "hybrid-plus" or extra == "hybrid-vision" or extra == "enrichment"
30
30
  Requires-Dist: defusedxml (>=0.7.1,<0.8.0)
31
31
  Requires-Dist: fastapi (>=0.115.0) ; extra == "api"
32
- Requires-Dist: filelock (>=3.20.3,<3.20.4) ; (python_version < "3.14") and (extra == "hybrid" or extra == "hybrid-plus" or extra == "hybrid-vision" or extra == "enrichment")
33
- Requires-Dist: litellm (>=1.83.10) ; (python_version < "3.14") and (extra == "hybrid" or extra == "hybrid-plus" or extra == "hybrid-vision" or extra == "enrichment")
32
+ Requires-Dist: filelock (>=4.2.1) ; (python_version >= "3.11" and python_version < "3.14") and (extra == "hybrid" or extra == "hybrid-plus" or extra == "hybrid-vision" or extra == "enrichment")
33
+ Requires-Dist: litellm (>=1.108.3) ; (python_version >= "3.11" and python_version < "3.14") and (extra == "hybrid" or extra == "hybrid-plus" or extra == "hybrid-vision" or extra == "enrichment")
34
34
  Requires-Dist: lxml (>=5.0)
35
35
  Requires-Dist: openpyxl (>=3.1.5,<4.0.0) ; extra == "excel"
36
+ Requires-Dist: opentelemetry-api (>=1.45.2) ; extra == "api"
36
37
  Requires-Dist: pandas (>=2.3.3,<3.0.0)
37
38
  Requires-Dist: pdfplumber (>=0.11.0) ; (python_version >= "3.11") and (extra == "hybrid-plus")
38
39
  Requires-Dist: pillow (>=13.0.0) ; (python_version >= "3.11") and (extra == "hybrid-plus")
39
40
  Requires-Dist: polars (>=1.32.0,<3) ; extra == "polars"
40
41
  Requires-Dist: pyarrow (>=14.0.0) ; extra == "parquet"
41
42
  Requires-Dist: pydantic (>=2.11.0,<3.0.0)
42
- Requires-Dist: pypdf (>=6.21.2) ; extra == "hybrid" or extra == "hybrid-plus" or extra == "hybrid-vision"
43
+ Requires-Dist: pypdf (>=6.21.3) ; extra == "hybrid" or extra == "hybrid-plus" or extra == "hybrid-vision"
43
44
  Requires-Dist: pypdfium2 (>=4.30.0) ; extra == "hybrid-vision"
44
45
  Requires-Dist: python-multipart (>=0.0.32) ; extra == "api"
45
46
  Requires-Dist: uvicorn (>=0.34.0) ; extra == "api"
@@ -68,7 +69,7 @@ Description-Content-Type: text/markdown
68
69
 
69
70
  <p align="center">
70
71
  <a href="https://github.com/sebastienrousseau/bankstatementparser/actions"><img src="https://img.shields.io/github/actions/workflow/status/sebastienrousseau/bankstatementparser/quality-gates.yml?style=for-the-badge&logo=github" alt="Build" height="28" /></a>
71
- <a href="https://pypi.org/project/bankstatementparser/"><img src="https://img.shields.io/pypi/v/bankstatementparser?style=for-the-badge&color=fc8d62&logo=python&v=0.0.29" alt="PyPI version" height="28" /></a>
72
+ <a href="https://pypi.org/project/bankstatementparser/"><img src="https://img.shields.io/pypi/v/bankstatementparser?style=for-the-badge&color=fc8d62&logo=python&v=0.0.30" alt="PyPI version" height="28" /></a>
72
73
  <a href="https://bankstatementparser.com"><img src="https://img.shields.io/badge/docs-bankstatementparser.com-blue?style=for-the-badge&labelColor=555555&logo=googlechrome" alt="Docs" height="28" /></a>
73
74
  <a href="https://pypi.org/project/bankstatementparser/"><img src="https://img.shields.io/pypi/pyversions/bankstatementparser.svg?style=for-the-badge" alt="Python versions" height="28" /></a>
74
75
  <a href="https://pypi.org/project/bankstatementparser/"><img src="https://img.shields.io/pypi/dm/bankstatementparser.svg?style=for-the-badge" alt="PyPI downloads" height="28" /></a>
@@ -176,9 +177,11 @@ required.
176
177
  > CSV, OFX, QFX, MT940, MT942, BAI2) supports Python **3.10–3.14**. The optional
177
178
  > `[hybrid]`, `[hybrid-plus]`, `[hybrid-vision]`, and
178
179
  > `[enrichment]` extras pull in `litellm`, which currently requires
179
- > **Python <3.14** upstream — on Python 3.14 the LLM extras will
180
- > not install. Pin `Python 3.13` for the full hybrid pipeline;
181
- > upgrade to 3.14 freely if you only need deterministic parsing.
180
+ > **Python <3.14** upstream, and filelock, whose first release
181
+ > without open advisories (4.2.1) dropped 3.10. The LLM extras
182
+ > therefore need Python **3.11–3.13**; on 3.10 or 3.14 they install
183
+ > without `litellm`. Use Python 3.11–3.13 for the full hybrid
184
+ > pipeline; any supported version works for deterministic parsing.
182
185
  > The `pdfplumber` engine in `[hybrid-plus]` needs Python **3.11+**:
183
186
  > it pulls Pillow, whose first release without open advisories
184
187
  > (13.0.0) dropped 3.10, so on 3.10 the extra installs without it.
@@ -19,7 +19,7 @@
19
19
 
20
20
  <p align="center">
21
21
  <a href="https://github.com/sebastienrousseau/bankstatementparser/actions"><img src="https://img.shields.io/github/actions/workflow/status/sebastienrousseau/bankstatementparser/quality-gates.yml?style=for-the-badge&logo=github" alt="Build" height="28" /></a>
22
- <a href="https://pypi.org/project/bankstatementparser/"><img src="https://img.shields.io/pypi/v/bankstatementparser?style=for-the-badge&color=fc8d62&logo=python&v=0.0.29" alt="PyPI version" height="28" /></a>
22
+ <a href="https://pypi.org/project/bankstatementparser/"><img src="https://img.shields.io/pypi/v/bankstatementparser?style=for-the-badge&color=fc8d62&logo=python&v=0.0.30" alt="PyPI version" height="28" /></a>
23
23
  <a href="https://bankstatementparser.com"><img src="https://img.shields.io/badge/docs-bankstatementparser.com-blue?style=for-the-badge&labelColor=555555&logo=googlechrome" alt="Docs" height="28" /></a>
24
24
  <a href="https://pypi.org/project/bankstatementparser/"><img src="https://img.shields.io/pypi/pyversions/bankstatementparser.svg?style=for-the-badge" alt="Python versions" height="28" /></a>
25
25
  <a href="https://pypi.org/project/bankstatementparser/"><img src="https://img.shields.io/pypi/dm/bankstatementparser.svg?style=for-the-badge" alt="PyPI downloads" height="28" /></a>
@@ -127,9 +127,11 @@ required.
127
127
  > CSV, OFX, QFX, MT940, MT942, BAI2) supports Python **3.10–3.14**. The optional
128
128
  > `[hybrid]`, `[hybrid-plus]`, `[hybrid-vision]`, and
129
129
  > `[enrichment]` extras pull in `litellm`, which currently requires
130
- > **Python <3.14** upstream — on Python 3.14 the LLM extras will
131
- > not install. Pin `Python 3.13` for the full hybrid pipeline;
132
- > upgrade to 3.14 freely if you only need deterministic parsing.
130
+ > **Python <3.14** upstream, and filelock, whose first release
131
+ > without open advisories (4.2.1) dropped 3.10. The LLM extras
132
+ > therefore need Python **3.11–3.13**; on 3.10 or 3.14 they install
133
+ > without `litellm`. Use Python 3.11–3.13 for the full hybrid
134
+ > pipeline; any supported version works for deterministic parsing.
133
135
  > The `pdfplumber` engine in `[hybrid-plus]` needs Python **3.11+**:
134
136
  > it pulls Pillow, whose first release without open advisories
135
137
  > (13.0.0) dropped 3.10, so on 3.10 the extra installs without it.
@@ -107,7 +107,7 @@ from .zip_security import (
107
107
  #: so the conformance gate can compare it statically against
108
108
  #: pyproject.toml -- that comparison is the thing that catches drift, and
109
109
  #: a runtime lookup would make the two trivially equal and check nothing.
110
- __version__ = "0.0.29"
110
+ __version__ = "0.0.30"
111
111
 
112
112
  __all__ = [
113
113
  "AnalyticsReport",
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "bankstatementparser"
3
- version = "0.0.29"
3
+ version = "0.0.30"
4
4
  description = "Parse bank statements (CAMT, PAIN.001, MT940, MT942, OFX, BAI2, CSV, and PDF) into unified Transactions with treasury analytics, 2-way reconciliation, PDF forensics, and ledger export."
5
5
  authors = ["Sebastien Rousseau <sebastian.rousseau@gmail.com>"]
6
6
  license = "Apache-2.0 OR MIT"
@@ -39,8 +39,11 @@ pandas = "^2.3.3"
39
39
  defusedxml = "^0.7.1"
40
40
  pydantic = "^2.11.0"
41
41
  polars = {version = ">=1.32.0,<3", optional = true}
42
- litellm = {version = ">=1.83.10", optional = true, python = "<3.14"}
43
- pypdf = {version = ">=6.21.2", optional = true}
42
+ # litellm 1.108.3 is the first release that accepts filelock 4, and the
43
+ # patched filelock needs Python 3.11, so the LLM extras do too.
44
+ litellm = {version = ">=1.108.3", optional = true, python = ">=3.11,<3.14"}
45
+ # CVE-2026-119206 and CVE-2026-119208: pypdf < 6.21.3.
46
+ pypdf = {version = ">=6.21.3", optional = true}
44
47
  # pdfplumber pulls Pillow; the first Pillow without its open advisories
45
48
  # (13.0.0) needs Python 3.11, so hybrid-plus does too.
46
49
  pdfplumber = {version = ">=0.11.0", optional = true, python = ">=3.11"}
@@ -54,10 +57,10 @@ pyarrow = {version = ">=14.0.0", optional = true}
54
57
  pillow = {version = ">=13.0.0", optional = true, python = ">=3.11"}
55
58
  certifi = {version = ">=2026.10.19", optional = true}
56
59
  aiohttp = {version = ">=3.14.4", optional = true, python = "<3.14"}
57
- # 3.20.3 is the only filelock clear of every advisory: earlier ones are
58
- # fixed in 3.20.3, newer ones affect 3.20.4 through 4.2.0, and litellm
59
- # still requires filelock < 4.
60
- filelock = {version = ">=3.20.3,<3.20.4", optional = true, python = "<3.14"}
60
+ # GHSA-69hj-f68j-2879 and GHSA-8mx5-7m5m-r77g: filelock < 4.2.1.
61
+ filelock = {version = ">=4.2.1", optional = true, python = ">=3.11,<3.14"}
62
+ # GHSA-mf5v-w3w3-f6cg: opentelemetry-api <= 1.45.1, pulled in by fastapi.
63
+ opentelemetry-api = {version = ">=1.45.2", optional = true}
61
64
 
62
65
  [tool.poetry.group.dev.dependencies]
63
66
  pytest = ">=8.0.0,<10.0.0"
@@ -88,7 +91,7 @@ hybrid = ["litellm", "pypdf", "certifi", "aiohttp", "filelock"]
88
91
  hybrid-plus = ["litellm", "pypdf", "pdfplumber", "pillow", "certifi", "aiohttp", "filelock"]
89
92
  hybrid-vision = ["litellm", "pypdf", "pypdfium2", "certifi", "aiohttp", "filelock"]
90
93
  enrichment = ["litellm", "certifi", "aiohttp", "filelock"]
91
- api = ["fastapi", "uvicorn", "python-multipart"]
94
+ api = ["fastapi", "uvicorn", "python-multipart", "opentelemetry-api"]
92
95
 
93
96
  [tool.poetry.scripts]
94
97
  bankstatementparser = "bankstatementparser.cli:main"