twinops 1.5.1__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 (129) hide show
  1. twinops-1.5.1/LICENSE +190 -0
  2. twinops-1.5.1/PKG-INFO +488 -0
  3. twinops-1.5.1/README.md +431 -0
  4. twinops-1.5.1/pyproject.toml +97 -0
  5. twinops-1.5.1/python/twinops/__init__.py +3 -0
  6. twinops-1.5.1/python/twinops/api/__init__.py +5 -0
  7. twinops-1.5.1/python/twinops/api/app.py +352 -0
  8. twinops-1.5.1/python/twinops/api/auth.py +109 -0
  9. twinops-1.5.1/python/twinops/api/live.py +490 -0
  10. twinops-1.5.1/python/twinops/api/persist.py +228 -0
  11. twinops-1.5.1/python/twinops/api/sso.py +102 -0
  12. twinops-1.5.1/python/twinops/api/state_io.py +34 -0
  13. twinops-1.5.1/python/twinops/api/store.py +94 -0
  14. twinops-1.5.1/python/twinops/api/streaming.py +113 -0
  15. twinops-1.5.1/python/twinops/api/tlsutil.py +25 -0
  16. twinops-1.5.1/python/twinops/api/webrtc_signal.py +82 -0
  17. twinops-1.5.1/python/twinops/cli.py +1615 -0
  18. twinops-1.5.1/python/twinops/composer/__init__.py +5 -0
  19. twinops-1.5.1/python/twinops/composer/compose.py +194 -0
  20. twinops-1.5.1/python/twinops/composer/usda.py +208 -0
  21. twinops-1.5.1/python/twinops/doctor.py +234 -0
  22. twinops-1.5.1/python/twinops/drift/__init__.py +11 -0
  23. twinops-1.5.1/python/twinops/drift/apply.py +213 -0
  24. twinops-1.5.1/python/twinops/drift/csv_report.py +48 -0
  25. twinops-1.5.1/python/twinops/drift/engine.py +382 -0
  26. twinops-1.5.1/python/twinops/drift/html_report.py +171 -0
  27. twinops-1.5.1/python/twinops/drift/loaders.py +223 -0
  28. twinops-1.5.1/python/twinops/drift/model.py +85 -0
  29. twinops-1.5.1/python/twinops/drift/reconcile.py +170 -0
  30. twinops-1.5.1/python/twinops/drift/sarif.py +109 -0
  31. twinops-1.5.1/python/twinops/drift/table.py +56 -0
  32. twinops-1.5.1/python/twinops/drift/verify.py +94 -0
  33. twinops-1.5.1/python/twinops/incident/__init__.py +13 -0
  34. twinops-1.5.1/python/twinops/incident/model.py +83 -0
  35. twinops-1.5.1/python/twinops/incident/record.py +75 -0
  36. twinops-1.5.1/python/twinops/incident/replay.py +216 -0
  37. twinops-1.5.1/python/twinops/plm/__init__.py +37 -0
  38. twinops-1.5.1/python/twinops/plm/base.py +29 -0
  39. twinops-1.5.1/python/twinops/plm/errors.py +34 -0
  40. twinops-1.5.1/python/twinops/plm/file.py +16 -0
  41. twinops-1.5.1/python/twinops/plm/http_mock.py +239 -0
  42. twinops-1.5.1/python/twinops/plm/mock.py +261 -0
  43. twinops-1.5.1/python/twinops/plm/rest.py +323 -0
  44. twinops-1.5.1/python/twinops/plm/stubs.py +57 -0
  45. twinops-1.5.1/python/twinops/plm/sync.py +229 -0
  46. twinops-1.5.1/python/twinops/scene/__init__.py +14 -0
  47. twinops-1.5.1/python/twinops/scene/highlight.py +108 -0
  48. twinops-1.5.1/python/twinops/scene/html_report.py +133 -0
  49. twinops-1.5.1/python/twinops/scene/validate.py +62 -0
  50. twinops-1.5.1/python/twinops/schema/__init__.py +13 -0
  51. twinops-1.5.1/python/twinops/schema/manifest.py +254 -0
  52. twinops-1.5.1/python/twinops/streaming_sidecar/__init__.py +5 -0
  53. twinops-1.5.1/python/twinops/streaming_sidecar/__main__.py +80 -0
  54. twinops-1.5.1/python/twinops/streaming_sidecar/app.py +192 -0
  55. twinops-1.5.1/python/twinops/streaming_sidecar/config.py +41 -0
  56. twinops-1.5.1/python/twinops/streaming_sidecar/encoder.py +108 -0
  57. twinops-1.5.1/python/twinops/streaming_sidecar/frames.py +254 -0
  58. twinops-1.5.1/python/twinops/streaming_sidecar/input_bridge.py +61 -0
  59. twinops-1.5.1/python/twinops/streaming_sidecar/metrics.py +120 -0
  60. twinops-1.5.1/python/twinops/streaming_sidecar/nvenc_bridge.py +216 -0
  61. twinops-1.5.1/python/twinops/streaming_sidecar/session.py +254 -0
  62. twinops-1.5.1/python/twinops/streaming_sidecar/stats.py +56 -0
  63. twinops-1.5.1/python/twinops/streaming_sidecar/webrtc_media.py +331 -0
  64. twinops-1.5.1/python/twinops/telemetry/__init__.py +28 -0
  65. twinops-1.5.1/python/twinops/telemetry/bus.py +298 -0
  66. twinops-1.5.1/python/twinops/telemetry/ingest.py +335 -0
  67. twinops-1.5.1/python/twinops/telemetry/payload.py +35 -0
  68. twinops-1.5.1/python/twinops/telemetry/reliability.py +328 -0
  69. twinops-1.5.1/python/twinops/telemetry/simulator.py +289 -0
  70. twinops-1.5.1/python/twinops/telemetry/topics.py +68 -0
  71. twinops-1.5.1/python/twinops/validate/__init__.py +5 -0
  72. twinops-1.5.1/python/twinops/validate/report.py +119 -0
  73. twinops-1.5.1/python/twinops.egg-info/PKG-INFO +488 -0
  74. twinops-1.5.1/python/twinops.egg-info/SOURCES.txt +127 -0
  75. twinops-1.5.1/python/twinops.egg-info/dependency_links.txt +1 -0
  76. twinops-1.5.1/python/twinops.egg-info/entry_points.txt +2 -0
  77. twinops-1.5.1/python/twinops.egg-info/requires.txt +26 -0
  78. twinops-1.5.1/python/twinops.egg-info/top_level.txt +1 -0
  79. twinops-1.5.1/setup.cfg +4 -0
  80. twinops-1.5.1/tests/test_apply.py +154 -0
  81. twinops-1.5.1/tests/test_auth_api.py +36 -0
  82. twinops-1.5.1/tests/test_completion_cli.py +25 -0
  83. twinops-1.5.1/tests/test_composer.py +63 -0
  84. twinops-1.5.1/tests/test_csv_report.py +36 -0
  85. twinops-1.5.1/tests/test_doctor.py +22 -0
  86. twinops-1.5.1/tests/test_doctor_cli.py +26 -0
  87. twinops-1.5.1/tests/test_drift.py +117 -0
  88. twinops-1.5.1/tests/test_health_cli.py +63 -0
  89. twinops-1.5.1/tests/test_highlight_client.py +32 -0
  90. twinops-1.5.1/tests/test_incident.py +112 -0
  91. twinops-1.5.1/tests/test_kit_runtime.py +88 -0
  92. twinops-1.5.1/tests/test_kit_session.py +67 -0
  93. twinops-1.5.1/tests/test_live_action_cli.py +48 -0
  94. twinops-1.5.1/tests/test_live_api.py +118 -0
  95. twinops-1.5.1/tests/test_live_status_cli.py +56 -0
  96. twinops-1.5.1/tests/test_manifest.py +144 -0
  97. twinops-1.5.1/tests/test_metrics_cli.py +54 -0
  98. twinops-1.5.1/tests/test_mqtt_cli.py +25 -0
  99. twinops-1.5.1/tests/test_mqtt_ingest.py +96 -0
  100. twinops-1.5.1/tests/test_mqtt_payload.py +25 -0
  101. twinops-1.5.1/tests/test_mqtt_reliability.py +190 -0
  102. twinops-1.5.1/tests/test_mqtt_tls.py +39 -0
  103. twinops-1.5.1/tests/test_mqtt_topics.py +13 -0
  104. twinops-1.5.1/tests/test_mqtt_validate_cli.py +20 -0
  105. twinops-1.5.1/tests/test_openapi_cli.py +49 -0
  106. twinops-1.5.1/tests/test_persist.py +30 -0
  107. twinops-1.5.1/tests/test_plm_adapters.py +94 -0
  108. twinops-1.5.1/tests/test_plm_contract.py +137 -0
  109. twinops-1.5.1/tests/test_plm_mock.py +71 -0
  110. twinops-1.5.1/tests/test_plm_protocol.py +17 -0
  111. twinops-1.5.1/tests/test_plm_rest_reliability.py +158 -0
  112. twinops-1.5.1/tests/test_plm_review_hardening.py +147 -0
  113. twinops-1.5.1/tests/test_plm_stubs.py +19 -0
  114. twinops-1.5.1/tests/test_proposal_cli.py +38 -0
  115. twinops-1.5.1/tests/test_ready_cli.py +47 -0
  116. twinops-1.5.1/tests/test_sarif.py +58 -0
  117. twinops-1.5.1/tests/test_scene.py +60 -0
  118. twinops-1.5.1/tests/test_scene_cli.py +39 -0
  119. twinops-1.5.1/tests/test_scene_from_url.py +56 -0
  120. twinops-1.5.1/tests/test_scene_html.py +42 -0
  121. twinops-1.5.1/tests/test_scene_validate.py +29 -0
  122. twinops-1.5.1/tests/test_sso.py +35 -0
  123. twinops-1.5.1/tests/test_state_io.py +32 -0
  124. twinops-1.5.1/tests/test_streaming_sidecar.py +174 -0
  125. twinops-1.5.1/tests/test_timeline_cli.py +44 -0
  126. twinops-1.5.1/tests/test_tlsutil.py +25 -0
  127. twinops-1.5.1/tests/test_verify_apply.py +94 -0
  128. twinops-1.5.1/tests/test_webrtc_api.py +40 -0
  129. twinops-1.5.1/tests/test_webrtc_software.py +79 -0
twinops-1.5.1/LICENSE ADDED
@@ -0,0 +1,190 @@
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
+ Copyright 2026 Andrey Lesnikov
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
twinops-1.5.1/PKG-INFO ADDED
@@ -0,0 +1,488 @@
1
+ Metadata-Version: 2.4
2
+ Name: twinops
3
+ Version: 1.5.1
4
+ Summary: GitOps control plane toolkit for industrial digital twins (OpenUSD compiler)
5
+ Author: Andrey Lesnikov
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://justrunme.com/
8
+ Project-URL: Repository, https://github.com/justrunme/twinops-control-plane
9
+ Project-URL: Issues, https://github.com/justrunme/twinops-control-plane/issues
10
+ Project-URL: Changelog, https://github.com/justrunme/twinops-control-plane/blob/main/CHANGELOG.md
11
+ Project-URL: Documentation, https://github.com/justrunme/twinops-control-plane#readme
12
+ Project-URL: Author, https://justrunme.com/
13
+ Project-URL: ORCID, https://orcid.org/0009-0004-7583-4314
14
+ Keywords: openusd,digital-twin,gitops,omniverse,platform-engineering,kubernetes,control-plane,industrial,usd
15
+ Classifier: Development Status :: 4 - Beta
16
+ Classifier: Environment :: Console
17
+ Classifier: Framework :: FastAPI
18
+ Classifier: Intended Audience :: Developers
19
+ Classifier: Intended Audience :: Manufacturing
20
+ Classifier: Intended Audience :: Science/Research
21
+ Classifier: License :: OSI Approved :: Apache Software License
22
+ Classifier: Operating System :: OS Independent
23
+ Classifier: Programming Language :: Python :: 3
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
27
+ Classifier: Programming Language :: Python :: 3 :: Only
28
+ Classifier: Topic :: Scientific/Engineering
29
+ Classifier: Topic :: Software Development :: Build Tools
30
+ Classifier: Topic :: System :: Monitoring
31
+ Requires-Python: >=3.11
32
+ Description-Content-Type: text/markdown
33
+ License-File: LICENSE
34
+ Requires-Dist: PyYAML>=6.0
35
+ Provides-Extra: live
36
+ Requires-Dist: fastapi>=0.115; extra == "live"
37
+ Requires-Dist: uvicorn[standard]>=0.30; extra == "live"
38
+ Requires-Dist: httpx>=0.27; extra == "live"
39
+ Requires-Dist: paho-mqtt>=2.1; extra == "live"
40
+ Provides-Extra: streaming
41
+ Requires-Dist: aiortc>=1.9; extra == "streaming"
42
+ Requires-Dist: av>=12.0; extra == "streaming"
43
+ Requires-Dist: numpy>=1.26; extra == "streaming"
44
+ Provides-Extra: usd
45
+ Requires-Dist: usd-core>=24.5; extra == "usd"
46
+ Provides-Extra: dev
47
+ Requires-Dist: pytest>=8.0; extra == "dev"
48
+ Requires-Dist: ruff>=0.6; extra == "dev"
49
+ Requires-Dist: fastapi>=0.115; extra == "dev"
50
+ Requires-Dist: uvicorn[standard]>=0.30; extra == "dev"
51
+ Requires-Dist: httpx>=0.27; extra == "dev"
52
+ Requires-Dist: paho-mqtt>=2.1; extra == "dev"
53
+ Requires-Dist: aiortc>=1.9; extra == "dev"
54
+ Requires-Dist: av>=12.0; extra == "dev"
55
+ Requires-Dist: numpy>=1.26; extra == "dev"
56
+ Dynamic: license-file
57
+
58
+ # TwinOps
59
+
60
+ GitOps control plane for industrial digital twins (OpenUSD + Omniverse).
61
+
62
+ [![CI](https://github.com/justrunme/twinops-control-plane/actions/workflows/ci.yml/badge.svg)](https://github.com/justrunme/twinops-control-plane/actions/workflows/ci.yml)
63
+ [![Release](https://img.shields.io/github/v/release/justrunme/twinops-control-plane?display_name=tag)](https://github.com/justrunme/twinops-control-plane/releases/latest)
64
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/justrunme/twinops-control-plane/blob/main/LICENSE)
65
+ [![OpenUSD](https://img.shields.io/badge/OpenUSD-compiler-brightgreen.svg)](#2-minute-live-demo)
66
+ [![Go](https://img.shields.io/badge/Go-operator-brightgreen.svg)](https://github.com/justrunme/twinops-control-plane/blob/main/docs/operator.md)
67
+ [![Kubernetes](https://img.shields.io/badge/Kubernetes-CRD-brightgreen.svg)](https://github.com/justrunme/twinops-control-plane/blob/main/docs/operator.md)
68
+ [![Omniverse](https://img.shields.io/badge/NVIDIA%20Omniverse-optional-orange.svg)](#roadmap-summary)
69
+ [![Case study](https://img.shields.io/badge/case-justrunme.com-111111)](https://justrunme.com/cases/twinops-control-plane/)
70
+ [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/justrunme/twinops-control-plane/badge)](https://securityscorecards.dev/viewer/?uri=github.com/justrunme/twinops-control-plane)
71
+
72
+ Evidence: [docs/EVIDENCE.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/EVIDENCE.md)
73
+
74
+ ## Install
75
+
76
+ ```bash
77
+ pip install twinops
78
+ ```
79
+
80
+ <p align="center">
81
+ <img src="https://raw.githubusercontent.com/justrunme/twinops-control-plane/main/docs/assets/twinops-lifecycle.gif" alt="TwinOps lifecycle: PLM → GitOps manifest → control plane → OpenUSD → telemetry/drift → reconcile → SYNCED" width="800" />
82
+ </p>
83
+
84
+ <p align="center"><em>TwinOps lifecycle — Desired PLM/Git → Rendered OpenUSD → Observed telemetry → Drift → Reconcile → SYNCED<br/>
85
+ (<a href="https://github.com/justrunme/twinops-control-plane/raw/main/docs/assets/twinops-lifecycle.mp4">MP4</a> for smoother local playback)</em></p>
86
+
87
+ Case study: [TwinOps Control Plane](https://justrunme.com/cases/twinops-control-plane/) · [Andrey Lesnikov](https://justrunme.com/)
88
+
89
+ ## What it does
90
+
91
+ - Reconciles PLM metadata, OpenUSD scene composition, and live telemetry into a versioned digital-twin runtime
92
+ - Runs a Kubernetes operator over `DigitalTwin` CRs with immutable output revisions (ConfigMap / OCI / S3)
93
+ - Detects three-way drift (desired vs rendered vs observed) and drives reconcile toward SYNCED
94
+
95
+ ## Why
96
+
97
+ - Digital-twin pipelines need GitOps-style desired state, not one-off scene exports
98
+ - Operators need observable drift and deterministic builds without treating Omniverse Kit as mandatory
99
+
100
+ ## Quickstart
101
+
102
+ ```bash
103
+ make install
104
+ make live-demo
105
+ make live-demo-smoke
106
+ ```
107
+
108
+ ## Architecture
109
+
110
+ <p align="center">
111
+ <img src="https://raw.githubusercontent.com/justrunme/twinops-control-plane/main/docs/assets/twinops-architecture.svg" alt="TwinOps architecture: sources, control plane, three-way drift, immutable outputs, optional runtimes" width="100%" />
112
+ </p>
113
+
114
+ <p align="center"><em>Control plane first: materialize → compose (inline or Job) → three-way drift → immutable output revisions. Kit / WebRTC are optional runtimes.</em></p>
115
+
116
+ ```mermaid
117
+ flowchart LR
118
+ subgraph Sources
119
+ PLM[PLM / ERP]
120
+ Git[Git twin.yaml + USD]
121
+ MQTT[MQTT / IoT]
122
+ end
123
+
124
+ subgraph ControlPlane["Control plane (the product)"]
125
+ CR[DigitalTwin CR]
126
+ Mat[Materialize + digest]
127
+ Build["Build: inline | Job"]
128
+ USD[OpenUSD compose]
129
+ Drift[Three-way drift]
130
+ Out[Immutable publish]
131
+ end
132
+
133
+ subgraph Durable
134
+ CM["ConfigMap rN"]
135
+ OCI[OCI registry]
136
+ S3[S3 / MinIO]
137
+ end
138
+
139
+ subgraph Optional["Optional runtimes"]
140
+ Web[Web UI / live API]
141
+ Kit[Omniverse Kit]
142
+ RTC[WebRTC sidecar]
143
+ end
144
+
145
+ PLM --> Git
146
+ Git --> CR
147
+ CR --> Mat --> Build --> USD --> Drift --> Out
148
+ MQTT --> Drift
149
+ Out --> CM
150
+ Out --> OCI
151
+ Out --> S3
152
+ Drift --> Web
153
+ Out --> Kit
154
+ Out --> RTC
155
+ ```
156
+
157
+ Full one-pager: [docs/architecture-one-pager.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/architecture-one-pager.md) · operator: [docs/operator.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/operator.md) · release: [docs/release-1.4.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/release-1.4.md)
158
+
159
+ ---
160
+
161
+ ## Why this exists
162
+
163
+ Most Omniverse demos show a beautiful 3D scene.
164
+ Most Kubernetes demos show Helm, Terraform, and autoscaling.
165
+
166
+ TwinOps is **not** “Omniverse in Kubernetes” and **not** “USD files + Grafana”.
167
+ It is a **control plane**: reconcile desired PLM / rendered OpenUSD / observed
168
+ telemetry into GitOps artifacts, then drive optional runtimes (Kit, web UI,
169
+ lab WebRTC) through a stable highlight contract — including on a laptop without a GPU.
170
+
171
+ TwinOps connects both worlds:
172
+
173
+ | DevOps | TwinOps |
174
+ | --------------------- | ------------------------- |
175
+ | Kubernetes manifest | DigitalTwin manifest |
176
+ | container image | USD asset |
177
+ | configuration overlay | USD layer |
178
+ | environment | scene variant |
179
+ | GitOps reconciliation | stage composition |
180
+ | deployment rollout | twin revision rollout |
181
+ | runtime metrics | telemetry and scene state |
182
+ | drift detection | PLM / scene / IoT drift |
183
+ | rollback | previous USD composition |
184
+
185
+ The distinctive feature is **three-way drift detection** (see diagram above):
186
+
187
+ | Plane | Source | Role |
188
+ | ----- | ------ | ---- |
189
+ | **Desired** | Git + PLM mappings | Engineering intent |
190
+ | **Rendered** | Composed OpenUSD | What the twin scene encodes |
191
+ | **Observed** | MQTT / IoT | Live factory signal |
192
+
193
+ Frozen contracts: [docs/stability.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/stability.md).
194
+
195
+ ---
196
+
197
+ ## 2-minute live demo
198
+
199
+ No GPU required.
200
+
201
+ ```bash
202
+ git clone https://github.com/justrunme/twinops-control-plane.git
203
+ cd twinops-control-plane
204
+ make install
205
+ make live-demo
206
+ ```
207
+
208
+ Open **http://127.0.0.1:8080/**
209
+
210
+ ```text
211
+ 1. Trigger heat spike → CRITICAL / DRIFT + scene highlight
212
+ 2. Apply reconciliation → USD overlay + healed telemetry
213
+ 3. Twin returns to SYNCED → timeline + mock Kit viewport calm
214
+ ```
215
+
216
+ Smoke check without a browser:
217
+
218
+ ```bash
219
+ make live-demo-smoke
220
+ ```
221
+
222
+ Canonical productization scenario (persist + replay + artifacts):
223
+
224
+ ```bash
225
+ make e2e-demo
226
+ make streaming-sidecar-smoke
227
+ ```
228
+
229
+ Full walkthrough: [docs/demo.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/demo.md) · [docs/e2e-demo.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/e2e-demo.md) · [docs/streaming-sidecar.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/streaming-sidecar.md)
230
+
231
+ ---
232
+
233
+ ## Demo
234
+
235
+ Terminal capture of the CI end-to-end flow (`scripts/e2e_demo.sh`): heat spike → CRITICAL → reconcile → SYNCED → incident replay.
236
+
237
+ <p align="center">
238
+ <img src="https://raw.githubusercontent.com/justrunme/twinops-control-plane/main/docs/assets/e2e-demo.svg" alt="TwinOps e2e demo terminal: spike to SYNCED with incident replay" width="100%" />
239
+ </p>
240
+
241
+ Offline self-healing compose demo:
242
+
243
+ ```bash
244
+ make demo
245
+ ```
246
+
247
+ <p align="center">
248
+ <img src="https://raw.githubusercontent.com/justrunme/twinops-control-plane/main/docs/assets/demo-self-healing.svg" alt="TwinOps offline self-healing demo terminal" width="100%" />
249
+ </p>
250
+
251
+ Live UI demo: [docs/demo.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/demo.md) · E2E walkthrough: [docs/e2e-demo.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/e2e-demo.md)
252
+
253
+ ## Results
254
+
255
+ Measured numbers from CI (not estimates). Full table: [docs/results.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/results.md) · machine-readable: [docs/results.json](https://github.com/justrunme/twinops-control-plane/blob/main/docs/results.json).
256
+
257
+ | Metric | Value | Source run |
258
+ | --- | ---: | --- |
259
+ | Smoke: spike → SYNCED | 0.43 s | [38066458460](https://github.com/justrunme/twinops-control-plane/actions/runs/38066458460) (Python 3.12) |
260
+ | E2E: spike → replay → persistence | 1.90 s | same run |
261
+ | Reconcile changes to SYNCED | 3 | same run (`reconcile.json`) |
262
+ | Incident replay verified | true (`stepsPlayed=6`) | same run (`replay-verify.json`) |
263
+
264
+ ---
265
+
266
+ ## Quickstart extras
267
+
268
+ ### Offline CLI demo
269
+
270
+ ```bash
271
+ make demo
272
+ ```
273
+
274
+ Produces composed USDA layers, a drift HTML report, and a GitOps reconciliation proposal.
275
+
276
+ ### MQTT publish + ingest
277
+
278
+ ```bash
279
+ make mqtt-smoke
280
+ twinopsctl mqtt topics
281
+ ```
282
+
283
+ Starts Mosquitto, publishes simulator telemetry, injects an external PLC heat spike, and asserts CRITICAL drift.
284
+ Topic catalog: `examples/assembly-line/mqtt-topics.json` / `GET /api/mqtt/topics`.
285
+
286
+ ### Mock PLM adapter
287
+
288
+ ```bash
289
+ twinopsctl plm show
290
+ twinopsctl plm get 1004711 --catalog examples/assembly-line/plm-catalog.json
291
+ twinopsctl plm compare
292
+ ```
293
+
294
+ See [docs/plm-adapter.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/plm-adapter.md).
295
+
296
+ ### Omniverse highlight contract (no GPU)
297
+
298
+ ```bash
299
+ make serve
300
+ # other terminal:
301
+ make scene-live # fetch + validate /api/scene
302
+ make scene-highlight # Kit stub client
303
+ make scene # offline JSON + HTML highlight report
304
+ ```
305
+
306
+ See [docs/omniverse.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/omniverse.md).
307
+
308
+ ### Local DX probes
309
+
310
+ ```bash
311
+ make doctor
312
+ make live-status
313
+ make timeline
314
+ twinopsctl proposal
315
+ twinopsctl live spike
316
+ twinopsctl live reconcile
317
+ twinopsctl incident export --from-url http://127.0.0.1:8080 --out /tmp/incident.json
318
+ twinopsctl incident replay examples/assembly-line/incident-heat-spike.json \
319
+ --desired examples/assembly-line/desired.yaml \
320
+ --stage examples/assembly-line/generated/root.usda \
321
+ --observed examples/assembly-line/telemetry.json --json
322
+ make scene-live
323
+ twinopsctl openapi --out /tmp/twinops-openapi.json
324
+ make verify-all
325
+ ```
326
+
327
+ Docs index: [docs/README.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/README.md). Security: [SECURITY.md](https://github.com/justrunme/twinops-control-plane/blob/main/SECURITY.md).
328
+
329
+ ### Dev UI (Vite hot reload)
330
+
331
+ ```bash
332
+ make serve # terminal 1 — API :8080
333
+ make web-dev # terminal 2 — UI :5173
334
+ ```
335
+
336
+ ### Kubernetes operator
337
+
338
+ ```bash
339
+ make operator-demo # out-of-cluster manager (k3d/kind)
340
+ make operator-incluster-e2e # docker build → kind load → Helm → restart recovery
341
+ make operator-demo-cleanup
342
+ ```
343
+
344
+ In-cluster path publishes a durable `bundle.tar.gz` on the twin (`status.output.uri`).
345
+ See [docs/operator.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/operator.md), [docs/images.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/images.md).
346
+
347
+ ### Tests
348
+
349
+ ```bash
350
+ make test
351
+ make go-test
352
+ make verify-all
353
+ ```
354
+
355
+ See [CONTRIBUTING.md](https://github.com/justrunme/twinops-control-plane/blob/main/CONTRIBUTING.md).
356
+
357
+ ---
358
+
359
+ ## Two documents, two roles
360
+
361
+ TwinOps uses the same `apiVersion` family for two **different** documents. Do not mix them up.
362
+
363
+ ### 1) Twin **manifest** (compiler input — lives *inside* the artifact)
364
+
365
+ Stored as `twin.yaml` in a ConfigMap / tarball. Consumed by `twinopsctl build`.
366
+
367
+ ```yaml
368
+ # twin.yaml — what to compose (OpenUSD + PLM + telemetry mappings)
369
+ apiVersion: twinops.io/v1alpha1
370
+ kind: TwinManifest # conceptual name; file may say DigitalTwin historically
371
+ metadata:
372
+ name: assembly-line-a
373
+ spec:
374
+ source:
375
+ baseStage: assets/root.usda # nested paths preserved in URL/tar artifacts
376
+ configuration:
377
+ variant: high-throughput
378
+ telemetry:
379
+ provider: mqtt
380
+ endpoint: mqtt://factory-broker
381
+ mappings:
382
+ - topic: factory/robot-01/temperature
383
+ prim: /World/Factory/LineA/Robot01
384
+ attribute: twinops:temperature
385
+ plm:
386
+ provider: mock
387
+ mappings:
388
+ - itemId: "1004711"
389
+ revision: "C"
390
+ prim: /World/Factory/LineA/Robot01
391
+ ```
392
+
393
+ ### 2) DigitalTwin **CR** (Kubernetes — tells the operator *where* the artifact is)
394
+
395
+ ```yaml
396
+ # DigitalTwin CR — operator control loop, not the scene itself
397
+ apiVersion: twinops.io/v1alpha1
398
+ kind: DigitalTwin
399
+ metadata:
400
+ name: assembly-line-a
401
+ namespace: twinops-system
402
+ spec:
403
+ artifactSource:
404
+ configMapName: assembly-line-inputs # or url: https://…/bundle.tar.gz
405
+ # expectedDigest: sha256:…
406
+ intervalSeconds: 30
407
+ # outputPublish.enabled defaults true → status.output.uri = configmap://…/assembly-line-a-output
408
+ ```
409
+
410
+ The compiler turns the **manifest** into OpenUSD overlay layers with `twinops:*` attributes.
411
+ The **CR** drives materialize → build → drift → durable `bundle.tar.gz` publish.
412
+
413
+ ---
414
+
415
+ ## Repository layout
416
+
417
+ ```text
418
+ twinops-control-plane/
419
+ ├── python/twinops/ # Compiler, drift, live API, PLM mock, CLI
420
+ ├── examples/assembly-line/ # Demo factory line + sample USDA + PLM/MQTT catalogs
421
+ ├── scripts/ # live-demo / mqtt-smoke / operator-demo / sync helpers
422
+ ├── docs/ # Architecture, USD model, ADRs, roadmap
423
+ ├── api/ # DigitalTwin CRD types (Go)
424
+ ├── controllers/ # Kubernetes operator controllers
425
+ ├── cmd/manager/ # Operator manager entrypoint
426
+ ├── deploy/helm/ # Helm chart for the operator
427
+ ├── Dockerfile.live # Demo live API + web UI image
428
+ ├── Dockerfile.operator # Operator manager image
429
+ ├── extensions/ # Omniverse Kit highlight stub
430
+ └── web/ # Live control-plane UI + mock Kit viewport
431
+ ```
432
+
433
+ Compiler, drift engine, operator, GitOps, observability, and mock adapters run **without an NVIDIA GPU**. A GPU is required only for Kit rendering and the host NVENC streaming bridge.
434
+
435
+ ---
436
+
437
+ ## Demo story: Self-Healing Production Line
438
+
439
+ ```text
440
+ Robot → Conveyor → Scanner → Packaging
441
+ ```
442
+
443
+ 1. Change desired robot revision in Git
444
+ 2. TwinOps compiles a new USD overlay layer
445
+ 3. Drift engine compares desired / rendered / observed state
446
+ 4. Scene metadata highlights revision or telemetry drift
447
+ 5. A reconciliation proposal restores the desired composition
448
+
449
+ Milestones 1–2 deliver composition, drift detection, HTML report, and a reconciliation proposal. The Kubernetes operator reconciles `DigitalTwin` CRs via `twinopsctl`.
450
+
451
+ ---
452
+
453
+ ## Roadmap (summary)
454
+
455
+ | Track | Focus | Status |
456
+ | ----- | ----- | ------ |
457
+ | 0–5 | Compiler, drift, live API, web demo | **done** |
458
+ | Operator | CRD, Helm, durable ConfigMap/OCI/S3 output, Job isolation, in-cluster E2E | **done (1.4.3)** |
459
+ | Kit / media | Highlight contract, lab WebRTC, single-session NVENC ingest | **lab / optional** |
460
+ | Next | Multi-site fleet, large non-ConfigMap Job inputs | not claimed |
461
+
462
+ See full [docs/roadmap.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/roadmap.md) and [docs/architecture.md](https://github.com/justrunme/twinops-control-plane/blob/main/docs/architecture.md).
463
+
464
+ ---
465
+
466
+ ## What we will not claim yet
467
+
468
+ Honest positioning: **single-twin pilot / reference control plane**, not a plant platform.
469
+
470
+ This project does **not** claim:
471
+
472
+ - multi-site / multi-tenant enterprise readiness
473
+ - NVCF or production Omniverse App Streaming
474
+ - vendor-specific PLM product SDKs (generic File/REST adapters only)
475
+ - multi-user GPU streaming farm
476
+
477
+ PLM integration ships as **mock + File/REST adapters**.
478
+
479
+ ---
480
+
481
+ ## Author
482
+
483
+ **Andrey Lesnikov** — Senior DevOps & AI Platform Engineer
484
+ ORCID: [https://orcid.org/0009-0004-7583-4314](https://orcid.org/0009-0004-7583-4314)
485
+
486
+ ## License
487
+
488
+ Apache License 2.0 — see [LICENSE](https://github.com/justrunme/twinops-control-plane/blob/main/LICENSE).