Skip to main content

hibiscus-sankey

Creates sankey plot from Hibiscus/Jameica csv export.

The categories assigned in Hibiscus are shown as Sankey nodes.

Example

$ hibiscus_sankey --div 12 --plot demo.csv

demo.png

Installation

$ pipx install hibiscus_sankey

Usage

$ hibiscus_sankey --help
usage: hibiscus_sankey [-h] [--div DIV] [--threshold THRESHOLD] [--plot] csv_files [csv_files ...]

Generate a Sankey diagram from one or more CSV files (category path based).

positional arguments:
  csv_files             One or more CSV files

options:
  -h, --help            show this help message and exit
  --div DIV             Divisor for values (e.g. 12 to show monthly averages from a one year dataset)
  --threshold THRESHOLD
                        Lower threshold for nodes to show up
  --plot                Plot sankey diagram

How to obtain CSV source

hibiscus_sankey uses one or more transactions export files from Hibiscus. Note there have to be transactions assigned to categories for any Sankey data to show up. Ideally, all transactions should be categorized.

In Hibiscus, go to Start -> Hibiscus -> Umsätze, select an account and a timeframe and hit "Exportieren...". In the dialog that pops up, make sure that "CSV-Format" is selected. The exported CSV file(s) can be directly fed to hibiscus_sankey.

Tips and tricks

  • If multiple csv files are given, the transactions from the files are just accumulated, as if they were all in one file.
    • If a credit card shows up as a separate account in Hibiscus, it can be combined with the main account like this. Make sure that the re-up on the credit card shows up in the same category as the withdraw for the re-up in the main account (this can be easily achieved with regular expressions). The re-up transactions of both accounts should add up to zero.
  • When Plotly gets some parts of the diagram wrong (e.g. intersecting links between nodes), the nodes can easily be rearranged manually in the web browser.

Other banking software

hibiscus_sankey only requires two columns in the csv: "Kategorie-Pfad", "Betrag" (see demo.csv). If you use a different banking tool which also supports CSV export of transactions, it should be easy to adapt either hibiscus_sankey or the CSV file to work together.

Metadata

Release files for hibiscus-sankey 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hibiscus-sankey 0.0.2
File Size Uploaded
hibiscus_sankey-0.0.2.tar.gz 242.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hibiscus-sankey 0.0.2
File Interpreter ABI Platform
hibiscus_sankey-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 247.4 kB

Release files / hibiscus_sankey-0.0.2.tar.gz

Download URL hibiscus_sankey-0.0.2.tar.gz
Size 242.2 kB
Tags Source
SHA-256 checksum
How to use checksums
054b1173edfc6bae6a8eecdab66f6cf75640ecd21e7bd7be5f8cc96bc89ac9b1
BLAKE2b-256 checksum
How to use checksums
b32168e3166aba2934dd82a69760988c063a939b59121e68924be40a608091a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / hibiscus_sankey-0.0.2-py3-none-any.whl

Download URL hibiscus_sankey-0.0.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8c625247b177ca8c09b54445298f234d5581d47c64fbaf9370bb6d2dd3e5456
BLAKE2b-256 checksum
How to use checksums
790176f0d9b0ff92f7c21b5e910dba1beb6540e61b7c3341f0a9f4381c3825bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page