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 79 dots. To change the number of dots in a row or the shape of the dots, see `help(ddlogger.DotDotLogger)`.


Project details


Download files

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

Source Distribution

ddlogger-0.9b1.tar.gz (1.3 kB view hashes)

Uploaded Source

Built Distribution

ddlogger-0.9b1-py2-none-any.whl (2.6 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page