Python script to import banking charges into Splitwise

If the issue of maintaining a personal or family budget is important to you, or if you often go on trips with friends, then you have either already heard about Splitwise, or it may be useful for you to hear about it. Splitwise is a pretty user-friendly site + apps for iOS and Android that allow you to keep track of joint expenses. There is also a useful function for minimizing the number of mutual settlements (for example: if everyone owes Sasha 100 rubles each, Petya owes Sasha +20 rubles more, and Vasya owes Petya 120 rubles, then in the end Vasya will immediately give 220 rubles to Sasha, and everyone is happy). I first used Splitwise a couple of years ago on a trip with friends to Italy, and since then we have used it quite often for various purposes - shopping for gifts, joint picnic trips, etc.



Using Splitwise is quite simple - you create a group, invite friends to it, everyone adds there how much they spent, and in what proportion these expenses need to be divided (by default - equally). You can calculate all your mutual expenses in one group, or you can create a separate group for each trip / gift / etc.





If, for example, you want to keep a family budget in Splitwise - write down the total expenses for rent, purchases, housing and communal services, the web version also shows a diagram of your expenses by category (although these categories still need to be assigned for each payment). This feature is paid in the application, but in the web version, which I use most often, diagrams can be viewed without a subscription. In general, the main use case for me is precisely budget management, so when I am reminded once again that it’s time to fill out a split-way, I usually, sighing heavily, opened my bank's application, and methodically began to interrupt all expenses there with pens. If the history of payments is important to you and you want to look at the diagrams, then in addition to the amount and breakdown, you will have to fill in: date, select a payment category from the menu, write a more or less understandable name,by which it will be possible to adequately identify the payment.





This is what the input form looks like in the web version.
-.

, , , , , - . splitwise_importer ( ).





splitwise_importer

Splitwise_importer - TUI ( npyscreen, Telegram TUI), a Python, , Python-API ( , PR). Splitwise_importer Splitwise - CSV.

-, user experience , , - . MacOS Ubuntu 20.04 WSL Python 3.7.1+.





splitwise_importer :





  • Splitwise,





  • CSV.





  • CSV ( , , ..). -, .

    UPD: ( @S_o_T).





  • () ( ). , General expenses.





importer.py, . , , , , alias . .





Operation selection window.  A test CSV with the same line repeating is displayed.
. CSV .

, , . "", 'log' ( , , Splitwise). . - . .








All Articles