Skip to main content

TermChart

Draw ascii line charts in terminal.

termchart_screenshot

Install

pip3 install termchart

USage

Create a Python file :

import termchart

graph = termchart.Graph([1,2,3,2,5,1,-1,-5,-3])
graph.draw()

You can change the plot (default is +):

graph.setDot('|')

Change the width and height (default cols is 160x50)

graph.setCols(200)
graph.setRows(40)

Add values whenever you need it with addData(<Float>). Here is a full example for a live graph with random values :

import termchart
import time
import os
from random import randint

graph = termchart.Graph([])
while True:
    rand = randint(0, 9)
    graph.addData(rand)
    graph.draw()
    time.sleep(1)
    os.system('cls' if os.name == 'nt' else 'clear')

Donate

https://en.jeffprod.com/donate/

Metadata

Release files for termchart 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for termchart 0.0.4
File Size Uploaded
termchart-0.0.4.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for termchart 0.0.4
File Interpreter ABI Platform
termchart-0.0.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 5.4 kB

Release files / termchart-0.0.4.tar.gz

Download URL termchart-0.0.4.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
eea41f61472c8b2b438687e08b12585ea120e21aea39f15a46f0e749044c43e1
BLAKE2b-256 checksum
How to use checksums
cc408c9ca187e8a145aac8795124517adc7dc576d3dcce218cf714107d9d53d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

Release files / termchart-0.0.4-py2.py3-none-any.whl

Download URL termchart-0.0.4-py2.py3-none-any.whl
Size 2.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
858b948feee7c21f9dda2c63fd820bd55a4d08d34bf45ba2a0f5b99efc873b18
BLAKE2b-256 checksum
How to use checksums
84daf92eeb6629af47fc9f322b1585f02e6e63c880c80459e0df1fd89f2f1e88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page