seedstars / python-iso8583 Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Hi,
Any plan to port it to python 3?
Hi, using python 3, when I try example1.py in the project folder, below errot hit. Any idea how to resolve? Thanks.
self.BITMAP[pos] = self.BITMAP[pos] | self._TMP[(bit % 8) + 1]
TypeError: list indices must be integers or slices, not float
python.exe: can't find 'main' module in 'ISO8583'
I have used your example program to parse my ISO 8583 message.
But I have an issue (exception thrown after field 63 as invalid literal for int() with base 10).
I have captured following debug message ( only copied the important part of debug message here)when I set the ISO message.
This is the array of bits (before) [0, 0, 0, 'X', 'X', 0, 0, 'X', 0, 0, 0, 'X', 'X', 'X', 0, 0, 0, 0, 0, 0, 0, 0, 'X', 0, 0, 'X', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'X', 0, 0, 0, 'X', 'X', 0, 0, 0, 0, 0, 0, 'X', 0, 0, 0, 'X', 0, 'X', 0, 0, 0, 0, 0, 0, 0, 'X', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'X', 'X']
This is the input string <300000000000000100092710262200000010262209270572513139303932373130323632325206711320202020202020202020202020202009785222015300000001014182022000950500000000009C01005F2A0209785F3401009F02060000000001009F03060000000000009F1007060D0A03A020009F1A0208409F260824E62C2AC07110529F2701809F360200FF9F3704817D13EF9F3901079F6604A000C0009F6E0420700000CF010457134929457789172006D21032010013100000001F9A03190927DFDF23020840DFDF270100001030313233343536373839002135134929457789172006D21032010013100000001F5D3B3DB66D1FE2E7>
String = 785222015300000001014182022000950500000000009C01005F2A0209785F3401009F02060000000001009F03060000000000009F1007060D0A03A020009F1A0208409F260824E62C2AC07110529F2701809F360200FF9F3704817D13EF9F3901079F6604A000C0009F6E0420700000CF010457134929457789172006D21032010013100000001F9A03190927DFDF23020840DFDF270100001030313233343536373839002135134929457789172006D21032010013100000001F5D3B3DB66D1FE2E7 offset = 114 bit = 63
Size of the message in LLL = 785
Setting bit 63 value 785222015300000001014182022000950500000000009C01005F2A0209785F3401009F02060000000001009F03060000000000009F1007060D0A03A020009F1A0208409F260824E62C2AC07110529F2701809F360200FF9F3704817D13EF9F3901079F6604A000C0009F6E0420700000CF010457134929457789172006D21032010013100000001F9A03190927DFDF23020840DFDF270100001030313233343536373839002135134929457789172006D21032010013100000001F5D3B3DB66D1FE2E7
String = offset = 902 bit = 127
So please kindly let me know where It went wrong.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.