datacenter-layout-viewer 1.0.0__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 (52) hide show
  1. datacenter_layout_viewer-1.0.0/.gitignore +7 -0
  2. datacenter_layout_viewer-1.0.0/CHANGELOG.md +73 -0
  3. datacenter_layout_viewer-1.0.0/LICENSE +674 -0
  4. datacenter_layout_viewer-1.0.0/PKG-INFO +868 -0
  5. datacenter_layout_viewer-1.0.0/README.md +843 -0
  6. datacenter_layout_viewer-1.0.0/css/app.css +630 -0
  7. datacenter_layout_viewer-1.0.0/docs/converting-data-to-overlays.md +329 -0
  8. datacenter_layout_viewer-1.0.0/docs/releasing.md +95 -0
  9. datacenter_layout_viewer-1.0.0/examples/hostnames-results.tsv +2883 -0
  10. datacenter_layout_viewer-1.0.0/examples/hostnames.dc +42 -0
  11. datacenter_layout_viewer-1.0.0/examples/iperf/README.md +101 -0
  12. datacenter_layout_viewer-1.0.0/examples/iperf/floor.dc +93 -0
  13. datacenter_layout_viewer-1.0.0/examples/iperf/results.tsv +2127 -0
  14. datacenter_layout_viewer-1.0.0/examples/mega.dc +45 -0
  15. datacenter_layout_viewer-1.0.0/examples/mx/README.md +65 -0
  16. datacenter_layout_viewer-1.0.0/examples/mx/floor.dc +75 -0
  17. datacenter_layout_viewer-1.0.0/examples/mx/mx-results.tsv +916 -0
  18. datacenter_layout_viewer-1.0.0/examples/small-results.tsv +2893 -0
  19. datacenter_layout_viewer-1.0.0/examples/small.dc +47 -0
  20. datacenter_layout_viewer-1.0.0/examples/three-rows.dc +20 -0
  21. datacenter_layout_viewer-1.0.0/index.html +169 -0
  22. datacenter_layout_viewer-1.0.0/js/app.js +1543 -0
  23. datacenter_layout_viewer-1.0.0/js/browse.js +334 -0
  24. datacenter_layout_viewer-1.0.0/js/expand.js +121 -0
  25. datacenter_layout_viewer-1.0.0/js/filter.js +229 -0
  26. datacenter_layout_viewer-1.0.0/js/hints.js +412 -0
  27. datacenter_layout_viewer-1.0.0/js/layout.js +152 -0
  28. datacenter_layout_viewer-1.0.0/js/palette.js +128 -0
  29. datacenter_layout_viewer-1.0.0/js/parse.js +832 -0
  30. datacenter_layout_viewer-1.0.0/js/render.js +714 -0
  31. datacenter_layout_viewer-1.0.0/js/report.js +94 -0
  32. datacenter_layout_viewer-1.0.0/js/results.js +923 -0
  33. datacenter_layout_viewer-1.0.0/js/select.js +103 -0
  34. datacenter_layout_viewer-1.0.0/js/ui.js +819 -0
  35. datacenter_layout_viewer-1.0.0/js/version.js +27 -0
  36. datacenter_layout_viewer-1.0.0/pyproject.toml +82 -0
  37. datacenter_layout_viewer-1.0.0/python/dcviz/__init__.py +46 -0
  38. datacenter_layout_viewer-1.0.0/python/dcviz/__main__.py +11 -0
  39. datacenter_layout_viewer-1.0.0/python/dcviz/cli.py +98 -0
  40. datacenter_layout_viewer-1.0.0/python/dcviz/dcadd.py +214 -0
  41. datacenter_layout_viewer-1.0.0/python/dcviz/dcimport.py +348 -0
  42. datacenter_layout_viewer-1.0.0/python/dcviz/serve.py +156 -0
  43. datacenter_layout_viewer-1.0.0/tests/browser.mjs +575 -0
  44. datacenter_layout_viewer-1.0.0/tests/fixtures/README.md +39 -0
  45. datacenter_layout_viewer-1.0.0/tests/fixtures/iperf-overlay.tsv +90 -0
  46. datacenter_layout_viewer-1.0.0/tests/fixtures/mx-export/results.ndjson +77 -0
  47. datacenter_layout_viewer-1.0.0/tests/fixtures/mx-export/results.tsv +77 -0
  48. datacenter_layout_viewer-1.0.0/tests/fixtures/netmesh-reports/wr01r01u01.csv +8 -0
  49. datacenter_layout_viewer-1.0.0/tests/fixtures/netmesh-reports/wr01r01u02.csv +8 -0
  50. datacenter_layout_viewer-1.0.0/tests/run.mjs +2391 -0
  51. datacenter_layout_viewer-1.0.0/tools/dcadd +20 -0
  52. datacenter_layout_viewer-1.0.0/tools/dcimport +20 -0
@@ -0,0 +1,7 @@
1
+ node_modules/
2
+ package-lock.json
3
+ .DS_Store
4
+ dist/
5
+ build/
6
+ *.egg-info/
7
+ __pycache__/
@@ -0,0 +1,73 @@
1
+ # Changelog
2
+
3
+ The version is one number for the whole project: the viewer, the `.dc` and
4
+ results formats, `dcadd`, `dcimport` and the `datacenter-layout-viewer`
5
+ package all ship together and all report it. `dcviz --version`, `dcadd
6
+ --version` and the About box in the left panel print the same string.
7
+
8
+ Versions follow [semantic versioning](https://semver.org/) against two public
9
+ contracts — **the file formats** (`.dc` layouts, `.tsv`/JSON results) and **the
10
+ command-line tools**. A file that loads today loads on every later 1.x. The
11
+ JavaScript modules are internal: they are read, forked and patched freely, but
12
+ their shapes are not a promise.
13
+
14
+ ## 1.0.0 — 2026-09-15
15
+
16
+ First versioned release. The project has been in use, and handed over as
17
+ bundles, for some time; this is the point at which it gets a number to be
18
+ handed over *by*.
19
+
20
+ ### The viewer
21
+
22
+ - A canvas floor plan of the whole datacenter — rooms, rows, racks, nodes and
23
+ the logical networks between them — that stays interactive at ~256,000
24
+ elements and ~560,000 links (`examples/mega.dc`, 45 lines).
25
+ - Any number of simultaneous result overlays, coloured by value, with per-metric
26
+ palettes, units, direction (`higher=bad`), fixed or fitted ranges, and eight
27
+ aggregations over repeated samples.
28
+ - **Standardizing**: z-scores per metric or across all of them at once, on a
29
+ shared scale, so two metrics in different units can be compared on one floor.
30
+ The legend reads in σ *and* in real units, values that fall outside the ramp
31
+ are marked rather than clamped silently, and each card says whether σ is a
32
+ fair yardstick for that metric's distribution and whether the sample is big
33
+ enough to say so.
34
+ - A filter language (`+gpu`, `kind:rack`, `model=r76*`, `temp_c>70`, `has:iperf`,
35
+ `net:storage`), an inspector, a structure tree, and a files panel.
36
+ - A live editor with completions, a syntax reference and a template, which
37
+ re-parses on every keystroke.
38
+
39
+ ### The formats
40
+
41
+ - `.dc` layouts: indentation for nesting, range expansion (`R[01..06]`,
42
+ `A..D`, `[1..40x2]`, `[1..4,7..10]`), `{placeholder}` substitution, attribute
43
+ inheritance, tags, and network declarations with `scope`, `mode` and `cap`.
44
+ - Results: append-only `test target value [key=value ...]`, tab-, comma- or
45
+ space-separated, with `!test` metadata lines; JSON accepted as well.
46
+ `mx export` and `iperf-orchestrator export-overlay` write it natively.
47
+
48
+ ### The tools
49
+
50
+ - `dcadd` — append samples, merge files, import a CSV column, write metadata.
51
+ - `dcimport` — netmesh reports to overlay samples, with `--reduce`.
52
+ - **`dcviz serve` (new)** — serves the viewer out of the standard library,
53
+ with `--dir` mounting a directory of layouts at `/files/`. The viewer needs
54
+ a server because browsers block ES modules on `file://` URLs; this removes
55
+ the step of finding one.
56
+
57
+ ### Packaging (new)
58
+
59
+ - `pip install datacenter-layout-viewer` installs the viewer, `dcviz`, `dcadd`
60
+ and `dcimport` together, with **no runtime dependencies**. Serving a clone
61
+ with `python3 -m http.server` remains equally supported and unchanged.
62
+ - `dcadd` and `dcimport` moved to `python/dcviz/`; `tools/dcadd` and
63
+ `tools/dcimport` are shims that run them straight from a checkout, so the
64
+ copy that ships and the copy that runs are one file. Their own `1.0`/`1.2`
65
+ version numbers are retired in favour of the project's.
66
+
67
+ ### Tests
68
+
69
+ - 836 module assertions (`node tests/run.mjs`) and 55 browser assertions
70
+ driving Chromium (`node tests/browser.mjs`), both with `--strict` so a skip
71
+ is a failure. GitHub Actions runs both on every push and pull request, plus
72
+ a third job that builds the wheel, installs it clean and fetches a page from
73
+ the server it provides.