pydftracer 2.0.0.dev0__tar.gz → 2.0.1.dev0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. pydftracer-2.0.1.dev0/.readthedocs.yml +37 -0
  2. {pydftracer-2.0.0.dev0/python/pydftracer.egg-info → pydftracer-2.0.1.dev0}/PKG-INFO +22 -5
  3. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/README.md +17 -4
  4. pydftracer-2.0.1.dev0/docs/Makefile +20 -0
  5. pydftracer-2.0.1.dev0/docs/README.md +67 -0
  6. pydftracer-2.0.1.dev0/docs/make.bat +35 -0
  7. pydftracer-2.0.1.dev0/docs/requirements.txt +5 -0
  8. pydftracer-2.0.1.dev0/docs/source/ai_ml_guide.rst +738 -0
  9. pydftracer-2.0.1.dev0/docs/source/api/ai.rst +129 -0
  10. pydftracer-2.0.1.dev0/docs/source/api/core.rst +53 -0
  11. pydftracer-2.0.1.dev0/docs/source/api/dynamo.rst +52 -0
  12. pydftracer-2.0.1.dev0/docs/source/api/env.rst +75 -0
  13. pydftracer-2.0.1.dev0/docs/source/api/index.rst +61 -0
  14. pydftracer-2.0.1.dev0/docs/source/conf.py +126 -0
  15. pydftracer-2.0.1.dev0/docs/source/developers.rst +546 -0
  16. pydftracer-2.0.1.dev0/docs/source/dynamo_guide.rst +332 -0
  17. pydftracer-2.0.1.dev0/docs/source/examples.rst +433 -0
  18. pydftracer-2.0.1.dev0/docs/source/index.rst +93 -0
  19. pydftracer-2.0.1.dev0/docs/source/installation.rst +71 -0
  20. pydftracer-2.0.1.dev0/docs/source/quickstart.rst +222 -0
  21. pydftracer-2.0.1.dev0/docs/source/type_safety.rst +482 -0
  22. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/pyproject.toml +5 -0
  23. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/dftracer/python/_version.py +3 -3
  24. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0/python/pydftracer.egg-info}/PKG-INFO +22 -5
  25. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/pydftracer.egg-info/SOURCES.txt +19 -0
  26. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/pydftracer.egg-info/requires.txt +5 -0
  27. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/LICENSE +0 -0
  28. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/MANIFEST.in +0 -0
  29. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/dftracer/python/__init__.py +0 -0
  30. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/dftracer/python/ai.py +0 -0
  31. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/dftracer/python/ai_common.py +0 -0
  32. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/dftracer/python/ai_init.py +0 -0
  33. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/dftracer/python/common.py +0 -0
  34. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/dftracer/python/dbg/__init__.py +0 -0
  35. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/dftracer/python/dbg/ai.py +0 -0
  36. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/dftracer/python/dbg/logger.py +0 -0
  37. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/dftracer/python/dynamo.py +0 -0
  38. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/dftracer/python/env.py +0 -0
  39. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/dftracer/python/logger.py +0 -0
  40. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/dftracer/python/py.typed +0 -0
  41. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/pydftracer.egg-info/dependency_links.txt +0 -0
  42. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/python/pydftracer.egg-info/top_level.txt +0 -0
  43. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/setup.cfg +0 -0
  44. {pydftracer-2.0.0.dev0 → pydftracer-2.0.1.dev0}/setup.py +0 -0
@@ -0,0 +1,37 @@
1
+ # Read the Docs configuration file for pydftracer
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ version: 2
5
+
6
+ # Set the OS, Python version and other tools you might need
7
+ build:
8
+ os: ubuntu-22.04
9
+ tools:
10
+ python: "3.11"
11
+ jobs:
12
+ post_checkout:
13
+ # Cancel building pull requests when a new commit is pushed
14
+ - |
15
+ if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git show -s --format=%B $READTHEDOCS_GIT_COMMIT_HASH | grep -qi "\[skip docs\]";
16
+ then
17
+ echo "Skipping documentation build"
18
+ exit 183
19
+ fi
20
+
21
+ # Build documentation in the "docs/" directory with Sphinx
22
+ sphinx:
23
+ configuration: docs/source/conf.py
24
+ fail_on_warning: false
25
+
26
+ # Optionally build your docs in additional formats such as PDF and ePub
27
+ formats:
28
+ - pdf
29
+ - epub
30
+
31
+ # Optional but recommended, declare the Python requirements required
32
+ # to build your documentation
33
+ python:
34
+ install:
35
+ - requirements: docs/requirements.txt
36
+ - method: pip
37
+ path: .
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydftracer
3
- Version: 2.0.0.dev0
3
+ Version: 2.0.1.dev0
4
4
  Summary: Python libs for DFTracer
5
5
  Author-email: "Hariharan Devarajan (Hari)" <hariharandev1@llnl.gov>, Ray Andrew Sinurat <raydreww@gmail.com>
6
6
  Maintainer-email: "Hariharan Devarajan (Hari)" <hariharandev1@llnl.gov>, Ray Andrew Sinurat <raydreww@gmail.com>
@@ -32,14 +32,20 @@ Requires-Dist: ruff; extra == "dev"
32
32
  Requires-Dist: mypy; extra == "dev"
33
33
  Provides-Extra: dynamo
34
34
  Requires-Dist: torch>=2.5.1; extra == "dynamo"
35
+ Provides-Extra: docs
36
+ Requires-Dist: sphinx>=5.0; extra == "docs"
37
+ Requires-Dist: sphinx-rtd-theme>=1.0; extra == "docs"
38
+ Requires-Dist: myst-parser>=0.18; extra == "docs"
35
39
  Dynamic: license-file
36
40
 
37
41
  # pydftracer
38
42
 
43
+ [![Documentation Status](https://readthedocs.org/projects/pydftracer/badge/?version=latest)](https://dftracer.readthedocs.io/projects/pydftracer/)
39
44
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
40
- [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
45
+ [![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
41
46
 
42
- A no operation (**No-Op**) Python binding for [DFTracer](https://github.com/hariharan-devarajan/dftracer) that provides seamless API compatibility without requiring the full DFTracer installation. Perfect for testing, development, and environments where you want to use DFTracer's API without the overhead of actual tracing.
47
+ A lightweight, typed Python interface for [DFTracer](https://github.com/LLNL/dftracer).
48
+ Ideal for prototyping, testing, and iterating on code that uses the DFTracer Python API before deploying the complete tracing stack.
43
49
 
44
50
  ## Purposes
45
51
 
@@ -50,8 +56,6 @@ A no operation (**No-Op**) Python binding for [DFTracer](https://github.com/hari
50
56
 
51
57
  ```bash
52
58
  pip install dftracer
53
- # with libdftracer and dftracer_utils
54
- pip install dftracer[full]
55
59
  ```
56
60
 
57
61
  ## Development
@@ -74,6 +78,19 @@ pytest tests/ --cov=dftracer --cov-report=term-missing -v -n 4 # Tests with cov
74
78
 
75
79
  ## Documentation
76
80
 
81
+ Full documentation is available at [Read the Docs](https://dftracer.readthedocs.io/projects/utils/).
82
+
83
+ To build documentation locally:
84
+
85
+ ```bash
86
+ pip install .
87
+ cd docs
88
+ pip install -r requirements.txt
89
+ make html
90
+ ```
91
+
92
+ Furthermore, if you want to enable profiling, please see resources below:
93
+
77
94
  * Building DFTracer: [https://dftracer.readthedocs.io/en/latest/build.html](https://dftracer.readthedocs.io/en/latest/build.html)
78
95
  * Integrating DFTracer: [https://dftracer.readthedocs.io/en/latest/examples.html](https://dftracer.readthedocs.io/en/latest/examples.html)
79
96
  * Visualizing DFTracer Traces: [https://dftracer.readthedocs.io/en/latest/perfetto.html](https://dftracer.readthedocs.io/en/latest/perfetto.html)
@@ -1,9 +1,11 @@
1
1
  # pydftracer
2
2
 
3
+ [![Documentation Status](https://readthedocs.org/projects/pydftracer/badge/?version=latest)](https://dftracer.readthedocs.io/projects/pydftracer/)
3
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
- [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
5
+ [![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
5
6
 
6
- A no operation (**No-Op**) Python binding for [DFTracer](https://github.com/hariharan-devarajan/dftracer) that provides seamless API compatibility without requiring the full DFTracer installation. Perfect for testing, development, and environments where you want to use DFTracer's API without the overhead of actual tracing.
7
+ A lightweight, typed Python interface for [DFTracer](https://github.com/LLNL/dftracer).
8
+ Ideal for prototyping, testing, and iterating on code that uses the DFTracer Python API before deploying the complete tracing stack.
7
9
 
8
10
  ## Purposes
9
11
 
@@ -14,8 +16,6 @@ A no operation (**No-Op**) Python binding for [DFTracer](https://github.com/hari
14
16
 
15
17
  ```bash
16
18
  pip install dftracer
17
- # with libdftracer and dftracer_utils
18
- pip install dftracer[full]
19
19
  ```
20
20
 
21
21
  ## Development
@@ -38,6 +38,19 @@ pytest tests/ --cov=dftracer --cov-report=term-missing -v -n 4 # Tests with cov
38
38
 
39
39
  ## Documentation
40
40
 
41
+ Full documentation is available at [Read the Docs](https://dftracer.readthedocs.io/projects/utils/).
42
+
43
+ To build documentation locally:
44
+
45
+ ```bash
46
+ pip install .
47
+ cd docs
48
+ pip install -r requirements.txt
49
+ make html
50
+ ```
51
+
52
+ Furthermore, if you want to enable profiling, please see resources below:
53
+
41
54
  * Building DFTracer: [https://dftracer.readthedocs.io/en/latest/build.html](https://dftracer.readthedocs.io/en/latest/build.html)
42
55
  * Integrating DFTracer: [https://dftracer.readthedocs.io/en/latest/examples.html](https://dftracer.readthedocs.io/en/latest/examples.html)
43
56
  * Visualizing DFTracer Traces: [https://dftracer.readthedocs.io/en/latest/perfetto.html](https://dftracer.readthedocs.io/en/latest/perfetto.html)
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = source
9
+ BUILDDIR = build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -0,0 +1,67 @@
1
+ # pydftracer Documentation
2
+
3
+ This directory contains the Sphinx documentation for pydftracer.
4
+
5
+ Documentation is automatically built and hosted on [Read the Docs](https://readthedocs.org/).
6
+
7
+ ## Building the Documentation
8
+
9
+ ### Prerequisites
10
+
11
+ Install the documentation dependencies:
12
+
13
+ ```bash
14
+ pip install -e ".[docs]"
15
+ ```
16
+
17
+ Or install manually:
18
+
19
+ ```bash
20
+ pip install sphinx sphinx-rtd-theme myst-parser
21
+ ```
22
+
23
+ ### Build HTML Documentation
24
+
25
+ ```bash
26
+ cd docs
27
+ make html
28
+ ```
29
+
30
+ The HTML documentation will be generated in `build/html/`. Open `build/html/index.html` in your browser.
31
+
32
+ ### Clean Build Files
33
+
34
+ ```bash
35
+ make clean
36
+ ```
37
+
38
+ ### Other Formats
39
+
40
+ ```bash
41
+ make latexpdf # Build PDF documentation (requires LaTeX)
42
+ make epub # Build EPUB documentation
43
+ make help # Show all available targets
44
+ ```
45
+
46
+ ## Documentation Structure
47
+
48
+ - `source/conf.py` - Sphinx configuration
49
+ - `source/index.rst` - Main documentation index
50
+ - `source/installation.rst` - Installation guide
51
+ - `source/quickstart.rst` - Quick start guide
52
+ - `source/ai_ml_guide.rst` - AI/ML tracing guide
53
+ - `source/dynamo_guide.rst` - PyTorch Dynamo integration guide
54
+ - `source/api/` - API reference documentation
55
+ - `core.rst` - Core tracing API
56
+ - `ai.rst` - AI/ML API
57
+ - `dynamo.rst` - Dynamo API
58
+ - `env.rst` - Environment configuration
59
+
60
+ ## Contributing
61
+
62
+ When adding new modules or features:
63
+
64
+ 1. Update the relevant `.rst` files in `source/api/`
65
+ 2. Add examples to the appropriate guide
66
+ 3. Rebuild and review the documentation
67
+ 4. Check for broken links and formatting issues
@@ -0,0 +1,35 @@
1
+ @ECHO OFF
2
+
3
+ pushd %~dp0
4
+
5
+ REM Command file for Sphinx documentation
6
+
7
+ if "%SPHINXBUILD%" == "" (
8
+ set SPHINXBUILD=sphinx-build
9
+ )
10
+ set SOURCEDIR=source
11
+ set BUILDDIR=build
12
+
13
+ %SPHINXBUILD% >NUL 2>NUL
14
+ if errorlevel 9009 (
15
+ echo.
16
+ echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17
+ echo.installed, then set the SPHINXBUILD environment variable to point
18
+ echo.to the full path of the 'sphinx-build' executable. Alternatively you
19
+ echo.may add the Sphinx directory to PATH.
20
+ echo.
21
+ echo.If you don't have Sphinx installed, grab it from
22
+ echo.https://www.sphinx-doc.org/
23
+ exit /b 1
24
+ )
25
+
26
+ if "%1" == "" goto help
27
+
28
+ %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29
+ goto end
30
+
31
+ :help
32
+ %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33
+
34
+ :end
35
+ popd
@@ -0,0 +1,5 @@
1
+ # Documentation build requirements
2
+ # This file is for ReadTheDocs compatibility
3
+ sphinx>=5.0
4
+ sphinx-rtd-theme>=1.0
5
+ myst-parser>=0.18