This project has been archived by its maintainers, and is no longer receiving any updates.
A small command-line utility to take a CSV file and print a bar chart in your terminal. Especially useful in combination with tools like CSVKit, q, and jq.
$ curl -s http://www.census.gov/popest/data/national/totals/2015/files/NST-EST2015-alldata.csv | head -n 6 | bars --label NAME --value POPESTIMATE2015 --width 72 -
NAME POPESTIMATE2015
United States 321,418,820 ▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Northeast Region 56,283,891 ▓░░░░░
Midwest Region 67,907,403 ▓░░░░░░
South Region 121,182,847 ▓░░░░░░░░░░░░
West Region 76,044,679 ▓░░░░░░░
+---------+---------------------------+
0 100,000,000 400,000,000
Repository: https://github.com/flother/bars
Installation
pip install -e git+https://github.com/flother/bars#egg=bars
Requirements
Usage
Usage: bars [OPTIONS] CSV
Load a CSV file and output a bar chart.
Options:
--label TEXT Name or index of the column containing the label values.
Defaults to the first text column.
--value TEXT Name or index of the column containing the bar values.
Defaults to the first numeric column.
--domain NUMBER... Minimum and maximum values for the chart's x-axis.
--width INTEGER Width, in characters, to use to print the chart.
[default: 80]
--skip INTEGER Number of rows to skip. [default: 0]
--encoding TEXT Character encoding of the CSV file. [default: UTF-8]
--no-header Indicates the CSV file contains no header row.
--printable Only use printable characters to draw the bar chart.
--help Show this message and exit.
Metadata
Release files for bars 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bars-0.0.1.tar.gz | 4.0 kB | Without provenance | Details for bars-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bars-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for bars-0.0.1-py3-none-any.whl |
Total release size: 10.3 kB
Release files / bars-0.0.1.tar.gz
| Download URL | bars-0.0.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37e6db3fbe2012b527034c75f95bef055ae7ca3247185776cd39817e6ad1a227
|
|
BLAKE2b-256 checksum How to use checksums |
fcbb38fc3ab8ee798c69cb143951c578fbce84790b7a2bd876e2c78ebfb2c7fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / bars-0.0.1-py3-none-any.whl
| Download URL | bars-0.0.1-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5c2ac1006760a8cc3a4c8cf65db4731bbc724bdd79d4e802abf721d093ab362
|
|
BLAKE2b-256 checksum How to use checksums |
2653878f52fb2bde34e7180f380fe7063ac0afe4b291c3127736fe571515635c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for bars 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.