ssot-views 0.2.26.dev1__tar.gz → 0.3.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.
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/PKG-INFO +4 -5
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/pyproject.toml +4 -5
- ssot_views-0.3.0/src/ssot_views/graph/workspace.py +47 -0
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/src/ssot_views.egg-info/PKG-INFO +4 -5
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/src/ssot_views.egg-info/SOURCES.txt +1 -0
- ssot_views-0.3.0/src/ssot_views.egg-info/requires.txt +1 -0
- ssot_views-0.2.26.dev1/src/ssot_views.egg-info/requires.txt +0 -4
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/README.md +0 -0
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/setup.cfg +0 -0
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/src/ssot_views/__init__.py +0 -0
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/src/ssot_views/graph/__init__.py +0 -0
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/src/ssot_views/graph/export_dot.py +0 -0
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/src/ssot_views/graph/export_json.py +0 -0
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/src/ssot_views/reports/__init__.py +0 -0
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/src/ssot_views/reports/certification_report.py +0 -0
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/src/ssot_views/reports/summary.py +0 -0
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/src/ssot_views/reports/validation_report.py +0 -0
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/src/ssot_views.egg-info/dependency_links.txt +0 -0
- {ssot_views-0.2.26.dev1 → ssot_views-0.3.0}/src/ssot_views.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ssot-views
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Derived projections, reports, and graph exports for SSOT.
|
|
5
5
|
Author-email: Jacob Stewart <jacob@swarmauri.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -15,21 +15,20 @@ Classifier: Intended Audience :: Developers
|
|
|
15
15
|
Classifier: Operating System :: OS Independent
|
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
|
17
17
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.14
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
23
23
|
Classifier: Topic :: Database
|
|
24
24
|
Classifier: Topic :: Office/Business
|
|
25
25
|
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
26
26
|
Classifier: Topic :: Software Development :: Documentation
|
|
27
27
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
28
28
|
Classifier: Topic :: Utilities
|
|
29
|
-
Requires-Python: <3.
|
|
29
|
+
Requires-Python: <3.16,>=3.11
|
|
30
30
|
Description-Content-Type: text/markdown
|
|
31
|
-
Requires-Dist: ssot-contracts==0.
|
|
32
|
-
Requires-Dist: tomli>=2.0.1; python_version < "3.11"
|
|
31
|
+
Requires-Dist: ssot-contracts==0.3.0
|
|
33
32
|
|
|
34
33
|
<div align="center">
|
|
35
34
|
<h1>🔷 ssot-views</h1>
|
|
@@ -4,15 +4,14 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ssot-views"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.3.0"
|
|
8
8
|
description = "Derived projections, reports, and graph exports for SSOT."
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.11,<3.16"
|
|
11
11
|
license = "Apache-2.0"
|
|
12
12
|
authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
|
|
13
13
|
dependencies = [
|
|
14
|
-
"ssot-contracts==0.
|
|
15
|
-
"tomli>=2.0.1; python_version < '3.11'",
|
|
14
|
+
"ssot-contracts==0.3.0",
|
|
16
15
|
]
|
|
17
16
|
keywords = ["ssot", "views", "reports", "graph", "projections", "visualization", "registry"]
|
|
18
17
|
classifiers = [
|
|
@@ -22,11 +21,11 @@ classifiers = [
|
|
|
22
21
|
"Operating System :: OS Independent",
|
|
23
22
|
"Programming Language :: Python :: 3",
|
|
24
23
|
"Programming Language :: Python :: 3 :: Only",
|
|
25
|
-
"Programming Language :: Python :: 3.10",
|
|
26
24
|
"Programming Language :: Python :: 3.11",
|
|
27
25
|
"Programming Language :: Python :: 3.12",
|
|
28
26
|
"Programming Language :: Python :: 3.13",
|
|
29
27
|
"Programming Language :: Python :: 3.14",
|
|
28
|
+
"Programming Language :: Python :: 3.15",
|
|
30
29
|
"Topic :: Database",
|
|
31
30
|
"Topic :: Office/Business",
|
|
32
31
|
"Topic :: Scientific/Engineering :: Information Analysis",
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
from typing import Any
|
|
5
|
+
|
|
6
|
+
from .export_json import build_graph_json
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def build_workspace_graph(registries: dict[str, dict[str, Any]]) -> dict[str, Any]:
|
|
10
|
+
nodes = []
|
|
11
|
+
edges = []
|
|
12
|
+
catalog_nodes = set()
|
|
13
|
+
for member, registry in registries.items():
|
|
14
|
+
local = build_graph_json(registry)
|
|
15
|
+
nodes.extend({**node, "id": f"{member}/{node['id']}", "registry_id": member} for node in local["nodes"])
|
|
16
|
+
edges.extend({
|
|
17
|
+
**edge, "from": f"{member}/{edge['from']}", "to": f"{member}/{edge['to']}",
|
|
18
|
+
} for edge in local["edges"])
|
|
19
|
+
for section, field, target_id, relation in (
|
|
20
|
+
("boundaries", "workspace_members", "boundary_id", "COMPOSES_BOUNDARY"),
|
|
21
|
+
("releases", "workspace_components", "release_id", "PINS_RELEASE"),
|
|
22
|
+
):
|
|
23
|
+
for row in registry[section]:
|
|
24
|
+
for ref in row.get(field, []):
|
|
25
|
+
edges.append({
|
|
26
|
+
"from": f"{member}/{row['id']}", "to": f"{ref['registry_id']}/{ref[target_id]}", "type": relation,
|
|
27
|
+
})
|
|
28
|
+
state = registry["repo"].get("managed_docs") or {}
|
|
29
|
+
for source, digest in sorted(state.get("source_locks", {}).items()):
|
|
30
|
+
catalog_node = f"{state['catalog_registry_id']}/catalog:{source}@{digest}"
|
|
31
|
+
if catalog_node not in catalog_nodes:
|
|
32
|
+
nodes.append({
|
|
33
|
+
"id": catalog_node, "kind": "catalog", "title": source, "registry_id": state["catalog_registry_id"],
|
|
34
|
+
})
|
|
35
|
+
catalog_nodes.add(catalog_node)
|
|
36
|
+
for section in ("adrs", "specs"):
|
|
37
|
+
for row in registry[section]:
|
|
38
|
+
if row.get("catalog_source") == source:
|
|
39
|
+
edges.append({"from": f"{member}/{row['id']}", "to": catalog_node, "type": "LOCKED_TO"})
|
|
40
|
+
return {"nodes": nodes, "edges": edges}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def render_workspace_dot(graph: dict[str, Any]) -> str:
|
|
44
|
+
lines = ["digraph workspace {"]
|
|
45
|
+
lines.extend(f" {json.dumps(node['id'])} [label={json.dumps(node.get('title', node['id']))}];" for node in graph["nodes"])
|
|
46
|
+
lines.extend(f" {json.dumps(edge['from'])} -> {json.dumps(edge['to'])} [label={json.dumps(edge['type'])}];" for edge in graph["edges"])
|
|
47
|
+
return "\n".join([*lines, "}", ""])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ssot-views
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Derived projections, reports, and graph exports for SSOT.
|
|
5
5
|
Author-email: Jacob Stewart <jacob@swarmauri.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -15,21 +15,20 @@ Classifier: Intended Audience :: Developers
|
|
|
15
15
|
Classifier: Operating System :: OS Independent
|
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
|
17
17
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.14
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
23
23
|
Classifier: Topic :: Database
|
|
24
24
|
Classifier: Topic :: Office/Business
|
|
25
25
|
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
26
26
|
Classifier: Topic :: Software Development :: Documentation
|
|
27
27
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
28
28
|
Classifier: Topic :: Utilities
|
|
29
|
-
Requires-Python: <3.
|
|
29
|
+
Requires-Python: <3.16,>=3.11
|
|
30
30
|
Description-Content-Type: text/markdown
|
|
31
|
-
Requires-Dist: ssot-contracts==0.
|
|
32
|
-
Requires-Dist: tomli>=2.0.1; python_version < "3.11"
|
|
31
|
+
Requires-Dist: ssot-contracts==0.3.0
|
|
33
32
|
|
|
34
33
|
<div align="center">
|
|
35
34
|
<h1>🔷 ssot-views</h1>
|
|
@@ -9,6 +9,7 @@ src/ssot_views.egg-info/top_level.txt
|
|
|
9
9
|
src/ssot_views/graph/__init__.py
|
|
10
10
|
src/ssot_views/graph/export_dot.py
|
|
11
11
|
src/ssot_views/graph/export_json.py
|
|
12
|
+
src/ssot_views/graph/workspace.py
|
|
12
13
|
src/ssot_views/reports/__init__.py
|
|
13
14
|
src/ssot_views/reports/certification_report.py
|
|
14
15
|
src/ssot_views/reports/summary.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ssot-contracts==0.3.0
|
|
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
|