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://travis-ci.org/ministryofjustice/bankline-direct-parser.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 argument in setup.py:setup and run python setup.py sdist bdist_wheel upload.

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

bankline-direct-parser-0.3.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

bankline_direct_parser-0.3-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page