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.4.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.4-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cligraph-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 2a23a74cb6174b44c9bb1b5e9148f04a9983d69fa9bb8bdfff2dc18c30977557
MD5 b0551c653b8ca21e9294f33657a9f070
BLAKE2b-256 9385bd0bc746d04932330a479a37d45b7f76d1c7a1217ce0e88eddda06752f1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cligraph-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1e1ae851ef90a32908e62ff1f3182c90f285a26e16bc31df60a8bf54f40d1c70
MD5 220918fbb509b67ad7343a29cc0b588b
BLAKE2b-256 5b5038db5d2f116421babc51f259c0704449e651f34d20c47addc34e0a5a7388

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