Qif File Format [better] -

D01/10/2024 T-150.00 PAmazon L[CreditCard] ← optional main category (if any) SFood ← split 1 category $80.00 SBooks ← split 2 category $70.00 ^ Splits must sum to the total T amount. Use brackets [AccountName] in the L field.

!Type:Bank D02/01/2024 T-500.00 PTransfer to Savings L[Savings] ^ In the account file, the reverse: qif file format

with open("output.qif", "w") as f: f.write("!Type:Bank\n") f.write("D04/14/2026\n") f.write("T-25.00\n") f.write("PCoffee Shop\n") f.write("LFood:Dining\n") f.write("^\n") (pseudo): D01/10/2024 T-150

Example (bank account):