ISO8583 Dlib
1.0.0
Parser String到JSON的ISO8583软件包
此包装是由为我制作的CookieCutter开发的:https://github.com/activandoideas/python-package-cookiecutter
完整文档ISO:https://github.com/eocode/iso8583-dlib/blob/master/8583.pdf
关于ISO链接:
简历文档和解析器示例
与pip
pip install ISO8583-Dlib
条目是一条消息
from iso8583_dlib . parser import Parser
if __name__ == "__main__" :
message = "ISO0260000700200B23E842128A1801A00000000100000BC0010000000000070020707203500000013153459070724050707070705161199999999999274231453201761925=2405226096000000000619P0891218 INBURSA CASHBACK CD MEXICO 001MX0277126834 00010101484016B036PRO1+0000000019B359 00000000000370& 0000700370! C000026 113000 ! C400012 000000021082! Q200002 03! B200158 7FF900008000800080008251FFC4F2FDE21D0000000070020000000000003C00002A48448420070700BE967302000706010A03A4B80200000"
data = Parser ( message )
# Set true to generate a data.json file with parser message
print ( data . get_json ( save = True ))输出是JSON
{
"literal" : " ISO " ,
"header" : {
"Complete_header" : " 026000070 " ,
"Product_indicator" : {
"value" : " 02 " ,
"description" : " POS "
},
"Release_number" : {
"value" : " 60 " ,
"description" : " DEFAULT "
},
"Status" : {
"value" : " 000 " ,
"description" : " Undetermined "
},
"Originator_code" : {
"value" : " 7 " ,
"description" : " Interchange "
},
"Responder_code" : {
"value" : " 0 " ,
"description" : " Undetermined "
}
},
"mti" : {
"value" : " 0200 " ,
"description" : " Financial transaction request "
},
"primary_bitmap" : " B23E842128A1801A " ,
"..." : " ... "
}完整输出消息:https://github.com/eocode/iso8583-dlib/blob/master/master/data.json
pip install pytest
pytest易于使用的易于使用的库,与您喜欢的框架创建特定的API并与其他系统集成
阅读contryting.md文件并提出问题并发送公关以改进