Make chart on commanline interface.
Project description
TerminalChart
get charts on terminal It will take x and y values as an input and output a chart on the commandline or to a file. optional arguments: -h, --help show this help message and exit -t TERMINAL TERMINAL, --terminal TERMINAL TERMINAL append x and y values with the command if values are short. Like -t '1,2,3' '3,2,3' or like -t '1 2 3' '3 2 3' -f FILE, --file FILE add values in a file. like x: 1 2 3, y:3 2 3 or like x: 1,2,3, y:3,2,3 and pass the input like: -f input_file, recommended for large set of values -c CHARACTER, --character CHARACTER pass the character you want to be displayed on chart, will default to %& if none given -o OUTPUT, --output OUTPUT where you want your output to be, -o t for terminal, -o output_file for file
Installation
pip3 install terminalchart
Usage
from commandline
python3 -m terminalchart -f file.txt -o output
with character
python3 -m terminalchart -f file.txt -o t -c 'c'
from within python
from teminalchart import terminalchart as tc
tc(['-f', 'file.txt', '-o', 'output1'])
tc(['-f', 'file.txt', '-o', 'output1', '-c', 'c'])
tc(['-f', 'file.txt', '-o', 't'])
tc(['-f', 'file.txt', '-o', 't', '-c', 'c'])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for terminalchart-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 819e4e84a645d9e11feb5d9a04dacdbb84ae2b72dd0231588a42165fdfa084b5 |
|
MD5 | b9b0d31e694d66321b7ff5360e8ce623 |
|
BLAKE2b-256 | a4410dc108feac5467efdf7913bbf8d01332469a988664b337a08ba7cfe44776 |