No description
Find a file
2025-10-22 14:25:18 +02:00
.gitignore ignore output folder 2024-04-27 15:47:20 +02:00
exampe_config.ini add tabulate 2024-04-28 02:46:54 +02:00
LICENSE init 2024-04-27 12:43:44 +02:00
README.md update readme 2025-10-22 14:25:18 +02:00
requirements.txt add requests to requirements 2024-04-28 02:54:08 +02:00
transaction_summary.py Add shebang 2025-04-18 22:47:01 +02:00

Income Statement Script

This Python script retrieves transaction data from the Firefly III API and generates an income statement in tabular format.

Installation

  1. Clone this repository to your local machine:

    git clone https://git.rollenspiel.monster/RollenspielMonster/einfache-buchfuehrung.git
    
  2. Navigate to the directory:

    cd einfache-buchfuehrung
    
  3. Rename exampe_config.ini to config.ini and adapt it to your environment:

    cd exampe_config.ini config.ini
    nano config.ini
    
  4. Install the requirements:

    pip install -r requirements.txt
    

Usage

Run the script with the following command:

transaction_summary.py [-h] [-f] [-v] DATE

Process some arguments.

positional arguments:
  DATE         Date in format yyyy or yyyy-mm

options:
  -h, --help   show this help message and exit
  -f, --file   Output to file
  -v, --debug  Enable debug mode

Example

To generate an income statement for transactions in March 2024:

python3 transaction_summary.py 2024-03

Notes

  • Ensure you have an API key for accessing the transaction data. Update the config.ini file with your API key.
  • You can customize the table widths in the config.ini file according to your preference.

Dependencies

  • Python 3
  • configparser

License

This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.