bankline direct parser
0.8
用于解析 Natwest/RBS Bankline Direct Data Services 文件的 Python 模块。
仅支持 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 )
数据服务文件 卷标头标签 [帐户] 文件头标签 用户标题标签 [数据记录|余额记录] 用户预告片标签
请报告错误并在 GitHub 上打开拉取请求。
要对此库进行更改,建议以可编辑模式将其安装到虚拟环境中,即pip install --editable .
使用python -m tests
在本地运行所有测试。或者,如果您有多个 python 版本,则可以使用tox
。
[仅适用于 GitHub 团队成员] 通过以下方式将新版本分发到 PyPI:
bankline_parser/__init__.py
中的VERSION
元组python -m build; twine upload dist/*
版权所有 (C) 2023 英国政府(司法数字与技术部)。有关更多详细信息,请参阅 LICENSE.txt。