Parallel loops and disk-based caching for Python functions
open sourceBSD-3-Clausefree
joblib is a Python package for parallel computing and disk-based caching, optimized for large data and NumPy arrays. Parallel runs embarrassingly parallel loops across processes, with your own backend if you want one (Dask distributed is supported), and Memory caches a function's results on disk so it isn't recomputed. It leaves your code and flow control as unchanged as possible.
Problems it solves
- run a Python for loop across all CPU cores
- cache an expensive Python function's results on disk between runs
- save and load large NumPy arrays quickly
Features
- Parallel for multiprocessing parallel loops
- Memory for disk-based caching of function results
- fast dumping and loading of NumPy arrays
- custom parallel backends, including Dask distributed
Limitations
- Requires Python 3.11 or newer.1
Alternatives
The same job
These do what joblib does.
- pathos Parallel and distributed map for Python across processes, threads and remote hosts