talira

Parallel and distributed map for Python across processes, threads and remote hosts

open sourceBSD-3-Clausefree

pathos is a Python framework for parallel and distributed computing. It gives parallel and distributed versions of map and apply that drop into serial code, with worker pools for processes, threads, parallelpython and serial runs, and launchers that start jobs on remote hosts over ssh, with RPC services wrapped in ssh tunnels. It serialises with dill and runs processes with multiprocess, both from the same project. Install it from PyPI as pathos.

Problems it solves

  • run a Python map over many cores without rewriting my serial code
  • spread a Python computation across several remote machines over ssh
  • multiprocessing fails because my function or lambda can't be pickled

Features

  • parallel and distributed map and apply as drop-in replacements
  • process, thread, parallelpython and serial worker pools
  • ssh-based launchers and ssh tunnels for remote hosts
  • nested maps for hierarchical computing

Limitations

  • Its RPC communication isn't secure by itself: remote services are meant to be wrapped in ssh tunnels.1

Alternatives

The same job

These do what pathos does.

  1. Dask Easy parallel Python that does what you need
  2. joblib Parallel loops and disk-based caching for Python functions

Compare pathos with the top 3