mt-940
A library to parse MT940 files and returns smart Python collections for statistics and manipulation.
Decision gist · record as of 2026-08-14
Yes. Actively maintained, zero runtime dependencies, ships with full type information, and handles a wide range of real-world bank formats. Suitable for any Python project that needs to parse MT940 statements reliably. No known security issues, permissive license, and low install friction make it a straightforward choice.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or newer.
- Low friction: pure Python with zero runtime dependencies, ships as a wheel, and actively maintained with a recent release 53 days ago.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-06-22 (53 days) · last repo commit 2026-08-01 · 106 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 696,138 downloads/mo, #5,305 on PyPI
Alternatives
Verify before relying
pip install mt-940
import mt940
transactions = mt940.parse('statement.sta')
for transaction in transactions:
print(transaction.data['date'], transaction.data['amount'])- Whether the package handles all real-world bank statement variations without manual intervention beyond opt-in tags.
- Performance characteristics when parsing large statement files or many statements in sequence.
What it is and what it does
This is a parser for MT940 bank statement files—a SWIFT standard format used by banks worldwide to exchange transaction data. It reads these files and returns fully typed Python collections where transactions, amounts, balances, and dates are rich objects rather than raw strings, making them immediately usable for aggregation, filtering, and analysis.
The library has no runtime dependencies and includes type information (py.typed), so it works cleanly in typed codebases. It handles quirks from many real banks through a combination of sensible defaults and opt-in extensions: you can parse a standard statement with a single call, but for banks with non-standard tag layouts, you can register custom tag handlers. It also supports multiple statements in one file, JSON serialization, and custom transaction grouping rules.
Use it for
- Extract and reconcile bank transactions from MT940 files into a Python application for accounting or bookkeeping.
- Aggregate statement-level data like opening and closing balances across multiple bank files for financial reporting.
- Serialize parsed statements to JSON for downstream processing, APIs, or storage in a data pipeline.
- Handle bank-specific MT940 variants by registering opt-in tags without forking the parser.
- Build transaction analysis tools that work with typed amount and date objects instead of parsing strings manually.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Actively maintained, zero runtime dependencies, ships with full type information, and handles a wide range of real-world bank formats. Suitable for any Python project that needs to parse MT940 statements reliably. No known security issues, permissive license, and low install friction make it a straightforward choice.
Install
mt-940 on PyPI
Before you install
Low friction: pure Python with zero runtime dependencies, ships as a wheel, and actively maintained with a recent release 53 days ago.
Requires Python 3.10 or newer.
License in practice
BSD-3-Clause is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install mt-940
import mt940
transactions = mt940.parse('statement.sta')
for transaction in transactions:
print(transaction.data['date'], transaction.data['amount'])
Verify before relying
- Whether the package handles all real-world bank statement variations without manual intervention beyond opt-in tags.
- Performance characteristics when parsing large statement files or many statements in sequence.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 53 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 696,138 / month, #5,305 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 6 - MatureIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: mt_940-5.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “MT940 bank statement parser”
- mt-940Parses MT940 bank statement files into fully typed Python collections…
- fintsA pure-Python implementation of the FinTS 3.0 online-banking protocol…
- ofxparseParses Open Financial Exchange (.ofx) format files from banks, credit…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also bai2 · beancount · fints · ofxparse · ofxtools · django-money · python-stdnum · banks · lkml · cybrid-api-bank-python