Parser for Bankline Direct banking information services
Project description
Python module for parsing Natwest/RBS Bankline Direct Data Services files.
Requirements
Only python 3.4+ 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 argument in setup.py:setup and run python setup.py sdist bdist_wheel upload.
Copyright
Copyright (C) 2018 HM Government (Ministry of Justice Digital Services). 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
Close
Hashes for bankline-direct-parser-0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f084c93ca6720ee5ae04e8d0e85646047901bfede27900ef048710317a411a76 |
|
MD5 | 455198ecdff84fd11bc8cb32797a10fc |
|
BLAKE2b-256 | ca2d36a6f5823b3b6ab6bf304b472669eda8b694cb79d67ca1a253c10a5aa3d7 |
Close
Hashes for bankline_direct_parser-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21a998404d5a3fa7737453492b8d3711ebb83f73902375dddcc20deb53738a32 |
|
MD5 | b400e4724c6e2634a1a4550e9dad05c4 |
|
BLAKE2b-256 | 77ba6ff8eebb09200f8b01a1346d716b1137885c299de51ecf4bad720b02a86e |