Metadata-Version: 2.4
Name: ProgBar2077
Version: 0.0.0
Summary: 2077-style progress bar.
Author-email: Rui Luo <Rui.1002@proton.me>
License-Expression: MIT
Project-URL: Repository, https://github.com/rui-luo1002/ProgBar2077
Project-URL: Examples, https://github.com/rui-luo1002/ProgBar2077/tree/main/example
Keywords: C-API,template
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Dynamic: license-file

# 2077-style Progress Bar (ProgBar2077)
*Note: Codex is used during the development of this package.*

This is a Python library helps to show a 2077-style progress bar, which looks like:
```bash

 -  ┌━━━━━━━━━━━━━━━━━━━━━━─────────────────────────────────────────────┐
/!\ │ Processing                                                   │≡≡≡ │
‾‾‾ └───────────────────────────────────────────────────────────────────┘
      CURRENT PROGRESS  32%                              RUNTIME: 0.853 s

```

## How to Use:
Import packages:
```python
from progbar2077 import ProgBar
from time import time, sleep
```

Create a progress bar context manager (so that the progress bar know the status of the code within, such as exceptions):
```python
with ProgBar("Reconstructing Images") as bar:
```

Continuously update progress bar:
```python
    t = time()
    for i in range(1, 256):
        sleep(0.01) # execution
        bar.update(i/255, f"RUNTIME: {time()-t:.3f} s")
```
