Skip to main content

pygrape is a python library for updating terminal output in realtime

Project description

# pygrape
[![Build Status](https://travis-ci.org/Leviathan1995/pygrape.svg?branch=master)](https://travis-ci.org/Leviathan1995/pygrape)
[![PyPI version](https://badge.fury.io/py/pygrape.svg)](https://badge.fury.io/py/pygrape)

pygrape is a python library for updating terminal output in realtime



### Usage

```python
pip3 instlal pygrape
```

### Example

```python
from pygrape import pygrape

def main():
writer = pygrape(0.05)
print("Downloading pygrape.whl (2 MB)")
bar = "█"
for i in range(101):
time.sleep(0.05)
if i % 2 == 0:
bar += "█"
writer.writer(" " + str(i) + "% |" + bar + "|")
writer.flush()
writer.stop()
```

#### Result

![gif](https://github.com/Leviathan1995/pygrape/blob/master/doc/HD.gif)

### License

MIT

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

pygrape-1.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page