sillon 2.0.1__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.1 → sillon-2.0.2}/PKG-INFO +11 -9
- {sillon-2.0.1 → sillon-2.0.2}/README.md +10 -8
- {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/__init__.py +1 -1
- {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/display.py +25 -7
- {sillon-2.0.1 → sillon-2.0.2}/sillon.egg-info/PKG-INFO +11 -9
- {sillon-2.0.1 → sillon-2.0.2}/LICENSE +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/access_log.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/codeversion.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/commands.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/database.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/framing.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/hashing.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/hdf5_staging.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/registry.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/rpcHandler.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/socket_path.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/source_store.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/transport.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/user_paths.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/__init__.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/diff.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/engine.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/envhandler.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/glob.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/project_paths.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/projects.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/server/__init__.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/server/main.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/server/server.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/server/visitor.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/simulation.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/versioncontrol.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/__init__.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/__init__.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/add.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/delete.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/diff.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/fetch.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/like.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/lineage.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/list.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/projects.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/prune.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/query.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/rename.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/report.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/show.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/trace.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/versions.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/main.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/__init__.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/display.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/project.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/projects.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/run.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/pyapi/src/sillonpy/__init__.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/pyapi/src/sillonpy/api.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/pyapi/src/sillonpy/daemon.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/pyapi/src/sillonpy/metadata.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/pyapi/src/sillonpy/serverCom.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/packages/pyapi/src/sillonpy/tracker.py +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/pyproject.toml +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/setup.cfg +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/sillon.egg-info/SOURCES.txt +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/sillon.egg-info/dependency_links.txt +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/sillon.egg-info/entry_points.txt +0 -0
- {sillon-2.0.1 → sillon-2.0.2}/sillon.egg-info/requires.txt +0 -0
- {sillon-2.0.1 → 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
|
|
@@ -21,6 +21,7 @@ from rich.box import SIMPLE, SIMPLE_HEAVY
|
|
|
21
21
|
from rich.columns import Columns
|
|
22
22
|
from rich.console import Console, Group
|
|
23
23
|
from rich.panel import Panel
|
|
24
|
+
from rich.rule import Rule
|
|
24
25
|
from rich.table import Table
|
|
25
26
|
from rich.text import Text
|
|
26
27
|
|
|
@@ -150,6 +151,13 @@ def relative_time(date_str: str) -> str:
|
|
|
150
151
|
|
|
151
152
|
|
|
152
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
|
+
|
|
153
161
|
def themed_table(**kwargs) -> Table:
|
|
154
162
|
"""A pre-themed rich Table (foam header, wake border, zebra rows).
|
|
155
163
|
|
|
@@ -161,15 +169,24 @@ def themed_table(**kwargs) -> Table:
|
|
|
161
169
|
box=SIMPLE_HEAVY,
|
|
162
170
|
border_style=S_BORDER,
|
|
163
171
|
row_styles=S_ZEBRA,
|
|
164
|
-
expand=
|
|
172
|
+
expand=False,
|
|
165
173
|
)
|
|
166
174
|
options.update(kwargs)
|
|
167
175
|
return Table(**options)
|
|
168
176
|
|
|
169
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
|
+
|
|
170
187
|
def themed_panel(content, title: str = None, **kwargs) -> Panel:
|
|
171
188
|
"""A pre-themed rich Panel (wake border, hull fill, left-aligned title)."""
|
|
172
|
-
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)
|
|
173
190
|
options.update(kwargs)
|
|
174
191
|
title_markup = f"[bold {c('spray')}]{title}[/]" if title else None
|
|
175
192
|
return Panel(content, title=title_markup, title_align="left", **options)
|
|
@@ -263,7 +280,7 @@ def render_run_card(report: dict):
|
|
|
263
280
|
for note in report["notes"]:
|
|
264
281
|
lines.append(Text(f"• {note}", style=f"italic {c('slate')}"))
|
|
265
282
|
|
|
266
|
-
return themed_panel(Group(*lines), title=report["name"]
|
|
283
|
+
return themed_panel(Group(*lines), title=report["name"])
|
|
267
284
|
|
|
268
285
|
|
|
269
286
|
def print_context(data: dict, project_name: str = "") -> None:
|
|
@@ -294,7 +311,8 @@ def _print_overview(runs: list, project_name: str) -> None:
|
|
|
294
311
|
)
|
|
295
312
|
|
|
296
313
|
subtitle = Text(
|
|
297
|
-
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')}",
|
|
298
316
|
)
|
|
299
317
|
console.print(
|
|
300
318
|
themed_panel(Group(subtitle, Text(""), table), title=project_name or "Project")
|
|
@@ -318,7 +336,7 @@ def _print_specific(runs: list) -> None:
|
|
|
318
336
|
Text.assemble(("Language ", S_LABEL), (str(run.get("language", "N/A")), S_VALUE)),
|
|
319
337
|
Text.assemble(("Status ", S_LABEL), status_text(run.get("status"))),
|
|
320
338
|
)
|
|
321
|
-
cards.append(themed_panel(content, title=run["name"]
|
|
339
|
+
cards.append(themed_panel(content, title=run["name"]))
|
|
322
340
|
console.print(Columns(cards, equal=True, expand=False))
|
|
323
341
|
|
|
324
342
|
|
|
@@ -481,7 +499,7 @@ def _describe_value(summary: dict) -> str:
|
|
|
481
499
|
def print_diff(result: dict) -> None:
|
|
482
500
|
"""Prints a `silloncore.engine.diff` payload."""
|
|
483
501
|
a, b = result["runs"]
|
|
484
|
-
|
|
502
|
+
_rule(f"[bold {c('foam')}]{a['name']} → {b['name']}[/]")
|
|
485
503
|
|
|
486
504
|
# --- parameters -------------------------------------------------------
|
|
487
505
|
params = result["parameters"]
|
|
@@ -594,7 +612,7 @@ def print_source_diff(source_diff: str) -> None:
|
|
|
594
612
|
if not source_diff.strip():
|
|
595
613
|
console.print(f"[{c('slate')}]No source differences to show.[/]")
|
|
596
614
|
return
|
|
597
|
-
|
|
615
|
+
_rule(f"[bold {c('wake')}]Source[/]")
|
|
598
616
|
console.print(Syntax(source_diff, "diff", theme="monokai", line_numbers=False))
|
|
599
617
|
|
|
600
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
|