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

### 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

### 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 details)
File details
Details for the file pygrape-1.0.tar.gz.
File metadata
- Download URL: pygrape-1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49aef83189182dac2a83ae9e3a16f94863e1aee25684aa9fbc27fd8cd0db49dc
|
|
| MD5 |
07098be03799995f09afaa35881790a7
|
|
| BLAKE2b-256 |
221674f3a2dce0cc48d6c5f8e52488019e98b935aa182da686cea85bcca87256
|