Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pydftracer

Documentation Status License: MIT Python 3.9+

A lightweight, typed Python interface for DFTracer. Ideal for prototyping, testing, and iterating on code that uses the DFTracer Python API before deploying the complete tracing stack.

Purposes

  • Are prototyping applications that will eventually use full DFTracer
  • Maintain DFTracer API compatibility in environments where tracing is not needed (e.g. production apps)

Installation

pip install dftracer

Development

# Install development dependencies
pip install -e .[dev]

# Using Make (recommended)
make test-parallel       # Run all tests with parallel execution
make test-subprocess     # Run only subprocess-based dftracer tests  
make test-ci             # Run comprehensive tests matching CI configuration
make test-ci-quick       # Run quick tests and checks (faster)
make check-all           # Run all quality checks (lint, format, type-check, test)

# Using pytest directly
pytest tests/ -v -n 4    # All tests with parallel execution
pytest tests/ --cov=dftracer --cov-report=term-missing -v -n 4  # Tests with coverage

Documentation

Full documentation is available at Read the Docs.

To build documentation locally:

pip install .
cd docs
pip install -r requirements.txt
make html

Furthermore, if you want to enable profiling, please see resources below:

Development

Testing

This project uses a comprehensive test suite with subprocess-based isolation for proper dftracer testing.

Running Tests

# Install development dependencies
pip install -e .[dev]

# Using Make (recommended)
make test-parallel    # Run all tests with parallel execution
make test-subprocess  # Run only subprocess-based dftracer tests  
make test-ci          # Run tests matching CI configuration
make check-all        # Run all quality checks (lint, format, type-check, test)

# Using pytest directly
pytest tests/ -v -n 2                                    # All tests with parallel execution
pytest tests/ --cov=dftracer --cov-report=term-missing -v -n 2  # Tests with coverage
pytest tests/ -m subprocess -v -n 2                      # Only subprocess tests

# Use the provided test script (matches CI)
./scripts/test.sh

Test Structure

  • Unit Tests: General functionality tests in tests/test_general.py
  • Integration Tests: Subprocess-based dftracer tests in tests/test_dftracer.py
  • Parallel Execution: Tests run in parallel using pytest-xdist for faster execution
  • Process Isolation: dftracer tests run in separate subprocesses to handle the per-process nature of dftracer

CI/CD

The project uses GitHub Actions for continuous integration with:

  • Multi-Python version testing (3.9, 3.10, 3.11, 3.12)
  • Parallel test execution with coverage reporting
  • Code linting with ruff
  • Type checking with mypy
  • Package building and installation testing

Citation and Reference

The original SC'24 paper describes the design and implementation of the DFTracer code. Please cite this paper and the code if you use DFTracer in your research.

@inproceedings{devarajan_dftracer_2024,
    address = {Atlanta, GA},
    title = {{DFTracer}: {An} {Analysis}-{Friendly} {Data} {Flow} {Tracer} for {AI}-{Driven} {Workflows}},
    shorttitle = {{DFTracer}},
    urldate = {2024-07-31},
    booktitle = {{SC24}: {International} {Conference} for {High} {Performance} {Computing}, {Networking}, {Storage} and {Analysis}},
    publisher = {IEEE},
    author = {Devarajan, Hariharan and Pottier, Loic and Velusamy, Kaushik and Zheng, Huihuo and Yildirim, Izzet and Kogiou, Olga and Yu, Weikuan and Kougkas, Anthony and Sun, Xian-He and Yeom, Jae Seung and Mohror, Kathryn},
    month = nov,
    year = {2024},
}

@misc{devarajan_dftracer_code_2024,
    type = {Github},
    title = {Github {DFTracer}},
    shorttitle = {{DFTracer}},
    url = {https://github.com/llnl-asr/dftracer.git},
    urldate = {2024-07-31},
    journal = {DFTracer: A multi-level dataflow tracer for capture I/O calls from worklows.},
    author = {Devarajan, Hariharan and Pottier, Loic and Velusamy, Kaushik and Zheng, Huihuo and Yildirim, Izzet and Kogiou, Olga and Yu, Weikuan and Kougkas, Anthony and Sun, Xian-He and Yeom, Jae Seung and Mohror, Kathryn},
    month = jun,
    year = {2024},
}

Acknowledgments

This work was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344; and under the auspices of the National Cancer Institute (NCI) by Frederick National Laboratory for Cancer Research (FNLCR) under Contract 75N91019D00024. This research used resources of the Argonne Leadership Computing Facility, a U.S. Department of Energy (DOE) Office of Science user facility at Argonne National Laboratory and is based on research supported by the U.S. DOE Office of Science-Advanced Scientific Computing Research Program, under Contract No. DE-AC02-06CH11357. Office of Advanced Scientific Computing Research under the DOE Early Career Research Program. Also, This material is based upon work partially supported by LLNL LDRD 23-ERD-045 and 24-SI-005. LLNL-CONF-857447.

License

pydftracer is distributed under the terms of the MIT license. All new contributions must be made under this license.

See LICENSE and NOTICE for details.

SPDX-License-Identifier: MIT

LLNL-CODE-2024514 — Applied Storage Research (ASR)

Metadata

Release files for pydftracer 2.0.6.post5.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydftracer 2.0.6.post5.dev0
File Size Uploaded Provenance Actions
pydftracer-2.0.6.post5.dev0.tar.gz 60.5 kB Without provenance Details for pydftracer-2.0.6.post5.dev0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydftracer 2.0.6.post5.dev0
File Interpreter ABI Platform Actions
pydftracer-2.0.6.post5.dev0-py3-none-any.whl Python 3 none any Details for pydftracer-2.0.6.post5.dev0-py3-none-any.whl

Total release size: 92.1 kB

Release files / pydftracer-2.0.6.post5.dev0.tar.gz

Download URL pydftracer-2.0.6.post5.dev0.tar.gz
Size 60.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4723973b61bd4b181d72ba6f3f678f324037774ac8e66c22ad9c37242117bd22
BLAKE2b-256 checksum
How to use checksums
69d7dd81e599fb878ecd6653811731684bfc77578d92664c78d98954fcf7613a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pydftracer-2.0.6.post5.dev0-py3-none-any.whl

Download URL pydftracer-2.0.6.post5.dev0-py3-none-any.whl
Size 31.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
102e2701c6c16790890d69f478f44ec657338daea805943ef035d1d19e0c4ab6
BLAKE2b-256 checksum
How to use checksums
7f03405606318121879c3eec3a4be32e9cb3ae459a34283a7412f9721a91d5b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for pydftracer 2.0.6.post5.dev0

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page