pygrape is a python library for updating terminal output in realtime
Project description
# 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](/Users/leviathan/PycharmProjects/pygrape/doc/HD.gif)
### License
MIT
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](/Users/leviathan/PycharmProjects/pygrape/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.0.tar.gz
(1.9 kB
view hashes)