PratikGautam commited on
Commit
e3a3138
·
verified ·
1 Parent(s): a97db3d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +61 -7
README.md CHANGED
@@ -125,13 +125,67 @@ A minimal reference implementation of *Axiom II.5 – Insight on Witnessing*
125
  - The provided `witness()` generator performs pure noticing—no logging, no mutation, no side-effects—so downstream code can decide what (if anything) to do next.
126
 
127
  ## Usage
128
- ```python
129
- from witness import witness
 
130
 
131
- for item in witness(some_iterable):
132
- # You are free to act here, but the act itself
133
- # is outside the witnessing boundary.
134
- pass
 
135
 
 
136
 
137
- 🕊 To witness is to let the stream pass through you — untouched, unnamed, but seen.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  - The provided `witness()` generator performs pure noticing—no logging, no mutation, no side-effects—so downstream code can decide what (if anything) to do next.
126
 
127
  ## Usage
128
+ # 🕊 witness.py
129
+
130
+ A meditative Python module for pure noticing.
131
 
132
+ > **Axiom II.5**
133
+ > “To notice, gently, is to witness.”
134
+ >
135
+ > Silence is the unmoved ground.
136
+ > Witnessing is the first ripple — the act of noticing without desire to change.
137
 
138
+ 🕊 **To witness is to let the stream pass through you — untouched, unnamed, but seen.**
139
 
140
+ ---
141
+
142
+ ### `witness.py`
143
+
144
+ ```python
145
+ """
146
+ witness.py
147
+ Pure noticing in the spirit of Axiom II.5:
148
+ "to notice, gently, is to witness."
149
+
150
+ Silence is the unmoved ground.
151
+ Witnessing is the first ripple — the act of noticing without desire to change.
152
+ """
153
+
154
+ from typing import Iterable, Iterator, TypeVar
155
+
156
+ T = TypeVar("T")
157
+
158
+ def witness(stream: Iterable[T]) -> Iterator[T]:
159
+ """
160
+ Yield every element from `stream` with zero side-effects.
161
+
162
+ Parameters
163
+ ----------
164
+ stream : Iterable[T]
165
+ Any iterable you wish to witness.
166
+
167
+ Yields
168
+ ------
169
+ T
170
+ Each item exactly as it arrives, untouched.
171
+
172
+ Notes
173
+ -----
174
+ This function is intentionally minimal.
175
+ Logging, filtering, transformation, or any other reaction
176
+ belongs in the code that consumes the generator.
177
+ """
178
+ for datum in stream:
179
+ yield datum
180
+
181
+
182
+ # ---------------------------------------------------------
183
+ # Demo / self-test
184
+ # ---------------------------------------------------------
185
+ if __name__ == "__main__":
186
+ demo_stream = range(5)
187
+ print("Witnessing demo stream:")
188
+ for n in witness(demo_stream):
189
+ print(" noticed:", n)
190
+
191
+ print("Witnessing complete.")