This is a very, very simple Python code to just extract data returned as a keyboard input from very cheap magnetic stripe card readers like MSR580, which returns data in format %TRACK1?;TRACK2?+TRACK3?.
It is really nothing I can explain further in this project as it is actually as easy as You can see. :)
Pass read data to the mcrDataExtract function or use getAndPrintMCRData function, which waits for keyboard input (from MSR580 or compatible).
You can also run MSR580.py file directly to run an infinite loop of reading data using getAndPrintMCRData function, which can be interrupted using Ctrl+C key combination.
I've made much effort to provide here working code with hope it'll be useful and free from any bugs. However I can't guarantee anything. The software is provided here "AS IS" and I take no responsibility for anything. You're using it on Your own risk!
Free. Please use this code with respect to the author (me).
Bartłomiej "Magnetic-Fox" Węgrzyn, April 12, 2026