Coverage for src / tracekit / session / __init__.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-11 23:04 +0000

1"""Session management for TraceKit analysis sessions. 

2 

3This module provides session save/restore, trace annotations, and 

4operation history tracking. 

5 

6 

7Example: 

8 >>> import tracekit as tk 

9 >>> session = tk.Session() 

10 >>> session.load_trace('capture.wfm') 

11 >>> session.annotate(time=1.5e-6, text='Glitch here') 

12 >>> session.save('debug_session.tks') 

13 >>> 

14 >>> # Later... 

15 >>> session = tk.load_session('debug_session.tks') 

16 >>> print(session.annotations) 

17""" 

18 

19from tracekit.session.annotations import Annotation, AnnotationLayer, AnnotationType 

20from tracekit.session.history import HistoryEntry, OperationHistory 

21from tracekit.session.session import Session, load_session 

22 

23__all__ = [ 

24 # Annotations (SESS-002) 

25 "Annotation", 

26 "AnnotationLayer", 

27 "AnnotationType", 

28 # History (SESS-003) 

29 "HistoryEntry", 

30 "OperationHistory", 

31 # Session (SESS-001) 

32 "Session", 

33 "load_session", 

34]