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.7+ 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

https://github.com/ministryofjustice/bankline-direct-parser/actions/workflows/test.yml/badge.svg?branch=main https://github.com/ministryofjustice/bankline-direct-parser/actions/workflows/lint.yml/badge.svg?branch=main

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 bankline_parser/__init__.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

Migrated test, build and release processes away from deprecated setuptools commands. No significant library changes.

0.7

Maintenance release, no library changes.

0.2 - 0.6

No significant library changes, other than support for newer versions of python.

0.1

Original release.

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.8.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

bankline_direct_parser-0.8-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file bankline-direct-parser-0.8.tar.gz.

File metadata

  • Download URL: bankline-direct-parser-0.8.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for bankline-direct-parser-0.8.tar.gz
Algorithm Hash digest
SHA256 736ae10b79379c03b0d651b58b6e5ce37c621ccd877948f2569bcabb22840d38
MD5 de50c4c48c7027c5b69cf8a0f81a4c60
BLAKE2b-256 f279055e874009f9a36f93d4c9d50b6c631f68ece54e4a64e28c7e5cde4b868b

See more details on using hashes here.

File details

Details for the file bankline_direct_parser-0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for bankline_direct_parser-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 40620c9a940713d4f6deca450b154f42353eea9c2f22e8a58083f22921f783eb
MD5 6b4ed380d67afee270bf230e8ba71eb6
BLAKE2b-256 95ddd04413b4003eb445618de5c5d4b3e5664b6281f34b6fea7bedf533fea7be

See more details on using hashes here.

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