bankline direct parser
0.8
โมดูล Python สำหรับแยกวิเคราะห์ไฟล์ Natwest/RBS Bankline Direct Data Services
รองรับเฉพาะ 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 [บัญชี] FileHeaderLabel UserHeaderLabel [บันทึกข้อมูล|บันทึกยอดคงเหลือ] UserTrailerLabel
กรุณารายงานข้อบกพร่องและเปิดคำขอดึงบน GitHub
ในการทำงานกับการเปลี่ยนแปลงในไลบรารีนี้ ขอแนะนำให้ติดตั้งไลบรารีนี้ในโหมดแก้ไขได้ในสภาพแวดล้อมเสมือน เช่น pip install --editable .
ใช้ python -m tests
เพื่อทำการทดสอบทั้งหมดภายในเครื่อง หรือคุณสามารถใช้ tox
หากคุณมีหลามหลายเวอร์ชัน
[สำหรับสมาชิกทีม GitHub เท่านั้น] เผยแพร่เวอร์ชันใหม่ให้กับ PyPI โดย:
VERSION
tuple ใน bankline_parser/__init__.py
python -m build; twine upload dist/*
ในเครื่อง ลิขสิทธิ์ (C) 2023 HM Government (กระทรวงยุติธรรมดิจิทัลและเทคโนโลยี) ดู LICENSE.txt สำหรับรายละเอียดเพิ่มเติม