Pre-release
This release is a pre-release and may not be stable for production use.
# 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
```
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
```
Release files for ddlogger 0.9b5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ddlogger-0.9b5.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ddlogger-0.9b5-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 5.9 kB
Release files / ddlogger-0.9b5.tar.gz
| Download URL | ddlogger-0.9b5.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e10e5195cf44cc1e068f51475de79200ca661d7f7b7724be7bde128938fa8aec
|
|
BLAKE2b-256 checksum How to use checksums |
1eef18653f5a2ac132218d3003e714ef4d62ac1e9b9f6fecf5ad5f6651c3a878
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / ddlogger-0.9b5-py2-none-any.whl
| Download URL | ddlogger-0.9b5-py2-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
e6646d7020f4bfdebb778683591725ec824ff17a6d03aa325f1795051bc9722a
|
|
BLAKE2b-256 checksum How to use checksums |
b7fc8516d041aed35b414d28d3270ee0e273a28a28d71fe73b98f253bb4b9efd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|