inferdiff 0.1.0__py3-none-any.whl

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.
inferdiff/__init__.py ADDED
@@ -0,0 +1,64 @@
1
+ """inferdiff: Wire-level canary doctor, regression diff, silent-failure forensics, and HTML waterfall."""
2
+
3
+ from __future__ import annotations
4
+
5
+ __version__ = "0.1.0"
6
+
7
+ from .canary import DoctorReport, ProbeResult, run_doctor
8
+ from .detectors import Finding, audit_trace, detect_d1, detect_d2, detect_d3, detect_d4, detect_d5
9
+ from .differ import DiffReport, DivergencePoint, diff_traces
10
+ from .exporter import render_audit_terminal, render_ci_summary, render_diff_terminal, render_github_issue
11
+ from .recorder import RecorderError, record_stream
12
+ from .schema import (
13
+ EXIT_OK,
14
+ EXIT_SEMANTIC_REGRESSION,
15
+ EXIT_SILENT_PROTOCOL_BREACH,
16
+ EXIT_USAGE_OR_IO_ERROR,
17
+ SCHEMA_VERSION,
18
+ TraceDocument,
19
+ TraceFrame,
20
+ TraceHeader,
21
+ TraceSchemaError,
22
+ TraceSummary,
23
+ load_trace,
24
+ write_trace,
25
+ )
26
+ from .waterfall import render_audit_html, render_diff_html, render_doctor_html
27
+
28
+ __all__ = [
29
+ "__version__",
30
+ "SCHEMA_VERSION",
31
+ "EXIT_OK",
32
+ "EXIT_USAGE_OR_IO_ERROR",
33
+ "EXIT_SILENT_PROTOCOL_BREACH",
34
+ "EXIT_SEMANTIC_REGRESSION",
35
+ "DoctorReport",
36
+ "ProbeResult",
37
+ "run_doctor",
38
+ "Finding",
39
+ "DiffReport",
40
+ "DivergencePoint",
41
+ "TraceDocument",
42
+ "TraceFrame",
43
+ "TraceHeader",
44
+ "TraceSummary",
45
+ "TraceSchemaError",
46
+ "RecorderError",
47
+ "record_stream",
48
+ "load_trace",
49
+ "write_trace",
50
+ "audit_trace",
51
+ "diff_traces",
52
+ "detect_d1",
53
+ "detect_d2",
54
+ "detect_d3",
55
+ "detect_d4",
56
+ "detect_d5",
57
+ "render_audit_terminal",
58
+ "render_diff_terminal",
59
+ "render_github_issue",
60
+ "render_ci_summary",
61
+ "render_audit_html",
62
+ "render_diff_html",
63
+ "render_doctor_html",
64
+ ]
inferdiff/__main__.py ADDED
@@ -0,0 +1,10 @@
1
+ """Module entry point for `python -m inferdiff`."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import sys
6
+
7
+ from .cli import main
8
+
9
+ if __name__ == "__main__":
10
+ raise SystemExit(main(sys.argv[1:]))