Skip to main content

Simple charts on the command line from stdin or file

Project description

clc (command line charts)
=========================

Simple charts on the commandline (bar charts only for now). Read from stdin or
from a file.

install
-------

`pip install clc`. Done.

usage
-----

Give `clc` data on stdin or a filename, and see a command line chart.

> cat ./fixtures/sample1.dat | clc
Paris ****************************** 12
Tokyo ******* 3
London *********************************** 14
Washington ***************** 7

Adjust the width of the chart, and the symbol for the bars:

> clc ./fixtures/sample1.dat -w30 --tick='~'
Paris ~~~~~~~~~~~~ 12
Tokyo ~~~ 3
London ~~~~~~~~~~~~~~~ 14
Washington ~~~~~~~ 7

Data should be formatted as in ./fixtures:

Paris 12
Tokyo 3
London 14
Washington 7

help
----

Via `--help`:

usage: clc [-h] [--verbose] [--width WIDTH] [--tick TICK] [infile]

clc: simple charts on the command line.

positional arguments:
infile data file (or stdin)

optional arguments:
-h, --help show this help message and exit
--verbose, -v
--width WIDTH, -w WIDTH
--tick TICK, -t TICK

future
------

- better handle non-integer values
- use csv.Sniffer()
- tests
- colors
- vertical bar charts

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

clc-0.0.1.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file clc-0.0.1.tar.gz.

File metadata

  • Download URL: clc-0.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for clc-0.0.1.tar.gz
Algorithm Hash digest
SHA256 42f65f523bc8d07238017dd037a8448a6b51008779f30bcaa88b110492f2c9f2
MD5 747ba10344497fb142ef1e7688487d40
BLAKE2b-256 dbaaa0048483f46dca8926db861ddca940605ba9c578f8df7ab01fd6a3ebb2fb

See more details on using hashes here.

Supported by

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