Skip to content

Python project which reads a qif formatted file and spits out json.

License

Notifications You must be signed in to change notification settings

Miyan0/qif2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qif2json (WORK IN PROGRESS)

Python script for parsing QIF files.

Require Python > 3.6 but tested on 3.7.5 (Windows)

Should parse MacOS exported .qmtf files correctly, but was tested only on Windows. Need to pass the encoding though.

Licence

MIT

Do whatever you want with this code but you can't sue me ;-)

Usage:

python qif2json.py C:\myqif.QIF C:\my_export.json

or

python qif2json.py C:\myqif.qmtf C:\my_export.json --encoding utf-8

Supported encoding are utf-8 and cp1252. Default is cp1252. Make sure you pass the correct one.

Based on Qif Format and my own observations on my data.

This project uses Poetry but you can use any virtual environment manager, or none.

Anyway, if you only want to convert a qif file to json, you don't need the whole project, just download qif2json.py in the qif2json folder.


Notes

Aassumes that the qif file don't contains anything after the last transaction (i.e) it ends with the last transaction of the last account. The script will fail horribly if there's anything other than a new line after the last transaction.

About

Python project which reads a qif formatted file and spits out json.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages