tqdm_batch
Batch processing using joblib including tqdm progress bars
Add batch processing to joblib, including tqdm progress bars.
Install
pip install tqdm_batch
Usage
Process a list of items using a function.
from tqdm_batch import batch_process
import random
import time
def batch_process_function(row, some_var):
time.sleep(0.01)
return row + random.randint(0, some_var)
N = 1_000
items = range(N)
result = batch_process(
items,
batch_process_function,
some_var=42,
n_workers=6,
sep_progress=True,
)
Release files for tqdm-batch 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tqdm_batch-0.1.0.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tqdm_batch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.3 kB
Release files / tqdm_batch-0.1.0.tar.gz
| Download URL | tqdm_batch-0.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee99acc7cf917944b8b480cc1db54ef25311dc4d29430f73579cc7b7c0d7e2e2
|
|
BLAKE2b-256 checksum How to use checksums |
1b0d13fa7ab620bad63ab667fd8f98e7a0c9fbb19fac4c0475625fb369bab7cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Release files / tqdm_batch-0.1.0-py3-none-any.whl
| Download URL | tqdm_batch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd5afc95698c401eb9b395ce216e9b818ee195feba9b2c6059ae707cb62f2d59
|
|
BLAKE2b-256 checksum How to use checksums |
a152483432667a397a9ca38b3cc7c711690206038d8b5705efeb8fde161c0e9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|