sysatlas 0.2.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.
- sysatlas-0.2.0/.claude/CLAUDE.md +81 -0
- sysatlas-0.2.0/.github/FUNDING.yml +1 -0
- sysatlas-0.2.0/.github/workflows/publish.yml +21 -0
- sysatlas-0.2.0/.gitignore +21 -0
- sysatlas-0.2.0/LICENSE +201 -0
- sysatlas-0.2.0/PKG-INFO +131 -0
- sysatlas-0.2.0/README.md +103 -0
- sysatlas-0.2.0/docs/README.md +255 -0
- sysatlas-0.2.0/docs/builders.md +264 -0
- sysatlas-0.2.0/docs/demos/README.md +182 -0
- sysatlas-0.2.0/docs/demos/architecture.py +70 -0
- sysatlas-0.2.0/docs/demos/bpmn.py +36 -0
- sysatlas-0.2.0/docs/demos/er.py +37 -0
- sysatlas-0.2.0/docs/demos/html/architecture.html +89 -0
- sysatlas-0.2.0/docs/demos/html/bpmn.html +68 -0
- sysatlas-0.2.0/docs/demos/html/er.html +89 -0
- sysatlas-0.2.0/docs/demos/html/hub.html +89 -0
- sysatlas-0.2.0/docs/demos/html/multi_view.html +116 -0
- sysatlas-0.2.0/docs/demos/html/qualities.html +89 -0
- sysatlas-0.2.0/docs/demos/html/sequence.html +68 -0
- sysatlas-0.2.0/docs/demos/html/state_machine.html +89 -0
- sysatlas-0.2.0/docs/demos/html/trace_matrix.html +8070 -0
- sysatlas-0.2.0/docs/demos/html/trace_matrix_table.html +36 -0
- sysatlas-0.2.0/docs/demos/html/tree.html +47 -0
- sysatlas-0.2.0/docs/demos/html/uml_class.html +89 -0
- sysatlas-0.2.0/docs/demos/hub.py +49 -0
- sysatlas-0.2.0/docs/demos/img/architecture.png +0 -0
- sysatlas-0.2.0/docs/demos/img/bpmn.png +0 -0
- sysatlas-0.2.0/docs/demos/img/er.png +0 -0
- sysatlas-0.2.0/docs/demos/img/hub.png +0 -0
- sysatlas-0.2.0/docs/demos/img/multi_view.png +0 -0
- sysatlas-0.2.0/docs/demos/img/qualities.png +0 -0
- sysatlas-0.2.0/docs/demos/img/sequence.png +0 -0
- sysatlas-0.2.0/docs/demos/img/state_machine.png +0 -0
- sysatlas-0.2.0/docs/demos/img/trace_matrix.png +0 -0
- sysatlas-0.2.0/docs/demos/img/trace_matrix_table.png +0 -0
- sysatlas-0.2.0/docs/demos/img/tree.png +0 -0
- sysatlas-0.2.0/docs/demos/img/uml_class.png +0 -0
- sysatlas-0.2.0/docs/demos/multi_view.py +53 -0
- sysatlas-0.2.0/docs/demos/qualities.py +72 -0
- sysatlas-0.2.0/docs/demos/sequence.py +34 -0
- sysatlas-0.2.0/docs/demos/state_machine.py +29 -0
- sysatlas-0.2.0/docs/demos/trace_matrix.py +64 -0
- sysatlas-0.2.0/docs/demos/tree.py +30 -0
- sysatlas-0.2.0/docs/demos/uml_class.py +62 -0
- sysatlas-0.2.0/docs/design-principles.md +144 -0
- sysatlas-0.2.0/docs/issues/reflection.md +185 -0
- sysatlas-0.2.0/docs/ontology/README.md +67 -0
- sysatlas-0.2.0/docs/ontology/architecture.md +126 -0
- sysatlas-0.2.0/docs/ontology/bpmn.md +95 -0
- sysatlas-0.2.0/docs/ontology/er.md +81 -0
- sysatlas-0.2.0/docs/ontology/iso42010.md +134 -0
- sysatlas-0.2.0/docs/ontology/model_kinds.md +96 -0
- sysatlas-0.2.0/docs/ontology/qualities.md +108 -0
- sysatlas-0.2.0/docs/ontology/sequence.md +83 -0
- sysatlas-0.2.0/docs/ontology/state_machine.md +81 -0
- sysatlas-0.2.0/docs/ontology/trace.md +102 -0
- sysatlas-0.2.0/docs/ontology/tree.md +60 -0
- sysatlas-0.2.0/docs/ontology/uml_class.md +95 -0
- sysatlas-0.2.0/docs/reflection/README.md +64 -0
- sysatlas-0.2.0/docs/reflection/img/loops.png +0 -0
- sysatlas-0.2.0/docs/reflection/img/module-map.png +0 -0
- sysatlas-0.2.0/docs/reflection/loops.html +71 -0
- sysatlas-0.2.0/docs/reflection/loops.py +53 -0
- sysatlas-0.2.0/docs/reflection/module-map.html +119 -0
- sysatlas-0.2.0/docs/reflection/module-map.py +108 -0
- sysatlas-0.2.0/docs/state-of-the-art.md +160 -0
- sysatlas-0.2.0/docs/todo.md +237 -0
- sysatlas-0.2.0/pyproject.toml +39 -0
- sysatlas-0.2.0/scripts/regen_demos.py +74 -0
- sysatlas-0.2.0/sysatlas/LLM_GUIDE.md +151 -0
- sysatlas-0.2.0/sysatlas/__init__.py +50 -0
- sysatlas-0.2.0/sysatlas/_bpmn_layout.py +157 -0
- sysatlas-0.2.0/sysatlas/_bpmn_render.py +154 -0
- sysatlas-0.2.0/sysatlas/_connectors.py +28 -0
- sysatlas-0.2.0/sysatlas/_hub_layout.py +111 -0
- sysatlas-0.2.0/sysatlas/_layout.py +883 -0
- sysatlas-0.2.0/sysatlas/_ontology/__init__.py +1 -0
- sysatlas-0.2.0/sysatlas/_ontology/architecture.py +117 -0
- sysatlas-0.2.0/sysatlas/_ontology/bpmn.py +101 -0
- sysatlas-0.2.0/sysatlas/_ontology/er.py +54 -0
- sysatlas-0.2.0/sysatlas/_ontology/iso42010.py +138 -0
- sysatlas-0.2.0/sysatlas/_ontology/model_kind.py +34 -0
- sysatlas-0.2.0/sysatlas/_ontology/model_kinds.py +82 -0
- sysatlas-0.2.0/sysatlas/_ontology/qualities.py +63 -0
- sysatlas-0.2.0/sysatlas/_ontology/sequence.py +71 -0
- sysatlas-0.2.0/sysatlas/_ontology/state_machine.py +58 -0
- sysatlas-0.2.0/sysatlas/_ontology/trace.py +99 -0
- sysatlas-0.2.0/sysatlas/_ontology/tree.py +64 -0
- sysatlas-0.2.0/sysatlas/_ontology/uml_class.py +69 -0
- sysatlas-0.2.0/sysatlas/_place.py +337 -0
- sysatlas-0.2.0/sysatlas/_reflection/__init__.py +0 -0
- sysatlas-0.2.0/sysatlas/_reflection/hints.py +38 -0
- sysatlas-0.2.0/sysatlas/_reflection/layers.py +38 -0
- sysatlas-0.2.0/sysatlas/_reflection/merge.py +77 -0
- sysatlas-0.2.0/sysatlas/_reflection/parser.py +118 -0
- sysatlas-0.2.0/sysatlas/_reflection/parser_rust.py +148 -0
- sysatlas-0.2.0/sysatlas/_reflection/reflection.py +208 -0
- sysatlas-0.2.0/sysatlas/_reflection/resolve.py +20 -0
- sysatlas-0.2.0/sysatlas/_render.py +652 -0
- sysatlas-0.2.0/sysatlas/_route.py +758 -0
- sysatlas-0.2.0/sysatlas/_sequence_layout.py +70 -0
- sysatlas-0.2.0/sysatlas/_sequence_render.py +181 -0
- sysatlas-0.2.0/sysatlas/_trace_matrix.py +126 -0
- sysatlas-0.2.0/sysatlas/_tree_layout.py +102 -0
- sysatlas-0.2.0/sysatlas/_tree_render.py +135 -0
- sysatlas-0.2.0/sysatlas/_vendor.py +35 -0
- sysatlas-0.2.0/sysatlas/bpmn_map.py +89 -0
- sysatlas-0.2.0/sysatlas/class_map.py +225 -0
- sysatlas-0.2.0/sysatlas/er_map.py +172 -0
- sysatlas-0.2.0/sysatlas/sequence_map.py +90 -0
- sysatlas-0.2.0/sysatlas/state_map.py +194 -0
- sysatlas-0.2.0/sysatlas/sysatlas.json +73 -0
- sysatlas-0.2.0/sysatlas/system.py +241 -0
- sysatlas-0.2.0/sysatlas/system_map.py +114 -0
- sysatlas-0.2.0/sysatlas/tree_map.py +60 -0
- sysatlas-0.2.0/tests/test_bpmn_map_logic.py +76 -0
- sysatlas-0.2.0/tests/test_class_map_logic.py +66 -0
- sysatlas-0.2.0/tests/test_er_map_logic.py +59 -0
- sysatlas-0.2.0/tests/test_hub_layout_logic.py +42 -0
- sysatlas-0.2.0/tests/test_model_kind_logic.py +90 -0
- sysatlas-0.2.0/tests/test_reflection_hints.py +67 -0
- sysatlas-0.2.0/tests/test_reflection_merge.py +50 -0
- sysatlas-0.2.0/tests/test_reflection_parser.py +69 -0
- sysatlas-0.2.0/tests/test_reflection_reflect.py +65 -0
- sysatlas-0.2.0/tests/test_reflection_rust_logic.py +187 -0
- sysatlas-0.2.0/tests/test_sequence_map_logic.py +74 -0
- sysatlas-0.2.0/tests/test_state_map_logic.py +74 -0
- sysatlas-0.2.0/tests/test_system_map.py +111 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# sysatlas
|
|
2
|
+
|
|
3
|
+
Interactive system and architecture diagram library.
|
|
4
|
+
Python describes the diagram; draw.io viewer renders interactive HTML.
|
|
5
|
+
|
|
6
|
+
Core flow: `SystemMap → mxGraph XML → draw.io viewer → .html`
|
|
7
|
+
|
|
8
|
+
## Read this first, every new session
|
|
9
|
+
|
|
10
|
+
After loading this file, immediately read [`../docs/README.md`](../docs/README.md).
|
|
11
|
+
That file is the canonical index of the whole project: public API,
|
|
12
|
+
ontologies, features-to-source-and-doc map, source tree, docs tree,
|
|
13
|
+
and the roadmap. Anything you need to find in this codebase is one
|
|
14
|
+
hop from there.
|
|
15
|
+
|
|
16
|
+
## API surface
|
|
17
|
+
|
|
18
|
+
`SystemMap` is the only public class. Keep it that way.
|
|
19
|
+
Do not add a CLI entry point — this is a library.
|
|
20
|
+
|
|
21
|
+
## Output files
|
|
22
|
+
|
|
23
|
+
Generated `.html` files are in `.gitignore`. They are not committed.
|
|
24
|
+
The `.py` diagram scripts are the versioned source.
|
|
25
|
+
|
|
26
|
+
## Project venv
|
|
27
|
+
|
|
28
|
+
`.venv/` at repo root. No external dependencies (draw.io viewer bundled).
|
|
29
|
+
|
|
30
|
+
## Design principles
|
|
31
|
+
|
|
32
|
+
Before designing or changing layout, routing, ontology, or API behaviour,
|
|
33
|
+
read [`docs/design-principles.md`](../docs/design-principles.md). Two
|
|
34
|
+
non-negotiables:
|
|
35
|
+
|
|
36
|
+
- **Bounded complexity per view** — sysatlas targets low-complexity
|
|
37
|
+
diagrams (rough budget: 5–10 components, 8–15 connections per view).
|
|
38
|
+
Algorithms are tuned for this regime; degrading at higher counts is
|
|
39
|
+
intentional.
|
|
40
|
+
- **Multi-view by default** — a system is described by several focused
|
|
41
|
+
views, not one giant diagram. When a view gets dense, the right answer
|
|
42
|
+
is to split it (by bounded context, layer, stakeholder concern, feature,
|
|
43
|
+
or zoom level), not to fight the layout engine.
|
|
44
|
+
|
|
45
|
+
For the wider academic / industry context (ISO 42010, C4, ArchiMate,
|
|
46
|
+
UML / SysML / BPMN, layout algorithms, export formats, quality models,
|
|
47
|
+
domain modelling), see [`docs/state-of-the-art.md`](../docs/state-of-the-art.md).
|
|
48
|
+
|
|
49
|
+
## Diagram ontologies
|
|
50
|
+
|
|
51
|
+
Each supported diagram type has a typed ontology under
|
|
52
|
+
`sysatlas/_ontology/` and a prose spec under `docs/ontology/`.
|
|
53
|
+
|
|
54
|
+
**Before working on anything diagram-specific** (adding a feature to a
|
|
55
|
+
diagram type, debugging routing/placement for a particular diagram,
|
|
56
|
+
extending the builder API, writing tests), read the corresponding files:
|
|
57
|
+
|
|
58
|
+
| Diagram type | Schema | Doc |
|
|
59
|
+
|---|---|---|
|
|
60
|
+
| Layered architecture | `sysatlas/_ontology/architecture.py` | `docs/ontology/architecture.md` |
|
|
61
|
+
| Entity-Relationship | `sysatlas/_ontology/er.py` | `docs/ontology/er.md` |
|
|
62
|
+
| Sequence | `sysatlas/_ontology/sequence.py` | `docs/ontology/sequence.md` |
|
|
63
|
+
| Class (UML) | `sysatlas/_ontology/uml_class.py` | `docs/ontology/uml_class.md` |
|
|
64
|
+
| State machine | `sysatlas/_ontology/state_machine.py` | `docs/ontology/state_machine.md` |
|
|
65
|
+
| BPMN process | `sysatlas/_ontology/bpmn.py` | `docs/ontology/bpmn.md` |
|
|
66
|
+
| Tree (org / mindmap / etc.) | `sysatlas/_ontology/tree.py` | `docs/ontology/tree.md` |
|
|
67
|
+
|
|
68
|
+
Cross-cutting ontologies (apply to multiple diagram types, not a diagram
|
|
69
|
+
type themselves):
|
|
70
|
+
|
|
71
|
+
| Concern | Schema | Doc |
|
|
72
|
+
|---|---|---|
|
|
73
|
+
| ISO 42010 meta (Stakeholder/Concern/Viewpoint/View/AD) | `sysatlas/_ontology/iso42010.py` | `docs/ontology/iso42010.md` |
|
|
74
|
+
| Trace links across model kinds | `sysatlas/_ontology/trace.py` | `docs/ontology/trace.md` |
|
|
75
|
+
| Quality attributes (ISO 25010) | `sysatlas/_ontology/qualities.py` | `docs/ontology/qualities.md` |
|
|
76
|
+
|
|
77
|
+
Always read **both** the schema (Pydantic models, source of truth) and
|
|
78
|
+
the doc (semantics, validation rules, distinctions from neighbouring
|
|
79
|
+
types) before changing anything in that diagram's pipeline. The index
|
|
80
|
+
of all ontologies plus what was intentionally omitted lives at
|
|
81
|
+
`docs/ontology/README.md`. The short-term roadmap is `docs/todo.md`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
github: CServinL
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
environment: pypi
|
|
12
|
+
permissions:
|
|
13
|
+
id-token: write
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- uses: actions/setup-python@v5
|
|
17
|
+
with:
|
|
18
|
+
python-version: "3.11"
|
|
19
|
+
- run: pip install hatchling
|
|
20
|
+
- run: python -m hatchling build
|
|
21
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.pyc
|
|
3
|
+
*.pyo
|
|
4
|
+
*.egg-info/
|
|
5
|
+
dist/
|
|
6
|
+
build/
|
|
7
|
+
.venv/
|
|
8
|
+
.eggs/
|
|
9
|
+
*.egg
|
|
10
|
+
.pytest_cache/
|
|
11
|
+
.coverage
|
|
12
|
+
htmlcov/
|
|
13
|
+
|
|
14
|
+
# generated diagram output (the .py builder script is the source of truth).
|
|
15
|
+
# Exception: docs/demos/html/ holds committed CDN-mode renders of each demo.
|
|
16
|
+
*.html
|
|
17
|
+
!docs/demos/html/*.html
|
|
18
|
+
!docs/reflection/*.html
|
|
19
|
+
|
|
20
|
+
# local dev helpers, not part of the library
|
|
21
|
+
_scratch_*.py
|
sysatlas-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
sysatlas-0.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sysatlas
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Interactive system and architecture diagram library
|
|
5
|
+
Project-URL: Homepage, https://github.com/CServinL/sysatlas
|
|
6
|
+
Project-URL: Repository, https://github.com/CServinL/sysatlas
|
|
7
|
+
Project-URL: Issues, https://github.com/CServinL/sysatlas/issues
|
|
8
|
+
Project-URL: Funding, https://github.com/sponsors/CServinL
|
|
9
|
+
License: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: architecture,diagram,drawio,topology,visualization
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
20
|
+
Classifier: Topic :: Software Development :: Documentation
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Requires-Dist: networkx>=3.0
|
|
23
|
+
Requires-Dist: pydantic>=2.0
|
|
24
|
+
Provides-Extra: reflect-rust
|
|
25
|
+
Requires-Dist: tree-sitter-rust>=0.24; extra == 'reflect-rust'
|
|
26
|
+
Requires-Dist: tree-sitter>=0.24; extra == 'reflect-rust'
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
# sysatlas
|
|
30
|
+
|
|
31
|
+
[](https://github.com/sponsors/CServinL)
|
|
32
|
+
|
|
33
|
+
**For software architects who keep redrawing the same diagram because it
|
|
34
|
+
got unreadable — and for the AI coding assistants that keep the
|
|
35
|
+
diagrams in sync with the code.**
|
|
36
|
+
|
|
37
|
+

|
|
38
|
+
|
|
39
|
+
Most diagram tools let you cram everything onto one canvas, then leave
|
|
40
|
+
you fighting the layout engine. sysatlas does the opposite: focused
|
|
41
|
+
views (~10 components each), and **splitting one system into many
|
|
42
|
+
small diagrams** is a first-class operation.
|
|
43
|
+
|
|
44
|
+
It works in both directions:
|
|
45
|
+
|
|
46
|
+
### Forward — design before code
|
|
47
|
+
|
|
48
|
+
You describe a system in Python and:
|
|
49
|
+
|
|
50
|
+
- **Split** it into focused views — *storefront*, *payments*,
|
|
51
|
+
*async backbone* — each one fits on a slide.
|
|
52
|
+
- **Cross-reference** between views with auto-detected stub nodes, so a
|
|
53
|
+
component defined in one view shows up as a ghost reference in others.
|
|
54
|
+
- **Annotate** components with ISO 25010 quality attributes
|
|
55
|
+
(`security: critical`, `performance: high`) — rendered as coloured
|
|
56
|
+
badges.
|
|
57
|
+
- **Trace** how things relate across views (`Cart depends_on Payments`,
|
|
58
|
+
`APIController realizes API`) using SysML link vocabulary.
|
|
59
|
+
- **Ground** the whole thing in ISO 42010 (Stakeholders / Concerns /
|
|
60
|
+
Viewpoints / Views) so the *why* is captured alongside the *what*.
|
|
61
|
+
|
|
62
|
+
### Backward — reflect after the code lands
|
|
63
|
+
|
|
64
|
+
You point sysatlas at an existing source tree and it reads the real
|
|
65
|
+
structure:
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
import sysatlas
|
|
69
|
+
|
|
70
|
+
# Python project
|
|
71
|
+
r = sysatlas.reflect("src/")
|
|
72
|
+
m = r.to_system_map(title="src internals")
|
|
73
|
+
m.save("docs/reflection/module-map.html")
|
|
74
|
+
|
|
75
|
+
# Rust crate (pip install 'sysatlas[reflect-rust]')
|
|
76
|
+
r = sysatlas.reflect_rust("my-crate/")
|
|
77
|
+
m = r.to_system_map(title="my-crate internals")
|
|
78
|
+
m.save("docs/reflection/module-map.html")
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Static analysis — no execution, safe on broken or uncompiled code. The
|
|
82
|
+
output is the same `SystemMap` the forward flow produces, so a thin
|
|
83
|
+
human-authored "annotation overlay" (qualities, traces, viewpoints)
|
|
84
|
+
can be merged onto reflected structure via `r.merge_with(overlay)`.
|
|
85
|
+
Drift between intent and reality becomes visible instead of silent.
|
|
86
|
+
|
|
87
|
+
### The intended loop
|
|
88
|
+
|
|
89
|
+
1. **Plan** the change with a forward-flow diagram on a feature branch.
|
|
90
|
+
2. **Implement** the feature.
|
|
91
|
+
3. **Reflect** the branch (`sysatlas.reflect(...)`) and commit the
|
|
92
|
+
regenerated diagrams alongside the code. Reviewers see structure
|
|
93
|
+
and intent change together.
|
|
94
|
+
|
|
95
|
+
Output is a single self-contained HTML file — no server, no extra
|
|
96
|
+
runtime dependencies, opens in any browser.
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
pip install sysatlas # Python reflection included
|
|
100
|
+
pip install 'sysatlas[reflect-rust]' # + Rust crate reflection
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Using sysatlas with an AI coding assistant
|
|
104
|
+
|
|
105
|
+
sysatlas ships a guide aimed at LLMs. Tell your coding assistant
|
|
106
|
+
(Claude Code, Cursor, Aider, …) to read it before working on this
|
|
107
|
+
repo. The one-liner to paste into your `CLAUDE.md` / `.cursorrules` /
|
|
108
|
+
`AGENTS.md`:
|
|
109
|
+
|
|
110
|
+
> Before editing this project, read sysatlas's LLM guide:
|
|
111
|
+
> `python -c "import sysatlas; print(sysatlas.llm_guide())"`.
|
|
112
|
+
> After any structural change (add/remove/rename modules or
|
|
113
|
+
> components), regenerate the affected diagrams under
|
|
114
|
+
> `docs/reflection/` using `sysatlas.reflect(...)` and commit them
|
|
115
|
+
> with the code change.
|
|
116
|
+
|
|
117
|
+
The guide tells the assistant exactly which symbols are public, which
|
|
118
|
+
fields the ontology accepts, and that diagrams are part of the
|
|
119
|
+
deliverable — not an afterthought.
|
|
120
|
+
|
|
121
|
+
## Where to look
|
|
122
|
+
|
|
123
|
+
- Runnable feature-by-feature showcases live in
|
|
124
|
+
[`docs/demos/`](docs/demos/) — start with
|
|
125
|
+
[`docs/demos/architecture.py`](docs/demos/architecture.py).
|
|
126
|
+
- Design philosophy: [`docs/design-principles.md`](docs/design-principles.md).
|
|
127
|
+
- Full app index: [`docs/README.md`](docs/README.md).
|
|
128
|
+
- How sysatlas relates to C4 / ArchiMate / UML / BPMN / ISO 42010:
|
|
129
|
+
[`docs/state-of-the-art.md`](docs/state-of-the-art.md).
|
|
130
|
+
|
|
131
|
+
Apache 2.0 licensed.
|
sysatlas-0.2.0/README.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# sysatlas
|
|
2
|
+
|
|
3
|
+
[](https://github.com/sponsors/CServinL)
|
|
4
|
+
|
|
5
|
+
**For software architects who keep redrawing the same diagram because it
|
|
6
|
+
got unreadable — and for the AI coding assistants that keep the
|
|
7
|
+
diagrams in sync with the code.**
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
Most diagram tools let you cram everything onto one canvas, then leave
|
|
12
|
+
you fighting the layout engine. sysatlas does the opposite: focused
|
|
13
|
+
views (~10 components each), and **splitting one system into many
|
|
14
|
+
small diagrams** is a first-class operation.
|
|
15
|
+
|
|
16
|
+
It works in both directions:
|
|
17
|
+
|
|
18
|
+
### Forward — design before code
|
|
19
|
+
|
|
20
|
+
You describe a system in Python and:
|
|
21
|
+
|
|
22
|
+
- **Split** it into focused views — *storefront*, *payments*,
|
|
23
|
+
*async backbone* — each one fits on a slide.
|
|
24
|
+
- **Cross-reference** between views with auto-detected stub nodes, so a
|
|
25
|
+
component defined in one view shows up as a ghost reference in others.
|
|
26
|
+
- **Annotate** components with ISO 25010 quality attributes
|
|
27
|
+
(`security: critical`, `performance: high`) — rendered as coloured
|
|
28
|
+
badges.
|
|
29
|
+
- **Trace** how things relate across views (`Cart depends_on Payments`,
|
|
30
|
+
`APIController realizes API`) using SysML link vocabulary.
|
|
31
|
+
- **Ground** the whole thing in ISO 42010 (Stakeholders / Concerns /
|
|
32
|
+
Viewpoints / Views) so the *why* is captured alongside the *what*.
|
|
33
|
+
|
|
34
|
+
### Backward — reflect after the code lands
|
|
35
|
+
|
|
36
|
+
You point sysatlas at an existing source tree and it reads the real
|
|
37
|
+
structure:
|
|
38
|
+
|
|
39
|
+
```python
|
|
40
|
+
import sysatlas
|
|
41
|
+
|
|
42
|
+
# Python project
|
|
43
|
+
r = sysatlas.reflect("src/")
|
|
44
|
+
m = r.to_system_map(title="src internals")
|
|
45
|
+
m.save("docs/reflection/module-map.html")
|
|
46
|
+
|
|
47
|
+
# Rust crate (pip install 'sysatlas[reflect-rust]')
|
|
48
|
+
r = sysatlas.reflect_rust("my-crate/")
|
|
49
|
+
m = r.to_system_map(title="my-crate internals")
|
|
50
|
+
m.save("docs/reflection/module-map.html")
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Static analysis — no execution, safe on broken or uncompiled code. The
|
|
54
|
+
output is the same `SystemMap` the forward flow produces, so a thin
|
|
55
|
+
human-authored "annotation overlay" (qualities, traces, viewpoints)
|
|
56
|
+
can be merged onto reflected structure via `r.merge_with(overlay)`.
|
|
57
|
+
Drift between intent and reality becomes visible instead of silent.
|
|
58
|
+
|
|
59
|
+
### The intended loop
|
|
60
|
+
|
|
61
|
+
1. **Plan** the change with a forward-flow diagram on a feature branch.
|
|
62
|
+
2. **Implement** the feature.
|
|
63
|
+
3. **Reflect** the branch (`sysatlas.reflect(...)`) and commit the
|
|
64
|
+
regenerated diagrams alongside the code. Reviewers see structure
|
|
65
|
+
and intent change together.
|
|
66
|
+
|
|
67
|
+
Output is a single self-contained HTML file — no server, no extra
|
|
68
|
+
runtime dependencies, opens in any browser.
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
pip install sysatlas # Python reflection included
|
|
72
|
+
pip install 'sysatlas[reflect-rust]' # + Rust crate reflection
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Using sysatlas with an AI coding assistant
|
|
76
|
+
|
|
77
|
+
sysatlas ships a guide aimed at LLMs. Tell your coding assistant
|
|
78
|
+
(Claude Code, Cursor, Aider, …) to read it before working on this
|
|
79
|
+
repo. The one-liner to paste into your `CLAUDE.md` / `.cursorrules` /
|
|
80
|
+
`AGENTS.md`:
|
|
81
|
+
|
|
82
|
+
> Before editing this project, read sysatlas's LLM guide:
|
|
83
|
+
> `python -c "import sysatlas; print(sysatlas.llm_guide())"`.
|
|
84
|
+
> After any structural change (add/remove/rename modules or
|
|
85
|
+
> components), regenerate the affected diagrams under
|
|
86
|
+
> `docs/reflection/` using `sysatlas.reflect(...)` and commit them
|
|
87
|
+
> with the code change.
|
|
88
|
+
|
|
89
|
+
The guide tells the assistant exactly which symbols are public, which
|
|
90
|
+
fields the ontology accepts, and that diagrams are part of the
|
|
91
|
+
deliverable — not an afterthought.
|
|
92
|
+
|
|
93
|
+
## Where to look
|
|
94
|
+
|
|
95
|
+
- Runnable feature-by-feature showcases live in
|
|
96
|
+
[`docs/demos/`](docs/demos/) — start with
|
|
97
|
+
[`docs/demos/architecture.py`](docs/demos/architecture.py).
|
|
98
|
+
- Design philosophy: [`docs/design-principles.md`](docs/design-principles.md).
|
|
99
|
+
- Full app index: [`docs/README.md`](docs/README.md).
|
|
100
|
+
- How sysatlas relates to C4 / ArchiMate / UML / BPMN / ISO 42010:
|
|
101
|
+
[`docs/state-of-the-art.md`](docs/state-of-the-art.md).
|
|
102
|
+
|
|
103
|
+
Apache 2.0 licensed.
|