ddlogger-0.9b5
توضیحات
Logs progress by printing dots
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ddlogger-0.9b5 |
| نام | ddlogger |
| نسخه کتابخانه | 0.9b5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kaiwen Wu |
| ایمیل نویسنده | kps6326@hotmail.com |
| آدرس صفحه اصلی | https://github.com/kkew3/dot-dot-logger |
| آدرس اینترنتی | https://pypi.org/project/ddlogger/ |
| مجوز | - |
# Dot Dot Logger
Prints dots to stdout to log the progress of a loop without knowing the total loops.
## Usage
```python
from ddlogger import ddlogger
def a_finite_generator():
# ...
# yield something
with ddlogger() as dl:
for item in a_finite_generator():
# do something that does not contain "print" statement/function
dl.update() # prints a dot
```
Suppose in the above example the `a_finite_generator` returns an iterable of length 100, then it produces
...............................................................................
.....................
where each row contains at most 79 dots. To change the number of dots in a row or the shape of the dots, see `help(ddlogger.DotDotLogger)`.
## Installation
```bash
pip install ddlogger
```
or
```bash
pip3 install ddlogger
```
نیازمندی
| مقدار | نام |
|---|---|
| - | future |
نحوه نصب
نصب پکیج whl ddlogger-0.9b5:
pip install ddlogger-0.9b5.whl
نصب پکیج tar.gz ddlogger-0.9b5:
pip install ddlogger-0.9b5.tar.gz