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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file apply_async-0.1.2.tar.gz.
File metadata
- Download URL: apply_async-0.1.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.4 Darwin/22.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f47630e587ba66c57b962e916dda45117bee09497ece6e9f3be9afbf2ff9583
|
|
| MD5 |
1e7ba0e2f3073784c9a2c499df0c008e
|
|
| BLAKE2b-256 |
a1998b8684456fa3735f5b7b73a2abcf78e636de1a1ba78a24c7b14455866871
|
File details
Details for the file apply_async-0.1.2-py3-none-any.whl.
File metadata
- Download URL: apply_async-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.4 Darwin/22.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd87d42a31387bf3c684eb0e0dec63c61eed39536e620e82925360ba8ac0d2f8
|
|
| MD5 |
96094c414b8d3dd61dd37ba11c69f9ee
|
|
| BLAKE2b-256 |
3aad5f1201115290c643709f88a4a687e751f62e5ec4cacb747ba9c092dc6ea4
|