跳转到主要内容

Bankline Direct银行信息服务解析器

项目描述

Python 模块,用于解析 Natwest/RBS Bankline Direct 数据服务文件。

需求

仅支持 Python 3.7 及以上版本。

安装

pip install bankline-direct-parser

使用方法

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)

模型布局

DataServicesFile
    VolumeHeaderLabel
    [Account]
        FileHeaderLabel
        UserHeaderLabel
        [DataRecord|BalanceRecord]
        UserTrailerLabel

开发

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

请在 GitHub 上报告错误和发起拉取请求。

要对此库进行更改,建议将其以可编辑模式安装到虚拟环境中,即 pip install --editable .

使用 python -m tests 在本地运行所有测试。或者,如果您有多个 Python 版本,可以使用 tox

[仅限 GitHub 团队成员] 通过以下方式将新版本分发到 PyPI

  • 更新 bankline_parser/__init__.py 中的 VERSION 元组

  • 历史 中添加注释

  • 在 GitHub 上发布版本,这将触发上传到 PyPI;或者,本地运行 python -m build; twine upload dist/*

历史

0.8

将测试、构建和发布流程从已弃用的 setuptools 命令迁移出去。没有重大的库更改。

0.7

维护版本,没有库更改。

0.2 - 0.6

除支持 Python 的新版本外,没有重大的库更改。

0.1

原始版本。

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于 安装软件包 的信息。

源分布

bankline-direct-parser-0.8.tar.gz (8.5 kB 查看哈希值)

上传时间 源代码

构建分布

bankline_direct_parser-0.8-py3-none-any.whl (8.4 kB 查看哈希值)

上传时间 Python 3

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面