bankstatementparser 0.0.11__tar.gz → 0.0.12__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 (36) hide show
  1. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/PKG-INFO +3 -2
  2. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/README.md +1 -1
  3. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/base_parser.py +4 -2
  4. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/pyproject.toml +11 -2
  5. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/LICENSE +0 -0
  6. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/__init__.py +0 -0
  7. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/_amounts.py +0 -0
  8. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/_llm_common.py +0 -0
  9. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/additional_parsers.py +0 -0
  10. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/api.py +0 -0
  11. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/bank_statement_parsers.py +0 -0
  12. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/camt_parser.py +0 -0
  13. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/cli.py +0 -0
  14. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/enrichment/__init__.py +0 -0
  15. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/enrichment/account_mapper.py +0 -0
  16. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/enrichment/categorizer.py +0 -0
  17. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/exceptions.py +0 -0
  18. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/export/__init__.py +0 -0
  19. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/export/ledger.py +0 -0
  20. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/hybrid/__init__.py +0 -0
  21. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/hybrid/evaluation.py +0 -0
  22. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/hybrid/llm_extractor.py +0 -0
  23. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/hybrid/ollama_direct.py +0 -0
  24. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/hybrid/orchestrator.py +0 -0
  25. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/hybrid/pdf_text.py +0 -0
  26. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/hybrid/prompts.py +0 -0
  27. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/hybrid/scanner.py +0 -0
  28. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/hybrid/verification.py +0 -0
  29. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/hybrid/vision.py +0 -0
  30. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/input_validator.py +0 -0
  31. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/pain001_parser.py +0 -0
  32. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/parallel.py +0 -0
  33. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/record_types.py +0 -0
  34. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/transaction_deduplicator.py +0 -0
  35. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/transaction_models.py +0 -0
  36. {bankstatementparser-0.0.11 → bankstatementparser-0.0.12}/bankstatementparser/zip_security.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bankstatementparser
3
- Version: 0.0.11
3
+ Version: 0.0.12
4
4
  Summary: BankStatementParser is your essential tool for easy bank statement management. Designed with finance and treasury experts in mind, it offers a simple way to handle CAMT (ISO 20022) formats and more. Get quick, accurate insights from your financial data and spend less time on processing. It's the smart, hassle-free way to stay on top of your transactions.
5
5
  License: Apache Software License
6
6
  License-File: LICENSE
@@ -14,6 +14,7 @@ Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
15
  Classifier: Programming Language :: Python :: 3.13
16
16
  Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
17
18
  Provides-Extra: api
18
19
  Provides-Extra: enrichment
19
20
  Provides-Extra: excel
@@ -49,7 +50,7 @@ Description-Content-Type: text/markdown
49
50
 
50
51
  <p align="center">
51
52
  <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" /></a>
52
- <a href="https://pypi.org/project/bankstatementparser/"><img src="https://img.shields.io/pypi/pyversions/bankstatementparser.svg?style=for-the-badge&v=0.0.11" alt="PyPI" /></a>
53
+ <a href="https://pypi.org/project/bankstatementparser/"><img src="https://img.shields.io/pypi/pyversions/bankstatementparser.svg?style=for-the-badge&v=0.0.12" alt="PyPI" /></a>
53
54
  <a href="https://pypi.org/project/bankstatementparser/"><img src="https://img.shields.io/pypi/dm/bankstatementparser.svg?style=for-the-badge" alt="PyPI Downloads" /></a>
54
55
  <a href="https://codecov.io/github/sebastienrousseau/bankstatementparser?branch=main"><img src="https://img.shields.io/codecov/c/github/sebastienrousseau/bankstatementparser?style=for-the-badge" alt="Codecov" /></a>
55
56
  <a href="LICENSE"><img src="https://img.shields.io/github/license/sebastienrousseau/bankstatementparser?style=for-the-badge" alt="License" /></a>
@@ -10,7 +10,7 @@
10
10
 
11
11
  <p align="center">
12
12
  <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" /></a>
13
- <a href="https://pypi.org/project/bankstatementparser/"><img src="https://img.shields.io/pypi/pyversions/bankstatementparser.svg?style=for-the-badge&v=0.0.11" alt="PyPI" /></a>
13
+ <a href="https://pypi.org/project/bankstatementparser/"><img src="https://img.shields.io/pypi/pyversions/bankstatementparser.svg?style=for-the-badge&v=0.0.12" alt="PyPI" /></a>
14
14
  <a href="https://pypi.org/project/bankstatementparser/"><img src="https://img.shields.io/pypi/dm/bankstatementparser.svg?style=for-the-badge" alt="PyPI Downloads" /></a>
15
15
  <a href="https://codecov.io/github/sebastienrousseau/bankstatementparser?branch=main"><img src="https://img.shields.io/codecov/c/github/sebastienrousseau/bankstatementparser?style=for-the-badge" alt="Codecov" /></a>
16
16
  <a href="LICENSE"><img src="https://img.shields.io/github/license/sebastienrousseau/bankstatementparser?style=for-the-badge" alt="License" /></a>
@@ -23,7 +23,7 @@ import importlib
23
23
  import json
24
24
  from abc import ABC, abstractmethod
25
25
  from pathlib import Path
26
- from typing import TYPE_CHECKING, Union
26
+ from typing import TYPE_CHECKING, Union, cast
27
27
 
28
28
  import pandas as pd
29
29
 
@@ -157,7 +157,9 @@ class BankStatementParser(ABC):
157
157
  "Run 'pip install bankstatementparser[polars]' to use this feature."
158
158
  ) from exc
159
159
 
160
- return polars.from_pandas(self.parse())
160
+ # `polars` is resolved through importlib, so it is untyped and
161
+ # `from_pandas` returns Any; cast back to the declared type.
162
+ return cast("pl.DataFrame", polars.from_pandas(self.parse()))
161
163
 
162
164
  def to_polars_lazy(self) -> "pl.LazyFrame":
163
165
  """Convert parsed transaction data to a Polars LazyFrame.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "bankstatementparser"
3
- version = "0.0.11"
3
+ version = "0.0.12"
4
4
  description = "BankStatementParser is your essential tool for easy bank statement management. Designed with finance and treasury experts in mind, it offers a simple way to handle CAMT (ISO 20022) formats and more. Get quick, accurate insights from your financial data and spend less time on processing. It's the smart, hassle-free way to stay on top of your transactions."
5
5
  authors = ["Sebastien Rousseau <sebastian.rousseau@gmail.com>"]
6
6
  license = "Apache Software License"
@@ -30,7 +30,7 @@ uvicorn = {version = ">=0.34.0", optional = true}
30
30
  pytest = ">=8.0.0,<10.0.0"
31
31
  pytest-cov = "^7.1.0"
32
32
  pytest-benchmark = "^5.1.0"
33
- ruff = "^0.15.7"
33
+ ruff = ">=0.15.7,<0.17"
34
34
  mypy = ">=1.5,<3"
35
35
  bandit = "^1.7.0"
36
36
  hypothesis = ">=6.82,<7"
@@ -146,6 +146,15 @@ ignore_missing_imports = true
146
146
  module = ["litellm", "litellm.*", "pypdf", "pypdf.*", "pdfplumber", "pdfplumber.*", "pypdfium2", "pypdfium2.*", "httpx", "httpx.*", "fastapi", "fastapi.*", "uvicorn", "uvicorn.*"]
147
147
  ignore_missing_imports = true
148
148
 
149
+ # fastapi is an optional extra. When it is installed its route
150
+ # decorators are typed and the `untyped-decorator` ignores in api.py
151
+ # are redundant; when it is not (CI's lint job installs no extras)
152
+ # they are required. Allow both rather than making the file correct
153
+ # for only one of the two environments.
154
+ [[tool.mypy.overrides]]
155
+ module = ["bankstatementparser.api"]
156
+ warn_unused_ignores = false
157
+
149
158
  [[tool.mypy.overrides]]
150
159
  module = ["tomli", "tomllib"]
151
160
  ignore_missing_imports = true