Skip to main content

Python API to the MPI Standard.

Project description

pympistandard

This library provides programmatic access to the extracted data from the MPI Standard build process. The library comes packaged with the dataset for the latest MPI Standard version. It is possible to override the database loaded with either an environment variable or passing of a path:

export "MPISTANDARD"="/my/path/to/my/apis.json"
import pympistandard as std
std.use_api_version(1, given_path="this_is_definitely_a_path")
import pympistandard as std
std.use_api_version(1, force_bundled=True)

Usage example:

import pympistandard as std
std.use_api_version(1)

if "mpi_send" in std.PROCEDURES:
    mpi_send = std.PROCEDURES.mpi_send 
    mpi_send = std.PROCEDURES["mpi_send"]

print(mpi_send.express.iso_c)
# int MPI_Send(const void* buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm)

embiggened = [proc.name for proc in std.PROCEDURES.values() if proc.has_embiggenment()]
print(f"Embiggened procedures in 4.1: {len(embiggened)}")
# 154

This module will run with core Python 3.7. If you are using an older version of Python, you can install additional PyPi packages to support the requirements of this module. This has been tested with Python 3.6:

virtualenv -m venv
source venv/bin/activate
pip install dataclasses importlib_resources

Project details


Download files

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

Source Distribution

pympistandard-0.1.2.tar.gz (70.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pympistandard-0.1.2-py3-none-any.whl (80.9 kB view details)

Uploaded Python 3

File details

Details for the file pympistandard-0.1.2.tar.gz.

File metadata

  • Download URL: pympistandard-0.1.2.tar.gz
  • Upload date:
  • Size: 70.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.28.0 CPython/3.14.6 Darwin/25.5.0

File hashes

Hashes for pympistandard-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b475bc904f7f63c584e98c180334ed1f1da18838c9d86699d5302ca53944221b
MD5 cf16b7b5b3cbf5050e4c3e9c1e4111dd
BLAKE2b-256 72e45071c64818053609e802f35d4bbc705c3d9befecf462b4f17f1f9ffb22e8

See more details on using hashes here.

File details

Details for the file pympistandard-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pympistandard-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 80.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.28.0 CPython/3.14.6 Darwin/25.5.0

File hashes

Hashes for pympistandard-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d11fa3fc84fbabef6ab05d88d000f613734127f9f8c0feeaab90dc2846e39ee7
MD5 3a75022591fceca6c83d1228bc824195
BLAKE2b-256 b1dc8f72e4e012036e9f26c8570784e8042923893543f14a4841a570252a6b69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page