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


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.9b5.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

ddlogger-0.9b5-py2-none-any.whl (3.8 kB view details)

Uploaded Python 2

File details

Details for the file ddlogger-0.9b5.tar.gz.

File metadata

  • Download URL: ddlogger-0.9b5.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.12

File hashes

Hashes for ddlogger-0.9b5.tar.gz
Algorithm Hash digest
SHA256 e10e5195cf44cc1e068f51475de79200ca661d7f7b7724be7bde128938fa8aec
MD5 d63b8981152f3a484d7b736b92ba6000
BLAKE2b-256 1eef18653f5a2ac132218d3003e714ef4d62ac1e9b9f6fecf5ad5f6651c3a878

See more details on using hashes here.

File details

Details for the file ddlogger-0.9b5-py2-none-any.whl.

File metadata

  • Download URL: ddlogger-0.9b5-py2-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.12

File hashes

Hashes for ddlogger-0.9b5-py2-none-any.whl
Algorithm Hash digest
SHA256 e6646d7020f4bfdebb778683591725ec824ff17a6d03aa325f1795051bc9722a
MD5 cc4bf93649ed6a5e51e52ecccff78a33
BLAKE2b-256 b7fc8516d041aed35b414d28d3270ee0e273a28a28d71fe73b98f253bb4b9efd

See more details on using hashes here.

Supported by

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