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.
Files changed (68) hide show
  1. {sillon-2.0.1 → sillon-2.0.2}/PKG-INFO +11 -9
  2. {sillon-2.0.1 → sillon-2.0.2}/README.md +10 -8
  3. {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/__init__.py +1 -1
  4. {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/display.py +25 -7
  5. {sillon-2.0.1 → sillon-2.0.2}/sillon.egg-info/PKG-INFO +11 -9
  6. {sillon-2.0.1 → sillon-2.0.2}/LICENSE +0 -0
  7. {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/access_log.py +0 -0
  8. {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/codeversion.py +0 -0
  9. {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/commands.py +0 -0
  10. {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/database.py +0 -0
  11. {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/framing.py +0 -0
  12. {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/hashing.py +0 -0
  13. {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/hdf5_staging.py +0 -0
  14. {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/registry.py +0 -0
  15. {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/rpcHandler.py +0 -0
  16. {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/socket_path.py +0 -0
  17. {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/source_store.py +0 -0
  18. {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/transport.py +0 -0
  19. {sillon-2.0.1 → sillon-2.0.2}/packages/common/src/silloncommon/user_paths.py +0 -0
  20. {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/__init__.py +0 -0
  21. {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/diff.py +0 -0
  22. {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/engine.py +0 -0
  23. {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/envhandler.py +0 -0
  24. {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/glob.py +0 -0
  25. {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/project_paths.py +0 -0
  26. {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/projects.py +0 -0
  27. {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/server/__init__.py +0 -0
  28. {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/server/main.py +0 -0
  29. {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/server/server.py +0 -0
  30. {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/server/visitor.py +0 -0
  31. {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/simulation.py +0 -0
  32. {sillon-2.0.1 → sillon-2.0.2}/packages/core/src/silloncore/versioncontrol.py +0 -0
  33. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/__init__.py +0 -0
  34. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/__init__.py +0 -0
  35. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/add.py +0 -0
  36. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/delete.py +0 -0
  37. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/diff.py +0 -0
  38. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/fetch.py +0 -0
  39. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/like.py +0 -0
  40. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/lineage.py +0 -0
  41. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/list.py +0 -0
  42. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/projects.py +0 -0
  43. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/prune.py +0 -0
  44. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/query.py +0 -0
  45. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/rename.py +0 -0
  46. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/report.py +0 -0
  47. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/show.py +0 -0
  48. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/trace.py +0 -0
  49. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/commands/versions.py +0 -0
  50. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/cli/src/silloncli/main.py +0 -0
  51. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/__init__.py +0 -0
  52. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/display.py +0 -0
  53. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/project.py +0 -0
  54. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/projects.py +0 -0
  55. {sillon-2.0.1 → sillon-2.0.2}/packages/interface/sillonlab/src/sillonlab/run.py +0 -0
  56. {sillon-2.0.1 → sillon-2.0.2}/packages/pyapi/src/sillonpy/__init__.py +0 -0
  57. {sillon-2.0.1 → sillon-2.0.2}/packages/pyapi/src/sillonpy/api.py +0 -0
  58. {sillon-2.0.1 → sillon-2.0.2}/packages/pyapi/src/sillonpy/daemon.py +0 -0
  59. {sillon-2.0.1 → sillon-2.0.2}/packages/pyapi/src/sillonpy/metadata.py +0 -0
  60. {sillon-2.0.1 → sillon-2.0.2}/packages/pyapi/src/sillonpy/serverCom.py +0 -0
  61. {sillon-2.0.1 → sillon-2.0.2}/packages/pyapi/src/sillonpy/tracker.py +0 -0
  62. {sillon-2.0.1 → sillon-2.0.2}/pyproject.toml +0 -0
  63. {sillon-2.0.1 → sillon-2.0.2}/setup.cfg +0 -0
  64. {sillon-2.0.1 → sillon-2.0.2}/sillon.egg-info/SOURCES.txt +0 -0
  65. {sillon-2.0.1 → sillon-2.0.2}/sillon.egg-info/dependency_links.txt +0 -0
  66. {sillon-2.0.1 → sillon-2.0.2}/sillon.egg-info/entry_points.txt +0 -0
  67. {sillon-2.0.1 → sillon-2.0.2}/sillon.egg-info/requires.txt +0 -0
  68. {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.1
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
- ╭─ Project ──────────────────────────────────────────────────────╮
96
- │ 10 runs logged in the project │
97
- │ │
98
- │ ID Run Name When Params Assets Status │
99
- │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ │
100
- │ 39629020 trusting_cannon just now 2 2 SUCCESS │
101
- │ 7e7e5330 happy_perlman just now 2 2 CRASHED │
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
- ╭─ Project ──────────────────────────────────────────────────────╮
55
- │ 10 runs logged in the project │
56
- │ │
57
- │ ID Run Name When Params Assets Status │
58
- │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ │
59
- │ 39629020 trusting_cannon just now 2 2 SUCCESS │
60
- │ 7e7e5330 happy_perlman just now 2 2 CRASHED │
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
@@ -2,4 +2,4 @@
2
2
 
3
3
  # Single source of truth for the sillon data/format version, recorded on every
4
4
  # run (SimulationTable.sillonversion) and reused across packages.
5
- __version__ = "2.0.1"
5
+ __version__ = "2.0.2"
@@ -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=True,
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"], expand=False)
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", style=f"italic {c('ember')}"
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"], expand=False))
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
- console.rule(f"[bold {c('foam')}]{a['name']} → {b['name']}[/]")
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
- console.rule(f"[bold {c('wake')}]Source[/]")
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.1
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
- ╭─ Project ──────────────────────────────────────────────────────╮
96
- │ 10 runs logged in the project │
97
- │ │
98
- │ ID Run Name When Params Assets Status │
99
- │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ │
100
- │ 39629020 trusting_cannon just now 2 2 SUCCESS │
101
- │ 7e7e5330 happy_perlman just now 2 2 CRASHED │
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