This project has been archived by its maintainers, and is no longer receiving any updates.
openbooks-statements
Providers for bank statements, registered with openbooks-core.
| Input | Install | How it is proven |
|---|---|---|
bank CSV (bank_csv.v1), OFX, MT940 |
pip install openbooks-statements (pure Python) |
opening + movements = closing, running balance ties on every row |
| PDF with a text layer | pip install "openbooks-statements[pdf]" (adds pypdfium2) |
same chain, with page and bounding box evidence per field |
| scans and photos | pip install "openbooks-statements[scan]" (adds EasyOCR, PyTorch, Pillow) |
same chain; OCR dates are also checked to be in order, and low OCR confidence refuses |
Without the [pdf] extra a PDF is not a refusal about the document: the engine reports that pypdfium2 is missing (exit code 3).
PDFs are read with pypdfium2 (Apache-2.0 / BSD-3, wrapping Google's PDFium) and images with Pillow; nothing in this package is copyleft.
A page whose text layer is rotated (/Rotate) is refused rather than guessed; scans are rendered and read by OCR.
Typed heads (--model)
python -m openbooks_core run statement.pdf --model cross-checks the column assignment with a small calibrated model. The heads
can only add refusals (LOW_CONFIDENCE); the balance gate always has the last word. The weights (roles_head.pt, about 19 MB)
and their calibration ship inside the wheel under openbooks_statements/data/, and the calibration names the sha256 of the exact
weights it was fitted on: a mismatch refuses to load. A released document records both hashes in file.model.
OPENBOOKS_MODELS_DIR overrides the location. Weights are loaded with torch.load(..., weights_only=True) (PyTorch 2.6 or newer).
All figures for the heads are on synthetic data. No accuracy claim has been measured on real client documents.
Not here
Training, the synthetic data generator, calibration fitting and payout-to-bank-credit matching are not part of this package.
Metadata
Release files for openbooks-statements 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openbooks_statements-0.1.0.tar.gz | 18.2 MB | With provenance | Details for openbooks_statements-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openbooks_statements-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for openbooks_statements-0.1.0-py3-none-any.whl |
Total release size: 36.4 MB
Release files / openbooks_statements-0.1.0.tar.gz
| Download URL | openbooks_statements-0.1.0.tar.gz |
|---|---|
| Size | 18.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07c5141db3adf59ad74b53d08a67d9008ec982697ae155e8b768a1da22e3bae2
|
|
BLAKE2b-256 checksum How to use checksums |
a8dd403e79fd6a221ba95bd6086c901764854cefeb9799ea8b63bd22aeff8cfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / openbooks_statements-0.1.0-py3-none-any.whl
| Download URL | openbooks_statements-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1927b5728a6cf9ebdd4cd3760b47363f7f1f86b9bd59e04a69735dfd8ee607a3
|
|
BLAKE2b-256 checksum How to use checksums |
0ad9e45c61f64390d983856cd0cb53183eb667eca653e13fac3128bc80b1961b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for openbooks-statements 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for openbooks_statements-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.