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
[![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
Release history Release notifications | RSS feed
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)