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.1.tar.gz (3.5 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.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cligraph-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 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.1.tar.gz
Algorithm Hash digest
SHA256 1538bd8ba9c37c25ef50dc26d21ae1df962c691e1d007cebbfaf98f4da2b4ac3
MD5 26f30cecf49bbf90b4d6066e6fa9ca34
BLAKE2b-256 4ba1e1e2261b2ad70ff8432ab155b21efa71badf83fedf77f5aebdd627f9e571

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cligraph-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2febc0f72a7b036d656444f1699ccd5c3a8ec5c8fafb6f3f524629d10312da09
MD5 38ebd2432ba2d023177917b62666943c
BLAKE2b-256 06c9e93819af824e8179683be50cde10bd58908684aebeed7a37883aa31adfeb

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