Skip to main content
|LSP over stdio| B["bankstatementparser-lsp"]
B -->|diagnostics_for_mt940| C["diagnostic engine (MT940 tag patterns)"]
C -->|Diagnostic objects| B
B -->|publishDiagnostics| A

---

## When not to use bankstatementparser-lsp

- **You're not editing MT940 statements.** The server targets the SWIFT
  MT940 tag-and-line format (`.mt940` / `.sta`); for CAMT XML or other
  formats use a format-appropriate language server.
- **You need full parsing, not editor diagnostics.** Use the core
  [`bankstatementparser`](https://pypi.org/project/bankstatementparser/)
  library to parse statements into structured records.

---

## Development

`bankstatementparser-lsp` uses [Poetry](https://python-poetry.org/) and
[mise](https://mise.jdx.dev/).

```bash
git clone https://github.com/sebastienrousseau/bankstatementparser-lsp.git
cd bankstatementparser-lsp
mise install
poetry install

A Makefile orchestrates the quality gates (kept in lockstep with CI):

Target What it runs
make check All gates (REQUIRED before commit)
make test pytest --cov=bankstatementparser_lsp --cov-branch --cov-fail-under=100
make lint ruff check + ruff format --check
make type-check mypy --strict
make examples Run the example scripts

Current state (v0.0.18): 91 tests passing, 100% line + branch coverage against a 100% enforced floor, mypy --strict clean, interrogate 100% docstring coverage. The suite includes documentation and example regression tests (tests/test_docs_accuracy.py, tests/test_regression_docs.py, tests/test_regression_examples.py) that execute every documented snippet and every examples/*.py script.


Security

  • No filesystem writes. The server reads from the editor's in-memory document buffer; no scratch files, no temp directories.
  • MT940 parsing is a pure-re line scanner over text from the editor — no eval, no shelling out, no XML, no network.
  • Lint findings are returned as lsprotocol.Diagnostic objects with no stack traces, so the editor never sees an internal path or exception message.
  • Dependencies are pinned via poetry.lock and audited by pip-audit and Bandit in CI.

To report a vulnerability, please use GitHub private vulnerability reporting rather than a public issue.


Documentation


Contributing

Contributions are welcome — see the contributing instructions. Thanks to all the contributors who have helped build bankstatementparser-lsp.


License

Licensed under the Apache License, Version 2.0. Built on pygls and lsprotocol by the Open Law Library, and on the core bankstatementparser library that powers the validators and schemas.

Any contribution submitted for inclusion shall be licensed as above, without additional terms.


bankstatementparser.com · PyPI · GitHub

Metadata

Release files for bankstatementparser-lsp 0.0.18

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bankstatementparser-lsp 0.0.18
File Size Uploaded
bankstatementparser_lsp-0.0.18.tar.gz 17.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bankstatementparser-lsp 0.0.18
File Interpreter ABI Platform
bankstatementparser_lsp-0.0.18-py3-none-any.whl Python 3 none any Details

Total release size: 33.8 kB

Release files / bankstatementparser_lsp-0.0.18.tar.gz

Download URL bankstatementparser_lsp-0.0.18.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
642c8f14e0ad07923ee48569d3917d3350948bddbda6ec038b59edfd0f060213
BLAKE2b-256 checksum
How to use checksums
3a23cff1cb6316e238317f164008760f9b5afdc157b4b6282b433fd19b43f79f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 29, 2026.

Transparency log

Release files / bankstatementparser_lsp-0.0.18-py3-none-any.whl

Download URL bankstatementparser_lsp-0.0.18-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f20785f9251d8823095a3f5e76102293823fc9bbc87a14aae6d90a7d98879582
BLAKE2b-256 checksum
How to use checksums
d096323059852364f1659959a1c6ae2af1af275cf6510995264466dbaf9f6b04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.18 This release

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page