A implementation of asynchronous multiprocessing with progress logging.
Project description
parallel-transform
A implementation of asynchronous multiprocessing with progress logging.
Installation
pip install parallel-transform
Functions:
transform_list_parallel( list_to_transform, transform_func, *transform_args, verbose=True, processes=-1, min_log_frequency=1000, logger=None, log_func='info')
The elements in list_to_transform
will be transformed based on the transform_func
function, with the list element as the first arg, and *transform_args
as the remaining args. If verbose is set to true, the progress every 5% or min_log_frequency
processes will be logged, whichever is less. An optional logger can be passed; if no logger is passed, the logs will go to std out.
The order of the list_to_transform is maintained.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file parallel_transform-0.0.3.tar.gz
.
File metadata
- Download URL: parallel_transform-0.0.3.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a7e0a04b0b61decc29b7ce8b83d21bfee9b113fa678a7e052f996caefbcfc07 |
|
MD5 | 81dd3741509d8364f647bd00d59052d3 |
|
BLAKE2b-256 | 63a0d480b0c057cb40cdeaf1c583b7581036c62c7d29d24df4fb666584e8e3cc |