Skip to main content

Python tools to interact with darshan log records of HPC applications.

Project description

Python utilities to interact with Darshan log records of HPC applications. PyDarshan requires darshan-utils version 3.3 or higher to be installed.

Features

  • Darshan Report Object for common interactive analysis tasks

  • Low-level CFFI bindings for efficient access to darshan log files

  • Plots typically found in the darshan reports (matplotlib)

  • Bundled with darshan-utils while allowing site’s darshan-utils to take precedence

Usage

For examples and Jupyter notebooks to get started with pydarshan make sure to check out the examples subdirectory.

A brief examples showing some of the basic functionality is the following:

import darshan

# Open darshan log
report = darshan.DarshanReport('example.darshan', read_all=False)

# Load some report data
report.mod_read_all_records('POSIX')
report.mod_read_all_records('MPI-IO')
# or fetch all
report.read_all_generic_records()

# ...
# Generate summaries for currently loaded data
# Note: aggregations are still experimental and have to be activated:
darshan.enable_experimental()
report.summarize()

Installation

To install in most cases the following will work:

pip install --user darshan

For alternative installation instructions and installation from source refer to <docs/install.rst>

Testing

Targets for various tests are included in the makefile. To run the normal test suite use:

make test

Or to test against different version of Python using Tox:

make test-all

Coverage tests can be performed using:

make coverage

Conformance to PEPs can be tested using flake8 via:

make lint

Documentation

Documentation for the python bindings is generated seperatedly from the darshan-utils C library in the interest of using Sphinx. After installing the developement requirements using pip install -r requirements_dev.txt the documentation can be build using make as follows:

pip install -r requirements_dev.txt
make docs

File List

  • darshan::

    core darshan python module code

  • devel::

    scripts for building python wheel

  • docs::

    markdown documentation used by sphinx to auto-generate HTML RTD style doc

  • examples::

    Jupyter notebooks showing pydarshan usage with log files

  • tests::

    pydarshan specific test cases

  • requirements.txt::

    pip requirement file for minimum set of depednencies

  • requirements_dev.txt::

    pip requirement file for depednencies needed to run development tools

  • setup.py::

    python file for building/generating pydarshan package

  • setup.cfg::

    input for setup.py

  • MANIFEST.in::

    input files for setup.py package

  • tox.ini::

    input for tox which runs the automated testing

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

darshan-3.3.0.1.tar.gz (275.4 kB view hashes)

Uploaded Source

Built Distributions

darshan-3.3.0.1-py2.py3-none-any.whl (40.4 kB view hashes)

Uploaded Python 2 Python 3

darshan-3.3.0.1-cp39-cp39-manylinux2010_x86_64.whl (214.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

darshan-3.3.0.1-cp39-cp39-manylinux1_x86_64.whl (202.7 kB view hashes)

Uploaded CPython 3.9

darshan-3.3.0.1-cp39-cp39-manylinux1_i686.whl (198.1 kB view hashes)

Uploaded CPython 3.9

darshan-3.3.0.1-cp38-cp38-manylinux2010_x86_64.whl (215.0 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

darshan-3.3.0.1-cp38-cp38-manylinux1_x86_64.whl (202.9 kB view hashes)

Uploaded CPython 3.8

darshan-3.3.0.1-cp38-cp38-manylinux1_i686.whl (198.2 kB view hashes)

Uploaded CPython 3.8

darshan-3.3.0.1-cp37-cp37m-manylinux2010_x86_64.whl (216.0 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

darshan-3.3.0.1-cp37-cp37m-manylinux1_x86_64.whl (202.7 kB view hashes)

Uploaded CPython 3.7m

darshan-3.3.0.1-cp37-cp37m-manylinux1_i686.whl (198.1 kB view hashes)

Uploaded CPython 3.7m

darshan-3.3.0.1-cp36-cp36m-manylinux2010_x86_64.whl (215.1 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

darshan-3.3.0.1-cp36-cp36m-manylinux1_x86_64.whl (202.7 kB view hashes)

Uploaded CPython 3.6m

darshan-3.3.0.1-cp36-cp36m-manylinux1_i686.whl (198.1 kB view hashes)

Uploaded CPython 3.6m

Supported by

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