Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

MPI for Python.

Project Description

MPY stands for “MPi for pYthon”, is a single-module wrapper for any MPI library. Just copy the then it works (needless to say, after you have MPI installed on a cluster). MPY has no external dependency other than a working MPI installation and a standard Python. The MPI installation has to be built with shared object since MPY uses ctypes as interface.

All the functions in the MPI library can be accessed by MPI().Name_Without_Leading_MPI(), and you must manually convert the arguments from Python objects to ctypes objects. Shorthand APIs and Pythonic APIs are also provided. Shorthand APIs use Python objects and can return Python objects, with the same naming convention as MPI, but all lower-cased. Pythonic APIs are Pythonic.

You can verify the “installation” of MPY by running:

$ mpiexec -n 2 python

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(5.6 kB) Copy SHA256 Hash SHA256
Source Oct 22, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting