Writer for MT-940 bank statements
Project description
Python library to create bank statements in the MT940 format.
Only tested on Python 3.10+, but should work on 3.7+.
pip install mt940-writer
Development
Please report bugs and open pull requests on GitHub.
To work on changes to this library, it’s recommended to install it in editable mode into a virtual environment, i.e. pip install --editable .
Use python -m tests to run all tests locally. Alternatively, you can use tox if you have multiple python versions.
[Only for GitHub team members] Distribute a new version to PyPI by:
updating the VERSION tuple in mt940_writer.py
adding a note to the History
publishing a release on GitHub which triggers an upload to PyPI; alternatively, run python -m build; twine upload dist/* locally
History
- 0.8
Testing on python 3.10 to 3.14. Reverted to flake8 for code style to be consistent with other MoJ libs. Improve linting and modernise code style. Migrated to trusted publishing.
- 0.7
Added additional transaction information with tag 86. Switched to ruff for code linting and formatting. Migrated test, build and release processes away from deprecated setuptools commands.
- 0.6
Maintenance release, no library changes.
- 0.2 - 0.5
No significant library changes, other than support for newer versions of python.
- 0.1
Original release.
Copyright
Copyright (C) 2025 HM Government (Ministry of Justice Digital & Technology). See LICENSE.txt for further details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mt940_writer-0.8.tar.gz.
File metadata
- Download URL: mt940_writer-0.8.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6e68e1277fe827073660bd4618d03b48e90d061c54120a4c534c0d986f83997
|
|
| MD5 |
fa87f085e3ca7f169f6298dc90c39e29
|
|
| BLAKE2b-256 |
efb0b0fcb333889c2b649f6f154b91b6aee41eb6c696bfd5bddc45e1a28467f1
|
Provenance
The following attestation bundles were made for mt940_writer-0.8.tar.gz:
Publisher:
release.yml on ministryofjustice/mt940-writer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mt940_writer-0.8.tar.gz -
Subject digest:
d6e68e1277fe827073660bd4618d03b48e90d061c54120a4c534c0d986f83997 - Sigstore transparency entry: 667396815
- Sigstore integration time:
-
Permalink:
ministryofjustice/mt940-writer@baed800be0b1f1528017cbd6640e4d51c0249b14 -
Branch / Tag:
refs/tags/0.8 - Owner: https://github.com/ministryofjustice
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@baed800be0b1f1528017cbd6640e4d51c0249b14 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mt940_writer-0.8-py3-none-any.whl.
File metadata
- Download URL: mt940_writer-0.8-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ac1ac34fa90e271d4802195f67ea958dd2fdd127179523340b2d93b979cb488
|
|
| MD5 |
b431c42aaf68f6a962818737043cc405
|
|
| BLAKE2b-256 |
de02a96cb081400d2c2dd1a39f07dea0398826c520e68ee32a6bf5a63aeb1ce7
|
Provenance
The following attestation bundles were made for mt940_writer-0.8-py3-none-any.whl:
Publisher:
release.yml on ministryofjustice/mt940-writer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mt940_writer-0.8-py3-none-any.whl -
Subject digest:
8ac1ac34fa90e271d4802195f67ea958dd2fdd127179523340b2d93b979cb488 - Sigstore transparency entry: 667396822
- Sigstore integration time:
-
Permalink:
ministryofjustice/mt940-writer@baed800be0b1f1528017cbd6640e4d51c0249b14 -
Branch / Tag:
refs/tags/0.8 - Owner: https://github.com/ministryofjustice
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@baed800be0b1f1528017cbd6640e4d51c0249b14 -
Trigger Event:
release
-
Statement type: