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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mpy-0.1.tar.gz | 5.6 kB | Without provenance | Details for mpy-0.1.tar.gz |
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 |
Security for mpy 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.