Parser for Bankline Direct banking information services
Project description
Python module for parsing Natwest/RBS Bankline Direct Data Services files.
Requirements
Only Python 3.6+ is supported.
Installation
pip install bankline-direct-parser
Usage
from bankline_parser.data_services import parse
# from file
with open(filename) as f:
parsed = parse(f)
if parsed.is_valid():
print(parsed.accounts[0].records[0].transaction_code)
else:
print(parsed.errors)
# from list of rows
parsed = parse(lines)
Model Layout
DataServicesFile
VolumeHeaderLabel
[Account]
FileHeaderLabel
UserHeaderLabel
[DataRecord|BalanceRecord]
UserTrailerLabel
Development
Please report bugs and open pull requests on GitHub.
Use python setup.py test or tox to run all tests.
Distribute a new version by updating the VERSION tuple in bankline_parser/__init__.py and publishing a release in GitHub (this triggers a GitHub Actions workflow to automatically upload it). Alternatively, run python setup.py sdist bdist_wheel upload locally.
Copyright
Copyright (C) 2022 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
Hashes for bankline-direct-parser-0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe838de71c0e2783ada5bd5746a0cbd5f270c8b04e4a1f50c4ebc169b0bfb211 |
|
MD5 | 75f4e387c42f1f706c206295ddc414c1 |
|
BLAKE2b-256 | d97aeb659ddf3753d83f004146973f66918924356c7d02d4f0e4ee56314d56c1 |
Hashes for bankline_direct_parser-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4214a93b986761b4988e914bd064a479d515ad886ed4a7e04f309b558ce7ce6e |
|
MD5 | 9f7f8213f322ccf243a6d77b6ef922bb |
|
BLAKE2b-256 | 23e5dfe287c2a4e1c5826310b505e037acc8cb5988026f1dd5087b48eb785bb6 |