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.2.0.tar.gz (70.6 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.2.0-py3-none-any.whl (80.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pympistandard-0.2.0.tar.gz
  • Upload date:
  • Size: 70.6 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.2.0.tar.gz
Algorithm Hash digest
SHA256 cc7d5aa339289ff8e981dce1af69dbdadde2efb070eab66900d130ddca20fad7
MD5 f99a3b10fff845043ccd8b9ce725925b
BLAKE2b-256 b3584f9c6e150c35462b5a696aff67767e45c2eced1a49a95ce9b81242b5fca8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pympistandard-0.2.0-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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 104fbaa99aadc82d8c65cbb59f9460485cd662f0ebd72aaa4eb2121d9ea04177
MD5 84787f7661ad144b5770cd25a37db466
BLAKE2b-256 a3b044c37de9fa688c9c7c5dca90a6c64fcdeda03b322597c317544b20424555

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