-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathryxpress.ctx.yaml
More file actions
308 lines (308 loc) · 8.46 KB
/
ryxpress.ctx.yaml
File metadata and controls
308 lines (308 loc) · 8.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
---
kind: context_header
llm_instructions: This is an LLM-optimized API specification for the Python package 'ryxpress'. Use this context to write correct code using ryxpress functions. Each 'function' record describes a public function with its signature, arguments, and purpose. The 'package' record contains metadata. All listed functions are part of the public API.
---
kind: package
schema_version: '1.1'
name: ryxpress
version: 0.2.0
language: Python
description: Trace lineage of derivations — translation of R's rxp_trace to Python.
---
kind: function
name: rxp_trace
exported: true
signature: 'rxp_trace(name: Optional[str] = None, dag_file: Union[str, Path] = Path(''_rixpress'') / ''dag.json'', transitive: bool = True, include_self: bool = False, color: bool = True)'
purpose: Trace lineage of derivations.
arguments:
color: bool
dag_file: Union[str, Path]
include_self: bool
name: Optional[str]
transitive: bool
return_type: Dict[str, Dict[str, List[str]]]
---
kind: function
name: maybe_color
exported: true
signature: 'maybe_color(node_name: str, suffix: str = '''')'
purpose: Return node name with optional colour and suffix.
arguments:
node_name: str
suffix: str
return_type: str
---
kind: function
name: print_single
exported: true
signature: 'print_single(target: str)'
arguments:
target: str
return_type: None
---
kind: function
name: print_forest_once
exported: true
signature: 'print_forest_once(roots: List[str], graph: Dict[str, List[str]], transitive_flag: bool)'
arguments:
graph: Dict[str, List[str]]
roots: List[str]
transitive_flag: bool
return_type: None
---
kind: function
name: sinks
exported: true
signature: sinks()
return_type: List[str]
---
kind: function
name: rec_dep
exported: true
signature: 'rec_dep(node: str, depth: int)'
arguments:
depth: int
node: str
return_type: None
---
kind: function
name: rec_rev
exported: true
signature: 'rec_rev(node: str, depth: int)'
arguments:
depth: int
node: str
return_type: None
---
kind: function
name: rec
exported: true
signature: 'rec(node: str, depth: int)'
arguments:
depth: int
node: str
return_type: None
---
kind: function
name: get_nodes_edges
exported: true
signature: 'get_nodes_edges(path_dag: Union[str, Path] = ''_rixpress/dag.json'')'
purpose: Read _rixpress/dag.json and return a dict with 'nodes' and 'edges'.
arguments:
path_dag: Union[str, Path]
return_type: Dict[str, List[Dict]]
---
kind: function
name: rxp_dag_for_ci
exported: true
signature: 'rxp_dag_for_ci(nodes_and_edges: Optional[Dict[str, List[Dict]]] = None, output_file: Union[str, Path] = ''_rixpress/dag.dot'')'
purpose: Build an igraph object from nodes_and_edges and write a DOT file for CI.
arguments:
nodes_and_edges: Optional[Dict[str, List[Dict]]]
output_file: Union[str, Path]
return_type: None
---
kind: function
name: rxp_phart
exported: true
signature: 'rxp_phart(dot_path: str)'
purpose: Render a DOT graph file as an ASCII diagram using phart, showing node labels.
arguments:
dot_path: str
return_type: None
---
kind: function
name: rxp_read_load_setup
exported: true
signature: 'rxp_read_load_setup(derivation_name: str, which_log: Optional[str] = None, project_path: Union[str, Path] = ''.'')'
purpose: Resolve derivation outputs.
arguments:
derivation_name: str
project_path: Union[str, Path]
which_log: Optional[str]
return_type: Union[str, List[str]]
---
kind: function
name: rxp_read
exported: true
signature: 'rxp_read(derivation_name: str, which_log: Optional[str] = None, project_path: Union[str, Path] = ''.'')'
purpose: Read the output of a derivation.
arguments:
derivation_name: str
project_path: Union[str, Path]
which_log: Optional[str]
return_type: Union[object, str, List[str]]
---
kind: function
name: rxp_load
exported: true
signature: 'rxp_load(derivation_name: str, which_log: Optional[str] = None, project_path: Union[str, Path] = ''.'')'
purpose: Load the output of a derivation into the caller's globals.
arguments:
derivation_name: str
project_path: Union[str, Path]
which_log: Optional[str]
return_type: Union[object, str, List[str]]
---
kind: function
name: rxp_init
exported: true
signature: 'rxp_init(project_path: str = ''.'', skip_prompt: bool = False)'
purpose: Initialize rixpress project files in project_path. This will generate
arguments:
project_path: str
skip_prompt: bool
return_type: bool
---
kind: function
name: rxp_list_logs
exported: true
signature: 'rxp_list_logs(project_path: Union[str, Path] = ''.'', pretty: bool = False, as_json: bool = False)'
purpose: List build logs in the project's _rixpress directory.
arguments:
as_json: bool
pretty: bool
project_path: Union[str, Path]
return_type: Optional[List[Dict[str, Union[str, float]]]]
---
kind: function
name: rxp_inspect
exported: true
signature: 'rxp_inspect(project_path: Union[str, Path] = ''.'', which_log: Optional[str] = None, pretty: bool = False, as_json: bool = False)'
purpose: Inspect the build result of a pipeline.
arguments:
as_json: bool
pretty: bool
project_path: Union[str, Path]
which_log: Optional[str]
return_type: Optional[List[Dict[str, Any]]]
---
kind: function
name: hello
exported: true
signature: hello()
purpose: Small example function to verify the package imports.
return_type: str
---
kind: function
name: rxp_copy
exported: true
signature: 'rxp_copy(derivation_name: Optional[str] = None, dir_mode: str = ''0755'', file_mode: str = ''0644'', project_path: Union[str, Path] = ''.'')'
purpose: Copy derivations from the Nix store to ./pipeline-output.
arguments:
derivation_name: Optional[str]
dir_mode: str
file_mode: str
project_path: Union[str, Path]
return_type: None
---
kind: function
name: has_cronista
exported: true
signature: has_cronista()
purpose: Check if cronista package is available.
return_type: bool
---
kind: function
name: chronicle_state
exported: true
signature: 'chronicle_state(obj: Any)'
purpose: 'Determine chronicle status: "success", "warning", or "nothing".'
arguments:
obj: Any
return_type: Optional[str]
---
kind: function
name: chronicle_status
exported: true
signature: 'chronicle_status(obj: Any)'
purpose: Get detailed chronicle status information.
arguments:
obj: Any
return_type: Optional[Dict[str, Any]]
---
kind: function
name: chronicle_symbol
exported: true
signature: 'chronicle_symbol(state: str)'
purpose: Get the display symbol for a chronicle state.
arguments:
state: str
return_type: str
---
kind: function
name: format_chronicle_message
exported: true
signature: 'format_chronicle_message(derivation_name: str, status: Dict[str, Any])'
purpose: Format chronicle status message for display.
arguments:
derivation_name: str
status: Dict[str, Any]
return_type: str
---
kind: function
name: rxp_check_chronicles
exported: true
signature: 'rxp_check_chronicles(project_path: str = ''.'', which_log: Optional[str] = None)'
purpose: Check Pipeline Outputs for Chronicle Status.
arguments:
project_path: str
which_log: Optional[str]
return_type: Optional[List[Dict[str, Any]]]
---
kind: function
name: rxp_make
exported: true
signature: 'rxp_make(script: Union[str, Path] = ''gen-pipeline.R'', verbose: int = 0, max_jobs: int = 1, cores: int = 1, rscript_cmd: str = ''Rscript'', timeout: Optional[int] = None, cwd: Optional[Union[str, Path]] = None)'
purpose: Run the rixpress R pipeline (rxp_populate + rxp_make) by sourcing an R script.
arguments:
cores: int
cwd: Optional[Union[str, Path]]
max_jobs: int
rscript_cmd: str
script: Union[str, Path]
timeout: Optional[int]
verbose: int
return_type: RRunResult
---
kind: function
name: rxp_gc
exported: true
signature: 'rxp_gc(keep_since: Optional[Union[str, date]] = None, project_path: Union[str, Path] = ''.'', dry_run: bool = True, timeout_sec: int = 300, verbose: bool = False, ask: bool = True, pretty: bool = False, as_json: bool = False)'
purpose: Garbage collect Nix store paths and build logs produced by rixpress.
arguments:
as_json: bool
ask: bool
dry_run: bool
keep_since: Optional[Union[str, date]]
pretty: bool
project_path: Union[str, Path]
timeout_sec: int
verbose: bool
return_type: Dict[str, object]
---
kind: function
name: __init__
exported: true
signature: '__init__(self, path: Union[str, Path], timeout_sec: int = 300)'
arguments:
path: Union[str, Path]
timeout_sec: int
---
kind: function
name: acquire
exported: true
signature: acquire(self)
---
kind: function
name: release
exported: true
signature: release(self)
---
kind: function
name: get_paths_from_logs
exported: true
signature: 'get_paths_from_logs(filenames: Sequence[str])'
arguments:
filenames: Sequence[str]
return_type: Dict[str, List[str]]