Skip to main content

MPY stands for “MPi for pYthon”, is a single-module wrapper for any MPI library. Just copy the mpy.py 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 mpy.py

Metadata

Release files for mpy 0.1

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

Source distribution (sdist)

Source distribution for mpy 0.1
File Size Uploaded
mpy-0.1.tar.gz 5.6 kB Details

Release files / mpy-0.1.tar.gz

Download URL mpy-0.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
edf448726984171409f0ba89746914bc7b06886acc69479769660bf1074af4e5
BLAKE2b-256 checksum
How to use checksums
9318538b363a03833f5080e6ae1e549be54fa5e5af35f51c4c84733239ec4a11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

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