Skip to main content

Bar charts in the terminal

Project description

barz

Installation

uv tool install barz
pipx install barz

Usage

$ barz --help
usage: barz [-h] [-s] [-r] [filename]

positional arguments:
  filename

options:
  -h, --help     show this help message and exit
  -s, --sort
  -r, --reverse

$ python3 -c "print(*['asdf']*100, *['qwer']*15, *['zxcv']*34, sep='\n')" | uniq -c | barz
asdf   100 ██████████████████████████████
qwer    15 ████▌
zxcv    34 ██████████▎

$ python3 -c "print(*['asdf']*100, *['qwer']*15, *['zxcv']*34, sep='\n')" | uniq -c | barz -r
zxcv    34 ██████████▎
qwer    15 ████▌
asdf   100 ██████████████████████████████

$ python3 -c "print(*['asdf']*100, *['qwer']*15, *['zxcv']*34, sep='\n')" | uniq -c | barz -s
qwer    15 ████▌
zxcv    34 ██████████▎
asdf   100 ██████████████████████████████

$ python3 -c "print(*['asdf']*100, *['qwer']*15, *['zxcv']*34, sep='\n')" | uniq -c | barz -sr
asdf   100 ██████████████████████████████
zxcv    34 ██████████▎
qwer    15 ████▌

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

barz-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

barz-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file barz-0.1.0.tar.gz.

File metadata

  • Download URL: barz-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.10

File hashes

Hashes for barz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bc82e04cd3c9a3aa786f88f092b81015b2fddb86329a4b640a6c792f1e66c825
MD5 c3345dc16660c0066db9dff65d97bb82
BLAKE2b-256 55c2b6ae7af24c1342681e454192ec42d1648db64ef94103d558e6ce0dc22786

See more details on using hashes here.

File details

Details for the file barz-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: barz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.10

File hashes

Hashes for barz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41ea9565b586c380e4bbe559e3198f6d1d0247399dac23c44f80e6c434646164
MD5 ddacfd67abc6ed1bc027b68c5939418f
BLAKE2b-256 b00576a79cbfcc2a81f44a8a6e6310f8d4763e7de73d64b835177662e6fb3b98

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