traceact 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.
@@ -0,0 +1,94 @@
1
+ Metadata-Version: 2.4
2
+ Name: traceact
3
+ Version: 0.1.0
4
+ Summary: X-ray vision for your code. Lightweight action-level tracing for Python.
5
+ Author: Mohammed Shehu
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://mohammedshehu.com
8
+ Project-URL: Repository, https://github.com/traceact/traceact
9
+ Keywords: tracing,observability,debugging,devtools,ai-agents
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Software Development :: Debuggers
18
+ Classifier: Topic :: System :: Logging
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Provides-Extra: dev
23
+ Requires-Dist: pytest>=7.0; extra == "dev"
24
+ Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
25
+ Dynamic: license-file
26
+
27
+ # TraceAct
28
+
29
+ X-ray vision for your code.
30
+
31
+ TraceAct is a lightweight Python package for action-level tracing. It records the full story of what happens when a function runs — every step taken, every resource touched, every event recorded, and every failure encountered — so you can understand what actually happened without guessing.
32
+
33
+ Built for AI coding agents and human developers alike.
34
+
35
+ ## Install
36
+
37
+ ```bash
38
+ pip install traceact
39
+ ```
40
+
41
+ Or from source:
42
+
43
+ ```bash
44
+ pip install -e .
45
+ ```
46
+
47
+ ## Quick start
48
+
49
+ ```python
50
+ from traceact import traced_action, configure, TraceConfig, JsonlSink
51
+
52
+ configure(
53
+ config=TraceConfig(sink_mode="blocking"),
54
+ sinks=[JsonlSink("data/traces.jsonl")],
55
+ )
56
+
57
+ @traced_action(action="note.create", kind="app", actor="user")
58
+ def create_note(title, body):
59
+ ...
60
+ ```
61
+
62
+ ## Manual tracing
63
+
64
+ ```python
65
+ from traceact import ActionTrace
66
+
67
+ with ActionTrace.start(action="note.create", kind="app") as trace:
68
+ trace.input({"title": "Hello"})
69
+ trace.step("Validated input")
70
+ trace.event(kind="db", operation="insert", target="notes")
71
+ trace.output({"note_id": "note_123"})
72
+ ```
73
+
74
+ ## Concepts
75
+
76
+ | Concept | Meaning |
77
+ |---|---|
78
+ | `Trace` | The full story of one action |
79
+ | `Step` | A human-readable timeline marker |
80
+ | `Event` | A structured operation (db, http, file, model, etc.) |
81
+ | `Touch` | A resource involved in the trace |
82
+ | `Sink` | Where the trace is written |
83
+
84
+ ## Requirements
85
+
86
+ Python 3.9+. No runtime dependencies.
87
+
88
+ ## License
89
+
90
+ MIT
91
+
92
+ ---
93
+
94
+ Built by [Mo Shehu](https://mohammedshehu.com).
@@ -0,0 +1,14 @@
1
+ traceact/__init__.py,sha256=sMq5qteI9idXvFF2yiISXwyOB8HbaQMmTr9_zPdfzLg,1362
2
+ traceact/budget.py,sha256=fYcIZbiDk5QhZN5Dc2RAcJE5QKG1D0sk6I6HTHBG1P0,4249
3
+ traceact/config.py,sha256=4IgTmBUB60crCW7gzlez1ShxTDW6xd5eEkdZILv4Tfc,8083
4
+ traceact/context.py,sha256=2XM8PTc857Xhez9BJjCRfT3s_BmnhgymWArBPsI0yN4,4934
5
+ traceact/decorators.py,sha256=mjcOWJ1MZGxafYQom4q9TbDioMRK-NAL0S6d7SnUSvc,15722
6
+ traceact/helpers.py,sha256=aPTCayuzRwg6Oj4uuVTDzz4-fEjF-cmR1AmwyCDKDqM,4309
7
+ traceact/ids.py,sha256=Pc6LwHQQwuLrPlKrYV933HGgjSUTi-j1Ulv_OKDLIrE,1994
8
+ traceact/sinks.py,sha256=eUUm5t0NOhrn2bDkJMmwiEzToskv8a1JnaaDS0YQ32M,6354
9
+ traceact/trace.py,sha256=vCGgywUtddsKNC26bNq1AiUlY4L8jYTEAUI576nLAGY,45954
10
+ traceact-0.1.0.dist-info/licenses/LICENSE,sha256=76IWhiLn3BGteRUpqvBhZGru-yLseXQqKcOQA-zUh6g,1071
11
+ traceact-0.1.0.dist-info/METADATA,sha256=x5HEn4_cjBclAX_GDiSSHjlQFZL608jBCcyJkHpEXw0,2527
12
+ traceact-0.1.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
13
+ traceact-0.1.0.dist-info/top_level.txt,sha256=yHKwgc84AGGiGWWHvU-qE-DD5QKe8vn-Sb79QxFG1Ho,9
14
+ traceact-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (83.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mohammed Shehu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ traceact