银行直接银行信息服务解析器
bankline-direct-parser的Python项目详细描述
用于解析natwest/rbs bankline直接数据服务文件的python模块。
要求
仅支持Python3.4+。
安装
pip install bankline-direct-parser
用法
frombankline_parser.data_servicesimportparse# from filewithopen(filename)asf:parsed=parse(f)ifparsed.is_valid():print(parsed.accounts[0].records[0].transaction_code)else:print(parsed.errors)# from list of rowsparsed=parse(lines)
模型布局
DataServicesFile VolumeHeaderLabel [Account] FileHeaderLabel UserHeaderLabel [DataRecord|BalanceRecord] UserTrailerLabel
开发
请在GitHub上报告错误并打开请求。
使用python setup.py test或tox运行所有测试。
通过更新setup.py:setup中的version参数并运行python setup.py sdist bdist_wheel upload,分发新版本。
版权所有
版权所有(c)2018英国政府(司法部数字服务)。 有关详细信息,请参见license.txt。