Skip to main content

Create Sankey diagrams from Hibiscus csv export

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hibiscus_sankey-0.0.2.tar.gz (242.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hibiscus_sankey-0.0.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file hibiscus_sankey-0.0.2.tar.gz.

File metadata

  • Download URL: hibiscus_sankey-0.0.2.tar.gz
  • Upload date:
  • Size: 242.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hibiscus_sankey-0.0.2.tar.gz
Algorithm Hash digest
SHA256 054b1173edfc6bae6a8eecdab66f6cf75640ecd21e7bd7be5f8cc96bc89ac9b1
MD5 1352dfff2bf900938567e7b60c482975
BLAKE2b-256 b32168e3166aba2934dd82a69760988c063a939b59121e68924be40a608091a0

See more details on using hashes here.

File details

Details for the file hibiscus_sankey-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for hibiscus_sankey-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c8c625247b177ca8c09b54445298f234d5581d47c64fbaf9370bb6d2dd3e5456
MD5 c48fff9c1f7be6eaba50545581522ee2
BLAKE2b-256 790176f0d9b0ff92f7c21b5e910dba1beb6540e61b7c3341f0a9f4381c3825bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page