Skip to main content

Treemap visualization of component sizes

Project description

How big am I?

Treemap visualization of component sizes

It processes the data from stdin and visualizes them in form of a treemap of components. The visualization happens via local Flask server and can be then accessed via browser
The input data must be in a format of:
SIZE1 LABEL1
SIZE2 LABEL2
...

Example 1

echo -e '10 Ten\n20 Twenty\n50 Fifty' | python3 howbigami.py

Example 2

How big are different installed RPM packages on my Linux system?
rpm -qa --queryformat='%{SIZE} %{NAME} %{VERSION}\n' | python3 howbigami.py

Example 3

How big are differents part of my Linux file system?
df | tail -n +2 | awk '{bytes = $2*1024; printf "%d %s %s\n",bytes, $1, $6}' | python3 howbigami.py

Example 4

How big are different part of the Linux kernel?
du -sb /lib/modules/$(uname -r)/kernel/* | sed -E 's/\/lib.*kernel\///g' | python3 howbigami/howbigami.py --no-other --fontsize=40

Help

Usage: python3 howbigami.py [-h] [--no-others] [--fontsize [FONT_SIZE]] [--ref] [--no-flask]

Optional arguments:
  -h, --help            show this help message and exit
  --no-others           Do not show label for other category
  --fontsize [FONT_SIZE]
                        Font size for labels
  --ref                 Show also reference etalon size of 10Mb
  --no-flask            Do not start flask server. Just show the figure.

The input must be coming from stdin pipe.

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

howbigami-0.1.3.tar.gz (39.1 kB view details)

Uploaded Source

File details

Details for the file howbigami-0.1.3.tar.gz.

File metadata

  • Download URL: howbigami-0.1.3.tar.gz
  • Upload date:
  • Size: 39.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.15

File hashes

Hashes for howbigami-0.1.3.tar.gz
Algorithm Hash digest
SHA256 694e730ad7b5495399cd3e31bd4a9b1e75ea2894ed31360d235979e8aa357f5b
MD5 42957f5b3937f7662f7ade7de9f1594b
BLAKE2b-256 146d6be8813b649f23ad17ffe8d7e1e3429910e7dc958c83f3566517b7e32586

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