No project description provided
Project description
apply_async
If you have a large number of files and you need to apply a function to each of them to get some outputs, then this is for you.
This provides a function called apply_async
which takes in a list of filenames and a function to apply, and does the following for you:
- batches the files
- applies your function to each batch asynchronously
- controls the number of batches to process at a time, and automatically adds new batches when old ones complete
- shows a progress bar for each batch
Installation
From pip:
pip install apply_async
Latest version (from source):
pip install "git+https://github.com/al-jshen/apply_async"
Demo
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
apply_async-0.1.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for apply_async-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65eef198a4fec158c38979ad2fd0267edf4009f7bdc019cd31c1704119945aa2 |
|
MD5 | f76dfa52d051cf44fd4754bef277717f |
|
BLAKE2b-256 | 65335b244ac633d754698f433cf757b3f743e216190f623d6def54b05573de4f |