Skip to main content

Logs progress by printing dots

Project description

# Dot Dot Logger

Prints dots to stdout to log the progress of a loop without knowing the total loops.

## Usage

```python
from ddlogger import DotDotLogger

def a_finite_generator():
# ...
# yield something

dl = DotDotLogger()
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
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ddlogger, version 0.9b4
Filename, size File type Python version Upload date Hashes
Filename, size ddlogger-0.9b4-py2-none-any.whl (3.8 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size ddlogger-0.9b4.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page