Skip to main content

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

Release files for apply-async 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apply-async 0.1.2
File Size Uploaded
apply_async-0.1.2.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apply-async 0.1.2
File Interpreter ABI Platform
apply_async-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 kB

Release files / apply_async-0.1.2.tar.gz

Download URL apply_async-0.1.2.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8f47630e587ba66c57b962e916dda45117bee09497ece6e9f3be9afbf2ff9583
BLAKE2b-256 checksum
How to use checksums
a1998b8684456fa3735f5b7b73a2abcf78e636de1a1ba78a24c7b14455866871
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.4 Darwin/22.4.0

Release files / apply_async-0.1.2-py3-none-any.whl

Download URL apply_async-0.1.2-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd87d42a31387bf3c684eb0e0dec63c61eed39536e620e82925360ba8ac0d2f8
BLAKE2b-256 checksum
How to use checksums
3aad5f1201115290c643709f88a4a687e751f62e5ec4cacb747ba9c092dc6ea4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.4 Darwin/22.4.0

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page