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。