Skip to main content

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

https://github.com/ministryofjustice/bankline-direct-parser/workflows/Run%20tests/badge.svg?branch=master

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bankline-direct-parser, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size bankline_direct_parser-0.4-py2.py3-none-any.whl (8.1 kB) File type Wheel Python version 3.6 Upload date Hashes View
Filename, size bankline-direct-parser-0.4.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page