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.2.tar.gz (8.6 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.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cligraph-0.1.2.tar.gz
  • Upload date:
  • Size: 8.6 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.2.tar.gz
Algorithm Hash digest
SHA256 edc279fe07093632280867c2ab758511fe035de16268f8d862f82b07c9ba7558
MD5 344fb8698dd284595a8df5e5f404bd4e
BLAKE2b-256 e28572c9fe69595bfa28ce42ac1ccf438ceebd1b39a6969dea7b86b91e8566b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cligraph-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3ffb96d5c4728cd0342e58847d151cf26266802b5ac9e2f0fde58da735dae501
MD5 6979e0e15fad91f1289e463fc6173c2b
BLAKE2b-256 21be42fb798bc57f127da07c81be945d38bdafee43fc460781de13504e10e551

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