graphrefly 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.
- graphrefly/__init__.py +160 -0
- graphrefly/compat/__init__.py +18 -0
- graphrefly/compat/async_utils.py +228 -0
- graphrefly/compat/asyncio_runner.py +89 -0
- graphrefly/compat/trio_runner.py +81 -0
- graphrefly/core/__init__.py +142 -0
- graphrefly/core/clock.py +20 -0
- graphrefly/core/dynamic_node.py +749 -0
- graphrefly/core/guard.py +277 -0
- graphrefly/core/meta.py +149 -0
- graphrefly/core/node.py +963 -0
- graphrefly/core/protocol.py +460 -0
- graphrefly/core/runner.py +107 -0
- graphrefly/core/subgraph_locks.py +296 -0
- graphrefly/core/sugar.py +138 -0
- graphrefly/core/versioning.py +193 -0
- graphrefly/extra/__init__.py +313 -0
- graphrefly/extra/adapters.py +2149 -0
- graphrefly/extra/backoff.py +287 -0
- graphrefly/extra/backpressure.py +113 -0
- graphrefly/extra/checkpoint.py +307 -0
- graphrefly/extra/composite.py +303 -0
- graphrefly/extra/cron.py +133 -0
- graphrefly/extra/data_structures.py +707 -0
- graphrefly/extra/resilience.py +727 -0
- graphrefly/extra/sources.py +766 -0
- graphrefly/extra/tier1.py +1067 -0
- graphrefly/extra/tier2.py +1802 -0
- graphrefly/graph/__init__.py +31 -0
- graphrefly/graph/graph.py +2249 -0
- graphrefly/integrations/__init__.py +1 -0
- graphrefly/integrations/fastapi.py +767 -0
- graphrefly/patterns/__init__.py +5 -0
- graphrefly/patterns/ai.py +2132 -0
- graphrefly/patterns/cqrs.py +515 -0
- graphrefly/patterns/memory.py +639 -0
- graphrefly/patterns/messaging.py +553 -0
- graphrefly/patterns/orchestration.py +536 -0
- graphrefly/patterns/reactive_layout/__init__.py +81 -0
- graphrefly/patterns/reactive_layout/measurement_adapters.py +276 -0
- graphrefly/patterns/reactive_layout/reactive_block_layout.py +434 -0
- graphrefly/patterns/reactive_layout/reactive_layout.py +943 -0
- graphrefly/py.typed +1 -0
- graphrefly-0.1.0.dist-info/METADATA +253 -0
- graphrefly-0.1.0.dist-info/RECORD +47 -0
- graphrefly-0.1.0.dist-info/WHEEL +4 -0
- graphrefly-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
"""Extra operators and sources (roadmap Phase 2+)."""
|
|
2
|
+
|
|
3
|
+
from graphrefly.extra.adapters import (
|
|
4
|
+
HttpBundle,
|
|
5
|
+
OTelBundle,
|
|
6
|
+
from_clickhouse_watch,
|
|
7
|
+
from_csv,
|
|
8
|
+
from_event_emitter,
|
|
9
|
+
from_fs_watch,
|
|
10
|
+
from_git_hook,
|
|
11
|
+
from_http,
|
|
12
|
+
from_kafka,
|
|
13
|
+
from_mcp,
|
|
14
|
+
from_ndjson,
|
|
15
|
+
from_otel,
|
|
16
|
+
from_prometheus,
|
|
17
|
+
from_redis_stream,
|
|
18
|
+
from_statsd,
|
|
19
|
+
from_syslog,
|
|
20
|
+
from_webhook,
|
|
21
|
+
from_websocket,
|
|
22
|
+
parse_prometheus_text,
|
|
23
|
+
parse_statsd,
|
|
24
|
+
parse_syslog,
|
|
25
|
+
sse_frame,
|
|
26
|
+
to_kafka,
|
|
27
|
+
to_redis_stream,
|
|
28
|
+
to_sse,
|
|
29
|
+
to_websocket,
|
|
30
|
+
)
|
|
31
|
+
from graphrefly.extra.backoff import (
|
|
32
|
+
NS_PER_MS,
|
|
33
|
+
NS_PER_SEC,
|
|
34
|
+
BackoffPreset,
|
|
35
|
+
BackoffStrategy,
|
|
36
|
+
JitterMode,
|
|
37
|
+
constant,
|
|
38
|
+
decorrelated_jitter,
|
|
39
|
+
exponential,
|
|
40
|
+
fibonacci,
|
|
41
|
+
linear,
|
|
42
|
+
resolve_backoff_preset,
|
|
43
|
+
with_max_attempts,
|
|
44
|
+
)
|
|
45
|
+
from graphrefly.extra.backpressure import (
|
|
46
|
+
WatermarkController,
|
|
47
|
+
WatermarkOptions,
|
|
48
|
+
create_watermark_controller,
|
|
49
|
+
)
|
|
50
|
+
from graphrefly.extra.checkpoint import (
|
|
51
|
+
CheckpointAdapter,
|
|
52
|
+
DictCheckpointAdapter,
|
|
53
|
+
FileCheckpointAdapter,
|
|
54
|
+
MemoryCheckpointAdapter,
|
|
55
|
+
SqliteCheckpointAdapter,
|
|
56
|
+
checkpoint_node_value,
|
|
57
|
+
restore_graph_checkpoint,
|
|
58
|
+
save_graph_checkpoint,
|
|
59
|
+
)
|
|
60
|
+
from graphrefly.extra.composite import (
|
|
61
|
+
DistillBundle,
|
|
62
|
+
Extraction,
|
|
63
|
+
VerifiableBundle,
|
|
64
|
+
distill,
|
|
65
|
+
verifiable,
|
|
66
|
+
)
|
|
67
|
+
from graphrefly.extra.data_structures import (
|
|
68
|
+
PubSubHub,
|
|
69
|
+
ReactiveIndexBundle,
|
|
70
|
+
ReactiveListBundle,
|
|
71
|
+
ReactiveLogBundle,
|
|
72
|
+
ReactiveMapBundle,
|
|
73
|
+
Versioned,
|
|
74
|
+
log_slice,
|
|
75
|
+
pubsub,
|
|
76
|
+
reactive_index,
|
|
77
|
+
reactive_list,
|
|
78
|
+
reactive_log,
|
|
79
|
+
reactive_map,
|
|
80
|
+
)
|
|
81
|
+
from graphrefly.extra.resilience import (
|
|
82
|
+
CircuitBreaker,
|
|
83
|
+
CircuitOpenError,
|
|
84
|
+
TokenBucket,
|
|
85
|
+
WithBreakerBundle,
|
|
86
|
+
WithStatusBundle,
|
|
87
|
+
circuit_breaker,
|
|
88
|
+
rate_limiter,
|
|
89
|
+
retry,
|
|
90
|
+
token_bucket,
|
|
91
|
+
token_tracker,
|
|
92
|
+
with_breaker,
|
|
93
|
+
with_status,
|
|
94
|
+
)
|
|
95
|
+
from graphrefly.extra.sources import (
|
|
96
|
+
cached,
|
|
97
|
+
empty,
|
|
98
|
+
first_value_from,
|
|
99
|
+
for_each,
|
|
100
|
+
from_any,
|
|
101
|
+
from_async_iter,
|
|
102
|
+
from_awaitable,
|
|
103
|
+
from_cron,
|
|
104
|
+
from_iter,
|
|
105
|
+
from_timer,
|
|
106
|
+
never,
|
|
107
|
+
of,
|
|
108
|
+
replay,
|
|
109
|
+
share,
|
|
110
|
+
share_replay,
|
|
111
|
+
throw_error,
|
|
112
|
+
to_array,
|
|
113
|
+
to_list,
|
|
114
|
+
)
|
|
115
|
+
from graphrefly.extra.tier1 import (
|
|
116
|
+
combine,
|
|
117
|
+
combine_latest,
|
|
118
|
+
concat,
|
|
119
|
+
distinct_until_changed,
|
|
120
|
+
element_at,
|
|
121
|
+
filter,
|
|
122
|
+
find,
|
|
123
|
+
first,
|
|
124
|
+
last,
|
|
125
|
+
map,
|
|
126
|
+
merge,
|
|
127
|
+
pairwise,
|
|
128
|
+
race,
|
|
129
|
+
reduce,
|
|
130
|
+
scan,
|
|
131
|
+
skip,
|
|
132
|
+
start_with,
|
|
133
|
+
take,
|
|
134
|
+
take_until,
|
|
135
|
+
take_while,
|
|
136
|
+
tap,
|
|
137
|
+
with_latest_from,
|
|
138
|
+
zip,
|
|
139
|
+
)
|
|
140
|
+
from graphrefly.extra.tier2 import (
|
|
141
|
+
audit,
|
|
142
|
+
buffer,
|
|
143
|
+
buffer_count,
|
|
144
|
+
buffer_time,
|
|
145
|
+
catch_error,
|
|
146
|
+
concat_map,
|
|
147
|
+
debounce,
|
|
148
|
+
debounce_time,
|
|
149
|
+
delay,
|
|
150
|
+
exhaust_map,
|
|
151
|
+
flat_map,
|
|
152
|
+
gate,
|
|
153
|
+
interval,
|
|
154
|
+
merge_map,
|
|
155
|
+
pausable,
|
|
156
|
+
repeat,
|
|
157
|
+
rescue,
|
|
158
|
+
sample,
|
|
159
|
+
switch_map,
|
|
160
|
+
throttle,
|
|
161
|
+
throttle_time,
|
|
162
|
+
timeout,
|
|
163
|
+
window,
|
|
164
|
+
window_count,
|
|
165
|
+
window_time,
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
__all__ = [
|
|
169
|
+
"PubSubHub",
|
|
170
|
+
"ReactiveIndexBundle",
|
|
171
|
+
"ReactiveListBundle",
|
|
172
|
+
"ReactiveLogBundle",
|
|
173
|
+
"ReactiveMapBundle",
|
|
174
|
+
"Versioned",
|
|
175
|
+
"NS_PER_MS",
|
|
176
|
+
"NS_PER_SEC",
|
|
177
|
+
"BackoffPreset",
|
|
178
|
+
"BackoffStrategy",
|
|
179
|
+
"CheckpointAdapter",
|
|
180
|
+
"CircuitBreaker",
|
|
181
|
+
"CircuitOpenError",
|
|
182
|
+
"DictCheckpointAdapter",
|
|
183
|
+
"FileCheckpointAdapter",
|
|
184
|
+
"HttpBundle",
|
|
185
|
+
"JitterMode",
|
|
186
|
+
"MemoryCheckpointAdapter",
|
|
187
|
+
"OTelBundle",
|
|
188
|
+
"SqliteCheckpointAdapter",
|
|
189
|
+
"TokenBucket",
|
|
190
|
+
"WithBreakerBundle",
|
|
191
|
+
"WithStatusBundle",
|
|
192
|
+
"cached",
|
|
193
|
+
"checkpoint_node_value",
|
|
194
|
+
"circuit_breaker",
|
|
195
|
+
"constant",
|
|
196
|
+
"decorrelated_jitter",
|
|
197
|
+
"exponential",
|
|
198
|
+
"fibonacci",
|
|
199
|
+
"linear",
|
|
200
|
+
"log_slice",
|
|
201
|
+
"empty",
|
|
202
|
+
"first_value_from",
|
|
203
|
+
"for_each",
|
|
204
|
+
"from_any",
|
|
205
|
+
"from_async_iter",
|
|
206
|
+
"from_awaitable",
|
|
207
|
+
"from_clickhouse_watch",
|
|
208
|
+
"from_cron",
|
|
209
|
+
"from_csv",
|
|
210
|
+
"from_event_emitter",
|
|
211
|
+
"from_fs_watch",
|
|
212
|
+
"from_git_hook",
|
|
213
|
+
"from_http",
|
|
214
|
+
"from_kafka",
|
|
215
|
+
"from_mcp",
|
|
216
|
+
"from_ndjson",
|
|
217
|
+
"from_otel",
|
|
218
|
+
"from_prometheus",
|
|
219
|
+
"from_redis_stream",
|
|
220
|
+
"from_statsd",
|
|
221
|
+
"from_syslog",
|
|
222
|
+
"from_websocket",
|
|
223
|
+
"from_webhook",
|
|
224
|
+
"from_iter",
|
|
225
|
+
"from_timer",
|
|
226
|
+
"never",
|
|
227
|
+
"of",
|
|
228
|
+
"parse_prometheus_text",
|
|
229
|
+
"parse_statsd",
|
|
230
|
+
"parse_syslog",
|
|
231
|
+
"pubsub",
|
|
232
|
+
"replay",
|
|
233
|
+
"share",
|
|
234
|
+
"throw_error",
|
|
235
|
+
"to_array",
|
|
236
|
+
"to_kafka",
|
|
237
|
+
"to_redis_stream",
|
|
238
|
+
"sse_frame",
|
|
239
|
+
"to_websocket",
|
|
240
|
+
"to_sse",
|
|
241
|
+
"to_list",
|
|
242
|
+
"audit",
|
|
243
|
+
"buffer",
|
|
244
|
+
"buffer_count",
|
|
245
|
+
"buffer_time",
|
|
246
|
+
"catch_error",
|
|
247
|
+
"combine",
|
|
248
|
+
"combine_latest",
|
|
249
|
+
"concat",
|
|
250
|
+
"concat_map",
|
|
251
|
+
"debounce",
|
|
252
|
+
"debounce_time",
|
|
253
|
+
"delay",
|
|
254
|
+
"distinct_until_changed",
|
|
255
|
+
"element_at",
|
|
256
|
+
"exhaust_map",
|
|
257
|
+
"filter",
|
|
258
|
+
"find",
|
|
259
|
+
"first",
|
|
260
|
+
"flat_map",
|
|
261
|
+
"gate",
|
|
262
|
+
"interval",
|
|
263
|
+
"last",
|
|
264
|
+
"map",
|
|
265
|
+
"merge",
|
|
266
|
+
"merge_map",
|
|
267
|
+
"pairwise",
|
|
268
|
+
"pausable",
|
|
269
|
+
"race",
|
|
270
|
+
"rate_limiter",
|
|
271
|
+
"reactive_index",
|
|
272
|
+
"reactive_list",
|
|
273
|
+
"reactive_log",
|
|
274
|
+
"reactive_map",
|
|
275
|
+
"reduce",
|
|
276
|
+
"repeat",
|
|
277
|
+
"rescue",
|
|
278
|
+
"resolve_backoff_preset",
|
|
279
|
+
"with_max_attempts",
|
|
280
|
+
"restore_graph_checkpoint",
|
|
281
|
+
"retry",
|
|
282
|
+
"save_graph_checkpoint",
|
|
283
|
+
"share_replay",
|
|
284
|
+
"token_bucket",
|
|
285
|
+
"token_tracker",
|
|
286
|
+
"sample",
|
|
287
|
+
"scan",
|
|
288
|
+
"skip",
|
|
289
|
+
"start_with",
|
|
290
|
+
"switch_map",
|
|
291
|
+
"take",
|
|
292
|
+
"take_until",
|
|
293
|
+
"take_while",
|
|
294
|
+
"tap",
|
|
295
|
+
"throttle",
|
|
296
|
+
"throttle_time",
|
|
297
|
+
"timeout",
|
|
298
|
+
"window",
|
|
299
|
+
"window_count",
|
|
300
|
+
"window_time",
|
|
301
|
+
"with_breaker",
|
|
302
|
+
"with_latest_from",
|
|
303
|
+
"with_status",
|
|
304
|
+
"DistillBundle",
|
|
305
|
+
"Extraction",
|
|
306
|
+
"VerifiableBundle",
|
|
307
|
+
"distill",
|
|
308
|
+
"verifiable",
|
|
309
|
+
"WatermarkController",
|
|
310
|
+
"WatermarkOptions",
|
|
311
|
+
"create_watermark_controller",
|
|
312
|
+
"zip",
|
|
313
|
+
]
|