Coder Social home page Coder Social logo

ma4nn / moneymoney-sum-by-bank Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 84 KB

Python script for the great MoneyMoney app to generate a list with total balance by bank account.

Home Page: https://dev-investor.de/finanz-apps/money-money/maximum-pro-bank-extension/

License: GNU General Public License v3.0

Python 100.00%
moneymoney moneymoneyapp python3 moneymoney-extension

moneymoney-sum-by-bank's Introduction

MoneyMoney Extension: Sum by Bank

build status

This is a Python script for the great MoneyMoney software to generate a list with all balances by bank account.
This is useful e.g. to export the total values per bank to a summary Excel document or to monitor certain threshold values per bank.

Installation

This script requires at least Python 3.10.

pip install -r requirements.txt

Create service menu entry (optional)

On Mac if you (optionally) want to use this Python script within the services menu of the MoneyMoney application, the best way is to use the Mac Automator:

  1. Create a new "Quick Action Workflow" in Automator
  2. Choose "No Input" in "MoneyMoney"
  3. Add the action "Execute AppleScript" and paste this script into the text box and adapt the script path accordingly:
    on run {input, parameters}
        tell application "Terminal"
            do script "python3 ~/path/to/script/moneymoney_sum_by_bank.py && read -s -n 1 key && exit 0"
        end tell
        
        return input
    end run
  4. Save the workflow

Then you have a new menu item with the chosen name in MoneyMoney > Services.

Usage ๐Ÿ’ก

python3 moneymoney_sum_by_bank.py

Note: The MoneyMoney application has to be unlocked when executing the script otherwise an error will be thrown.

This Python script sums all account balances from MoneyMoney by the bank code of the BIC (first 4 digits).
If a BIC is not available (e.g. in case of an offline or a credit card account), the script looks for a custom attribute bankIdentifier in the account settings and uses this as reference.
If neither of this information is available on the account and it has a balance, the value is added to "other".

The result of the Python script can e.g. be used in Excel:
Excel file with sums by bank account

For more information see also my blog post.

License

GPLv3 License

moneymoney-sum-by-bank's People

Contributors

ma4nn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

moneymoney-sum-by-bank's Issues

Option to Export to fixed file in a specific Worksheet?

Hi Christoph!

Could you point me towards a solution where the data is not written to a new file but an existing file?
I have a self-made Budget and Forecast for my Financials in Excel and it would be great to get the actuals automatically.
Currently I manually type them into my Excel file from MoneyMoney.
Your script seems to be perfect with just this little change.

Many thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.