sillon 2.0.0__tar.gz → 2.0.2__tar.gz
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.
- {sillon-2.0.0 → sillon-2.0.2}/PKG-INFO +11 -9
- {sillon-2.0.0 → sillon-2.0.2}/README.md +10 -8
- {sillon-2.0.0 → sillon-2.0.2}/packages/common/src/silloncommon/__init__.py +1 -1
- {sillon-2.0.0 → sillon-2.0.2}/packages/core/src/silloncore/display.py +35 -7
- {sillon-2.0.0 → sillon-2.0.2}/sillon.egg-info/PKG-INFO +11 -9
- {sillon-2.0.0 → sillon-2.0.2}/LICENSE +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/common/src/silloncommon/access_log.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/common/src/silloncommon/codeversion.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/common/src/silloncommon/commands.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/common/src/silloncommon/database.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/common/src/silloncommon/framing.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/common/src/silloncommon/hashing.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/common/src/silloncommon/hdf5_staging.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/common/src/silloncommon/registry.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/common/src/silloncommon/rpcHandler.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/common/src/silloncommon/socket_path.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/common/src/silloncommon/source_store.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/common/src/silloncommon/transport.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/common/src/silloncommon/user_paths.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/core/src/silloncore/__init__.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/core/src/silloncore/diff.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/core/src/silloncore/engine.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/core/src/silloncore/envhandler.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/core/src/silloncore/glob.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/core/src/silloncore/project_paths.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/core/src/silloncore/projects.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/core/src/silloncore/server/__init__.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/core/src/silloncore/server/main.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/core/src/silloncore/server/server.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/core/src/silloncore/server/visitor.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/core/src/silloncore/simulation.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/core/src/silloncore/versioncontrol.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/__init__.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/__init__.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/add.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/delete.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/diff.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/fetch.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/like.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/lineage.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/list.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/projects.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/prune.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/query.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/rename.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/report.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/show.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/trace.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/versions.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/cli/src/silloncli/main.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/__init__.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/display.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/project.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/projects.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/run.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/pyapi/src/sillonpy/__init__.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/pyapi/src/sillonpy/api.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/pyapi/src/sillonpy/daemon.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/pyapi/src/sillonpy/metadata.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/pyapi/src/sillonpy/serverCom.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/packages/pyapi/src/sillonpy/tracker.py +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/pyproject.toml +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/setup.cfg +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/sillon.egg-info/SOURCES.txt +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/sillon.egg-info/dependency_links.txt +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/sillon.egg-info/entry_points.txt +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/sillon.egg-info/requires.txt +0 -0
- {sillon-2.0.0 → sillon-2.0.2}/sillon.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sillon
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Git for simulations — log, track, query and analyze simulation runs.
|
|
5
5
|
Author-email: Guillaume Tassotti <placeholder@email.com>, Baptiste Lerat <lerat.baptiste99@proton.ch>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -92,14 +92,16 @@ sillon projects # every project on this machine, and where it is
|
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
```text
|
|
95
|
-
╭─
|
|
96
|
-
│
|
|
97
|
-
│
|
|
98
|
-
│
|
|
99
|
-
│
|
|
100
|
-
│
|
|
101
|
-
│
|
|
102
|
-
|
|
95
|
+
╭─ Shaking Lattice ─────────────────────────────────────────────────────────────────────╮
|
|
96
|
+
│ │
|
|
97
|
+
│ 2 runs logged in the project │
|
|
98
|
+
│ │
|
|
99
|
+
│ ID Run Name When Params Assets Status │
|
|
100
|
+
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ │
|
|
101
|
+
│ 39629020 trusting_cannon just now 2 2 SUCCESS │
|
|
102
|
+
│ 7e7e5330 happy_perlman just now 2 2 CRASHED │
|
|
103
|
+
│ │
|
|
104
|
+
╰───────────────────────────────────────────────────────────────────────────────────────╯
|
|
103
105
|
```
|
|
104
106
|
|
|
105
107
|
## Query it
|
|
@@ -51,14 +51,16 @@ sillon projects # every project on this machine, and where it is
|
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
```text
|
|
54
|
-
╭─
|
|
55
|
-
│
|
|
56
|
-
│
|
|
57
|
-
│
|
|
58
|
-
│
|
|
59
|
-
│
|
|
60
|
-
│
|
|
61
|
-
|
|
54
|
+
╭─ Shaking Lattice ─────────────────────────────────────────────────────────────────────╮
|
|
55
|
+
│ │
|
|
56
|
+
│ 2 runs logged in the project │
|
|
57
|
+
│ │
|
|
58
|
+
│ ID Run Name When Params Assets Status │
|
|
59
|
+
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ │
|
|
60
|
+
│ 39629020 trusting_cannon just now 2 2 SUCCESS │
|
|
61
|
+
│ 7e7e5330 happy_perlman just now 2 2 CRASHED │
|
|
62
|
+
│ │
|
|
63
|
+
╰───────────────────────────────────────────────────────────────────────────────────────╯
|
|
62
64
|
```
|
|
63
65
|
|
|
64
66
|
## Query it
|
|
@@ -15,11 +15,13 @@ free of any rich dependency.
|
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
from datetime import datetime
|
|
18
|
+
from pathlib import Path
|
|
18
19
|
|
|
19
20
|
from rich.box import SIMPLE, SIMPLE_HEAVY
|
|
20
21
|
from rich.columns import Columns
|
|
21
22
|
from rich.console import Console, Group
|
|
22
23
|
from rich.panel import Panel
|
|
24
|
+
from rich.rule import Rule
|
|
23
25
|
from rich.table import Table
|
|
24
26
|
from rich.text import Text
|
|
25
27
|
|
|
@@ -149,6 +151,13 @@ def relative_time(date_str: str) -> str:
|
|
|
149
151
|
|
|
150
152
|
|
|
151
153
|
# --- builders ---------------------------------------------------------------
|
|
154
|
+
# Panels and tables size themselves to their content, so on a wide terminal
|
|
155
|
+
# they stop where the data stops instead of stretching a handful of columns
|
|
156
|
+
# across the whole screen. This caps the one element that has no content of its
|
|
157
|
+
# own to measure.
|
|
158
|
+
MAX_RULE_WIDTH = 100
|
|
159
|
+
|
|
160
|
+
|
|
152
161
|
def themed_table(**kwargs) -> Table:
|
|
153
162
|
"""A pre-themed rich Table (foam header, wake border, zebra rows).
|
|
154
163
|
|
|
@@ -160,15 +169,24 @@ def themed_table(**kwargs) -> Table:
|
|
|
160
169
|
box=SIMPLE_HEAVY,
|
|
161
170
|
border_style=S_BORDER,
|
|
162
171
|
row_styles=S_ZEBRA,
|
|
163
|
-
expand=
|
|
172
|
+
expand=False,
|
|
164
173
|
)
|
|
165
174
|
options.update(kwargs)
|
|
166
175
|
return Table(**options)
|
|
167
176
|
|
|
168
177
|
|
|
178
|
+
def _rule(markup: str) -> None:
|
|
179
|
+
"""A section rule, capped so it stays a separator rather than a stripe.
|
|
180
|
+
|
|
181
|
+
Everything else here sizes itself to its content, so a rule drawn across a
|
|
182
|
+
200-column terminal would be the one element shouting.
|
|
183
|
+
"""
|
|
184
|
+
console.print(Rule(markup), width=min(console.width, MAX_RULE_WIDTH))
|
|
185
|
+
|
|
186
|
+
|
|
169
187
|
def themed_panel(content, title: str = None, **kwargs) -> Panel:
|
|
170
188
|
"""A pre-themed rich Panel (wake border, hull fill, left-aligned title)."""
|
|
171
|
-
options = dict(border_style=S_BORDER, style=S_PANEL_BG, padding=(1, 2))
|
|
189
|
+
options = dict(border_style=S_BORDER, style=S_PANEL_BG, padding=(1, 2), expand=False)
|
|
172
190
|
options.update(kwargs)
|
|
173
191
|
title_markup = f"[bold {c('spray')}]{title}[/]" if title else None
|
|
174
192
|
return Panel(content, title=title_markup, title_align="left", **options)
|
|
@@ -262,7 +280,7 @@ def render_run_card(report: dict):
|
|
|
262
280
|
for note in report["notes"]:
|
|
263
281
|
lines.append(Text(f"• {note}", style=f"italic {c('slate')}"))
|
|
264
282
|
|
|
265
|
-
return themed_panel(Group(*lines), title=report["name"]
|
|
283
|
+
return themed_panel(Group(*lines), title=report["name"])
|
|
266
284
|
|
|
267
285
|
|
|
268
286
|
def print_context(data: dict, project_name: str = "") -> None:
|
|
@@ -293,7 +311,8 @@ def _print_overview(runs: list, project_name: str) -> None:
|
|
|
293
311
|
)
|
|
294
312
|
|
|
295
313
|
subtitle = Text(
|
|
296
|
-
f"{len(runs)} runs logged in the project",
|
|
314
|
+
f"{len(runs)} run{'s' if len(runs) != 1 else ''} logged in the project",
|
|
315
|
+
style=f"italic {c('ember')}",
|
|
297
316
|
)
|
|
298
317
|
console.print(
|
|
299
318
|
themed_panel(Group(subtitle, Text(""), table), title=project_name or "Project")
|
|
@@ -317,7 +336,7 @@ def _print_specific(runs: list) -> None:
|
|
|
317
336
|
Text.assemble(("Language ", S_LABEL), (str(run.get("language", "N/A")), S_VALUE)),
|
|
318
337
|
Text.assemble(("Status ", S_LABEL), status_text(run.get("status"))),
|
|
319
338
|
)
|
|
320
|
-
cards.append(themed_panel(content, title=run["name"]
|
|
339
|
+
cards.append(themed_panel(content, title=run["name"]))
|
|
321
340
|
console.print(Columns(cards, equal=True, expand=False))
|
|
322
341
|
|
|
323
342
|
|
|
@@ -346,6 +365,15 @@ __all__ = [
|
|
|
346
365
|
"render_run_card",
|
|
347
366
|
"render_to_html",
|
|
348
367
|
"print_context",
|
|
368
|
+
"print_projects",
|
|
369
|
+
"print_code_versions",
|
|
370
|
+
"print_code_version_files",
|
|
371
|
+
"print_diff",
|
|
372
|
+
"print_source_diff",
|
|
373
|
+
"print_diff_across",
|
|
374
|
+
"print_similar_runs",
|
|
375
|
+
"print_landing",
|
|
376
|
+
"print_landing_outside_project",
|
|
349
377
|
"Columns",
|
|
350
378
|
"Group",
|
|
351
379
|
"Text",
|
|
@@ -471,7 +499,7 @@ def _describe_value(summary: dict) -> str:
|
|
|
471
499
|
def print_diff(result: dict) -> None:
|
|
472
500
|
"""Prints a `silloncore.engine.diff` payload."""
|
|
473
501
|
a, b = result["runs"]
|
|
474
|
-
|
|
502
|
+
_rule(f"[bold {c('foam')}]{a['name']} → {b['name']}[/]")
|
|
475
503
|
|
|
476
504
|
# --- parameters -------------------------------------------------------
|
|
477
505
|
params = result["parameters"]
|
|
@@ -584,7 +612,7 @@ def print_source_diff(source_diff: str) -> None:
|
|
|
584
612
|
if not source_diff.strip():
|
|
585
613
|
console.print(f"[{c('slate')}]No source differences to show.[/]")
|
|
586
614
|
return
|
|
587
|
-
|
|
615
|
+
_rule(f"[bold {c('wake')}]Source[/]")
|
|
588
616
|
console.print(Syntax(source_diff, "diff", theme="monokai", line_numbers=False))
|
|
589
617
|
|
|
590
618
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sillon
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Git for simulations — log, track, query and analyze simulation runs.
|
|
5
5
|
Author-email: Guillaume Tassotti <placeholder@email.com>, Baptiste Lerat <lerat.baptiste99@proton.ch>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -92,14 +92,16 @@ sillon projects # every project on this machine, and where it is
|
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
```text
|
|
95
|
-
╭─
|
|
96
|
-
│
|
|
97
|
-
│
|
|
98
|
-
│
|
|
99
|
-
│
|
|
100
|
-
│
|
|
101
|
-
│
|
|
102
|
-
|
|
95
|
+
╭─ Shaking Lattice ─────────────────────────────────────────────────────────────────────╮
|
|
96
|
+
│ │
|
|
97
|
+
│ 2 runs logged in the project │
|
|
98
|
+
│ │
|
|
99
|
+
│ ID Run Name When Params Assets Status │
|
|
100
|
+
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ │
|
|
101
|
+
│ 39629020 trusting_cannon just now 2 2 SUCCESS │
|
|
102
|
+
│ 7e7e5330 happy_perlman just now 2 2 CRASHED │
|
|
103
|
+
│ │
|
|
104
|
+
╰───────────────────────────────────────────────────────────────────────────────────────╯
|
|
103
105
|
```
|
|
104
106
|
|
|
105
107
|
## Query it
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|