Metadata-Version: 2.1
Name: mpi-print
Version: 0.1.0
Summary: <Enter a one-sentence description of this project here.>
Home-page: https://github.com/etijskens/mpi-print
License: MIT
Author: Bert Tijskens
Author-email: engelbert.tijskens@uantwerpen.be
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Project-URL: Repository, https://github.com/etijskens/mpi-print
Description-Content-Type: text/x-rst

*********
mpi-print
*********

Print statements from MPI programs can be confusing, as you do not now
by which rank the output was produced. The import of

.. code-block:: python

    from mpi_print import print

overloads the the builtin print function to first print the rank and
a timestamp. E.g.

.. code-block:: python

    from mpi_print import print, builtin_print
    builtin_print('hello world.') # prints:
    #   hello world.
    print('hello world.') # prints:
    #   MPI rank: 1 [timestamp: 2023-02-02 20:48:26.544420]
    #   hello world.

* Documentation: https://mpi_print.readthedocs.io

