Skip to main content

A package inspired by tqdm, that adds an updateable graph to the cli for tracking a value within a loop.

Project description

cligraph

What is this package for?

This package prints an updating graph that can track a specified value throughout a loop.

Installing the package

pip install

pip install cligraph

git clone

git clone https://github.com/BraydenAC/cligraph.git
cd Conversation-Inference-Tree

Basic Usage Example

from cligraph import CLIGraph
import time

#Instantiate the graph object outside the loop
graph = CLIGraph(1, 5, desc='Example Graph')
example_nums = [2,2,2,3,3,4,4,5,6,5,4,5,5,4,3,3,3,3,3,2,2,1,2,3,3]

#Loop through the ints one at a time
for num in example_nums:
    #send the current num to the graph to be visualized
    graph.update(num)
    time.sleep(0.5)

Liscense

Apache 2.0

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

cligraph-0.1.3.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

cligraph-0.1.3-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file cligraph-0.1.3.tar.gz.

File metadata

  • Download URL: cligraph-0.1.3.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for cligraph-0.1.3.tar.gz
Algorithm Hash digest
SHA256 27e37db7ecb31d5b52e24016fa2196d7c0b880eac68640ecc69818bdccffe282
MD5 84e464ee240457795ec0febc054a4951
BLAKE2b-256 77a6934bbf94e9fdeb086326f635214e6d25b06cb83af2ca8d3699473d54054e

See more details on using hashes here.

File details

Details for the file cligraph-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cligraph-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for cligraph-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8d91d3a6258a72ea45f52522b4889d9082da9fd33dabbd6d529eb42477ab918e
MD5 8de391cec5e5c9fcfec78220841d832f
BLAKE2b-256 4a7533135b5e5c0095fa063b1e8f61d4a7b8d3565344b54fd17c619a56097df7

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