Skip to main content

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

Screenshot 2023-03-29 at 6 26 16 PM

Project details


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.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

apply_async-0.1.2-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page