nodrix 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 (183) hide show
  1. nodrix-1.0.0/CHANGELOG.md +27 -0
  2. nodrix-1.0.0/CITATION.cff +11 -0
  3. nodrix-1.0.0/CODE_OF_CONDUCT.md +5 -0
  4. nodrix-1.0.0/CONTRIBUTING.md +29 -0
  5. nodrix-1.0.0/LICENSE +202 -0
  6. nodrix-1.0.0/MANIFEST.in +10 -0
  7. nodrix-1.0.0/NOTICE +4 -0
  8. nodrix-1.0.0/PKG-INFO +289 -0
  9. nodrix-1.0.0/README.md +233 -0
  10. nodrix-1.0.0/SECURITY.md +13 -0
  11. nodrix-1.0.0/SUPPORT.md +12 -0
  12. nodrix-1.0.0/VERIFICATION.md +131 -0
  13. nodrix-1.0.0/docs/ABI_STABILITY.md +18 -0
  14. nodrix-1.0.0/docs/ARCHITECTURE.md +331 -0
  15. nodrix-1.0.0/docs/CUSTOM_TYPES.md +77 -0
  16. nodrix-1.0.0/docs/DATA_PLANE.md +53 -0
  17. nodrix-1.0.0/docs/DEVICE_MEMORY.md +59 -0
  18. nodrix-1.0.0/docs/DLPACK.md +40 -0
  19. nodrix-1.0.0/docs/DMA_BUF.md +37 -0
  20. nodrix-1.0.0/docs/FULL_WORKFLOW_RU.md +234 -0
  21. nodrix-1.0.0/docs/H264_STREAMS.md +61 -0
  22. nodrix-1.0.0/docs/INIT_PROJECTS.md +59 -0
  23. nodrix-1.0.0/docs/LIFECYCLE_HEALTH.md +22 -0
  24. nodrix-1.0.0/docs/LOCKFILE.md +9 -0
  25. nodrix-1.0.0/docs/MEDIA_PACK.md +105 -0
  26. nodrix-1.0.0/docs/MEMORY_NEGOTIATION.md +70 -0
  27. nodrix-1.0.0/docs/METRICS_RUNS.md +10 -0
  28. nodrix-1.0.0/docs/NETWORKING.md +152 -0
  29. nodrix-1.0.0/docs/PACKAGES.md +25 -0
  30. nodrix-1.0.0/docs/PERFORMANCE.md +171 -0
  31. nodrix-1.0.0/docs/PROCESS_ISOLATION.md +75 -0
  32. nodrix-1.0.0/docs/PRODUCTION_RUNTIME.md +26 -0
  33. nodrix-1.0.0/docs/PYTHON_TO_CPP.md +72 -0
  34. nodrix-1.0.0/docs/RECORD_PLAY.md +77 -0
  35. nodrix-1.0.0/docs/RELEASE_0.5.0.md +99 -0
  36. nodrix-1.0.0/docs/RELEASE_0.6.0.md +120 -0
  37. nodrix-1.0.0/docs/RELEASE_0.7.0.md +25 -0
  38. nodrix-1.0.0/docs/RELEASE_0.8.0.md +35 -0
  39. nodrix-1.0.0/docs/RELEASE_0.9.0.md +46 -0
  40. nodrix-1.0.0/docs/RELEASE_1.0.0.md +36 -0
  41. nodrix-1.0.0/docs/ROADMAP.md +21 -0
  42. nodrix-1.0.0/docs/SECURITY.md +24 -0
  43. nodrix-1.0.0/docs/VIEWER.md +136 -0
  44. nodrix-1.0.0/docs/VIEWER_RU.md +115 -0
  45. nodrix-1.0.0/examples/custom_type_native/README.md +14 -0
  46. nodrix-1.0.0/examples/custom_type_native/generated/__init__.py +1 -0
  47. nodrix-1.0.0/examples/custom_type_native/generated/demo_telemetry.py +63 -0
  48. nodrix-1.0.0/examples/custom_type_native/nodes.py +23 -0
  49. nodrix-1.0.0/examples/custom_type_native/pipeline.yaml +19 -0
  50. nodrix-1.0.0/examples/custom_type_native/plugin.cpp +35 -0
  51. nodrix-1.0.0/examples/custom_type_native/telemetry.yaml +7 -0
  52. nodrix-1.0.0/examples/cv_demo/README.md +30 -0
  53. nodrix-1.0.0/examples/cv_demo/nodes.py +90 -0
  54. nodrix-1.0.0/examples/cv_demo/pipeline.yaml +47 -0
  55. nodrix-1.0.0/examples/native_high_performance.yaml +36 -0
  56. nodrix-1.0.0/examples/native_plugin_pipeline.yaml +35 -0
  57. nodrix-1.0.0/examples/python_to_cpp/README.md +16 -0
  58. nodrix-1.0.0/examples/python_to_cpp/native_backend.cpp +34 -0
  59. nodrix-1.0.0/examples/python_to_cpp/node.py +28 -0
  60. nodrix-1.0.0/examples/python_to_cpp/pipeline.yaml +34 -0
  61. nodrix-1.0.0/examples/python_to_cpp/python_backend.py +2 -0
  62. nodrix-1.0.0/examples/python_to_cpp/setup.py +14 -0
  63. nodrix-1.0.0/examples/python_to_cpp/source.py +24 -0
  64. nodrix-1.0.0/examples/quickstart/pipeline.yaml +34 -0
  65. nodrix-1.0.0/examples/unified_native/README.md +17 -0
  66. nodrix-1.0.0/examples/unified_native/pipeline.yaml +28 -0
  67. nodrix-1.0.0/examples/video_passthrough/generate_demo_video.py +25 -0
  68. nodrix-1.0.0/examples/video_passthrough/pipeline.yaml +31 -0
  69. nodrix-1.0.0/pyproject.toml +108 -0
  70. nodrix-1.0.0/scripts/bump_version.py +50 -0
  71. nodrix-1.0.0/scripts/check_release.py +102 -0
  72. nodrix-1.0.0/scripts/create_github_repo.sh +33 -0
  73. nodrix-1.0.0/scripts/install_local.sh +7 -0
  74. nodrix-1.0.0/scripts/production_stress.py +46 -0
  75. nodrix-1.0.0/scripts/release.sh +20 -0
  76. nodrix-1.0.0/scripts/stream_reconnect_stress.py +30 -0
  77. nodrix-1.0.0/scripts/test_mixed_native.py +15 -0
  78. nodrix-1.0.0/scripts/wire_fuzz.py +27 -0
  79. nodrix-1.0.0/setup.cfg +4 -0
  80. nodrix-1.0.0/setup.py +48 -0
  81. nodrix-1.0.0/src/nodrix/__init__.py +47 -0
  82. nodrix-1.0.0/src/nodrix/buffers.py +58 -0
  83. nodrix-1.0.0/src/nodrix/builtin_nodes.py +382 -0
  84. nodrix-1.0.0/src/nodrix/cli.py +1215 -0
  85. nodrix-1.0.0/src/nodrix/core/__init__.py +30 -0
  86. nodrix-1.0.0/src/nodrix/cv_types.py +674 -0
  87. nodrix-1.0.0/src/nodrix/device.py +87 -0
  88. nodrix-1.0.0/src/nodrix/discovery.py +297 -0
  89. nodrix-1.0.0/src/nodrix/errors.py +14 -0
  90. nodrix-1.0.0/src/nodrix/hybrid_runtime.py +985 -0
  91. nodrix-1.0.0/src/nodrix/lifecycle.py +119 -0
  92. nodrix-1.0.0/src/nodrix/lockfile.py +130 -0
  93. nodrix-1.0.0/src/nodrix/manifest.py +258 -0
  94. nodrix-1.0.0/src/nodrix/media.py +669 -0
  95. nodrix-1.0.0/src/nodrix/memory.py +329 -0
  96. nodrix-1.0.0/src/nodrix/messages.py +28 -0
  97. nodrix-1.0.0/src/nodrix/metrics.py +125 -0
  98. nodrix-1.0.0/src/nodrix/native/CMakeLists.txt +62 -0
  99. nodrix-1.0.0/src/nodrix/native/examples/filter_plugin.cpp +65 -0
  100. nodrix-1.0.0/src/nodrix/native/include/nodrix/buffer.hpp +104 -0
  101. nodrix-1.0.0/src/nodrix/native/include/nodrix/builtin_nodes.hpp +12 -0
  102. nodrix-1.0.0/src/nodrix/native/include/nodrix/device_memory.hpp +57 -0
  103. nodrix-1.0.0/src/nodrix/native/include/nodrix/message.hpp +42 -0
  104. nodrix-1.0.0/src/nodrix/native/include/nodrix/mpmc_queue.hpp +132 -0
  105. nodrix-1.0.0/src/nodrix/native/include/nodrix/node.hpp +57 -0
  106. nodrix-1.0.0/src/nodrix/native/include/nodrix/plugin.hpp +24 -0
  107. nodrix-1.0.0/src/nodrix/native/include/nodrix/shared_memory.hpp +94 -0
  108. nodrix-1.0.0/src/nodrix/native/include/nodrix/spsc_queue.hpp +115 -0
  109. nodrix-1.0.0/src/nodrix/native/python/buffer_module.cpp +310 -0
  110. nodrix-1.0.0/src/nodrix/native/python/device_module.cpp +128 -0
  111. nodrix-1.0.0/src/nodrix/native/python/plugin_module.cpp +504 -0
  112. nodrix-1.0.0/src/nodrix/native/python/queue_module.cpp +321 -0
  113. nodrix-1.0.0/src/nodrix/native/src/builtin_nodes.cpp +170 -0
  114. nodrix-1.0.0/src/nodrix/native/src/runner.cpp +666 -0
  115. nodrix-1.0.0/src/nodrix/native/tests/test_core.cpp +67 -0
  116. nodrix-1.0.0/src/nodrix/native_plugin.py +131 -0
  117. nodrix-1.0.0/src/nodrix/native_runtime.py +325 -0
  118. nodrix-1.0.0/src/nodrix/node.py +124 -0
  119. nodrix-1.0.0/src/nodrix/packages.py +188 -0
  120. nodrix-1.0.0/src/nodrix/process_host.py +602 -0
  121. nodrix-1.0.0/src/nodrix/project_templates.py +537 -0
  122. nodrix-1.0.0/src/nodrix/recording.py +339 -0
  123. nodrix-1.0.0/src/nodrix/registry.py +76 -0
  124. nodrix-1.0.0/src/nodrix/runs.py +75 -0
  125. nodrix-1.0.0/src/nodrix/runtime.py +381 -0
  126. nodrix-1.0.0/src/nodrix/shared_memory.py +235 -0
  127. nodrix-1.0.0/src/nodrix/streams.py +519 -0
  128. nodrix-1.0.0/src/nodrix/telemetry.py +56 -0
  129. nodrix-1.0.0/src/nodrix/type_codegen.py +250 -0
  130. nodrix-1.0.0/src/nodrix/validation.py +84 -0
  131. nodrix-1.0.0/src/nodrix/viewer.py +764 -0
  132. nodrix-1.0.0/src/nodrix/vision/__init__.py +21 -0
  133. nodrix-1.0.0/src/nodrix/wire.py +563 -0
  134. nodrix-1.0.0/src/nodrix.egg-info/PKG-INFO +289 -0
  135. nodrix-1.0.0/src/nodrix.egg-info/SOURCES.txt +182 -0
  136. nodrix-1.0.0/src/nodrix.egg-info/dependency_links.txt +1 -0
  137. nodrix-1.0.0/src/nodrix.egg-info/entry_points.txt +3 -0
  138. nodrix-1.0.0/src/nodrix.egg-info/requires.txt +27 -0
  139. nodrix-1.0.0/src/nodrix.egg-info/top_level.txt +1 -0
  140. nodrix-1.0.0/tests/test_custom_nodes.py +15 -0
  141. nodrix-1.0.0/tests/test_hybrid_runtime.py +129 -0
  142. nodrix-1.0.0/tests/test_manifest.py +11 -0
  143. nodrix-1.0.0/tests/test_native_runtime.py +15 -0
  144. nodrix-1.0.0/tests/test_runtime.py +19 -0
  145. nodrix-1.0.0/tests/test_v040.py +186 -0
  146. nodrix-1.0.0/tests/test_v050.py +139 -0
  147. nodrix-1.0.0/tests/test_v060.py +184 -0
  148. nodrix-1.0.0/tests/test_v070.py +76 -0
  149. nodrix-1.0.0/tests/test_v080.py +195 -0
  150. nodrix-1.0.0/tests/test_v090.py +165 -0
  151. nodrix-1.0.0/tests/test_v100.py +299 -0
  152. nodrix-1.0.0/wiki/ABI-Stability.md +9 -0
  153. nodrix-1.0.0/wiki/CLI-Reference.md +62 -0
  154. nodrix-1.0.0/wiki/Custom-Types.md +16 -0
  155. nodrix-1.0.0/wiki/Data-Plane.md +33 -0
  156. nodrix-1.0.0/wiki/Device-Memory.md +12 -0
  157. nodrix-1.0.0/wiki/Full-Workflow.md +17 -0
  158. nodrix-1.0.0/wiki/H264-Streams.md +28 -0
  159. nodrix-1.0.0/wiki/Home.md +13 -0
  160. nodrix-1.0.0/wiki/Init-Templates.md +17 -0
  161. nodrix-1.0.0/wiki/Installation.md +28 -0
  162. nodrix-1.0.0/wiki/Lock-and-Runs.md +10 -0
  163. nodrix-1.0.0/wiki/Media-Pack.md +26 -0
  164. nodrix-1.0.0/wiki/Memory-Negotiation.md +11 -0
  165. nodrix-1.0.0/wiki/Networking.md +35 -0
  166. nodrix-1.0.0/wiki/Packages.md +9 -0
  167. nodrix-1.0.0/wiki/Performance.md +15 -0
  168. nodrix-1.0.0/wiki/Pipeline-Manifest.md +26 -0
  169. nodrix-1.0.0/wiki/Process-Isolation.md +21 -0
  170. nodrix-1.0.0/wiki/Production-Runtime.md +10 -0
  171. nodrix-1.0.0/wiki/Python-SDK.md +16 -0
  172. nodrix-1.0.0/wiki/Python-to-Cpp.md +10 -0
  173. nodrix-1.0.0/wiki/Record-Play.md +31 -0
  174. nodrix-1.0.0/wiki/Security.md +3 -0
  175. nodrix-1.0.0/wiki/Troubleshooting.md +21 -0
  176. nodrix-1.0.0/wiki/Version-0.5.0.md +18 -0
  177. nodrix-1.0.0/wiki/Version-0.6.0.md +21 -0
  178. nodrix-1.0.0/wiki/Version-0.7.0.md +9 -0
  179. nodrix-1.0.0/wiki/Version-0.8.0.md +15 -0
  180. nodrix-1.0.0/wiki/Version-0.9.0.md +15 -0
  181. nodrix-1.0.0/wiki/Version-1.0.0.md +5 -0
  182. nodrix-1.0.0/wiki/Viewer.md +36 -0
  183. nodrix-1.0.0/wiki/_Sidebar.md +29 -0
@@ -0,0 +1,27 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0 — Production Runtime
4
+
5
+ - Fixed the public Python API for the Nodrix 1.x line.
6
+ - Introduced lifecycle states, readiness/health snapshots, queue pressure, watchdog recovery, graceful shutdown, `skip_message`, `disable_branch`, and process resource limits.
7
+ - Declared stable Nodrix Plugin ABI 1.0 (`65536`) with typed-port and memory-domain feature flags.
8
+ - Added `nodrix native inspect` compatibility checks.
9
+ - Added checksummed local `.ndpkg` packages and `package/node` references.
10
+ - Added deterministic `nodrix.lock`, `nodrix lock --check`, and `nodrix run --locked`.
11
+ - Added schema versions to the wire protocol and generated custom types.
12
+ - Added production run artifacts, `status`, `health`, `metrics`, and `runs` commands.
13
+ - Added JSONL telemetry and optional Prometheus HTTP endpoint.
14
+ - Added token-authenticated/IP-allowlisted streams, handshake/message limits, strict validation, and automatic secret redaction.
15
+ - Added package, lock, security, lifecycle, watchdog, and failure-policy integration tests.
16
+
17
+ ## 0.9.0 — Device Memory & Native I/O foundation
18
+
19
+ - Universal device-memory contracts, DLPack, DMA-BUF descriptors, isolated source support, and zero-copy process outputs.
20
+
21
+ ## 0.8.0 — Data Plane
22
+
23
+ - Shared memory, process isolation, `.ndrx` record/play, and H.264/H.265 streams.
24
+
25
+ ## 0.7.0 — Media Pack
26
+
27
+ - FFmpeg sources/writers, persistent encoders, media CLI, and viewer FFmpeg mode.
@@ -0,0 +1,11 @@
1
+ cff-version: 1.2.0
2
+ title: Nodrix
3
+ message: "If you use Nodrix in research, please cite the software repository and release."
4
+ type: software
5
+ authors:
6
+ - name: CactysFedya
7
+ version: 1.0.0
8
+ date-released: 2026-07-28
9
+ repository-code: "https://github.com/CactysFedya/nodrix"
10
+ url: "https://pypi.org/project/nodrix/"
11
+ license: Apache-2.0
@@ -0,0 +1,5 @@
1
+ # Code of Conduct
2
+
3
+ Be respectful, technically specific, and constructive. Harassment, discrimination, personal attacks, doxxing, and deliberate disruption are not accepted.
4
+
5
+ Project maintainers may edit or remove abusive content and restrict participation when necessary to protect contributors and users.
@@ -0,0 +1,29 @@
1
+ # Contributing to Nodrix
2
+
3
+ Nodrix accepts bug fixes, documentation improvements, performance work, new typed-message codecs, and carefully scoped runtime features.
4
+
5
+ ## Development setup
6
+
7
+ ```bash
8
+ git clone https://github.com/CactysFedya/nodrix.git
9
+ cd nodrix
10
+ python3 -m venv .venv
11
+ source .venv/bin/activate
12
+ python -m pip install -e ".[dev,all]"
13
+ python setup.py build_ext --inplace
14
+ pytest -q
15
+ ```
16
+
17
+ Native core tests:
18
+
19
+ ```bash
20
+ make native-test
21
+ ```
22
+
23
+ ## Pull requests
24
+
25
+ Keep changes focused. Include a regression test for bug fixes and describe any effect on payload copies, queue behavior, ABI, message schemas, memory domains, or network compatibility.
26
+
27
+ Public Python API and Plugin ABI 1.0 are compatibility surfaces. Breaking changes require an explicit design discussion and a major release.
28
+
29
+ Do not commit generated wheels, native extension binaries, run artifacts, recordings, models, datasets, tokens, or passwords.
nodrix-1.0.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,10 @@
1
+ include README.md LICENSE NOTICE CHANGELOG.md VERIFICATION.md
2
+ include pyproject.toml setup.py setup.cfg
3
+ include CONTRIBUTING.md SECURITY.md SUPPORT.md CODE_OF_CONDUCT.md CITATION.cff
4
+ recursive-include docs *.md
5
+ recursive-include examples *.py *.cpp *.yaml *.yml *.md
6
+ recursive-include tests *.py
7
+ recursive-include src/nodrix/native *.hpp *.cpp CMakeLists.txt
8
+ recursive-include wiki *.md
9
+ recursive-include scripts *.py *.sh
10
+ prune examples/unified_native/.nodrix
nodrix-1.0.0/NOTICE ADDED
@@ -0,0 +1,4 @@
1
+ Nodrix
2
+ Copyright 2026 CactysFedya and Nodrix contributors
3
+
4
+ This product includes software developed by the Nodrix contributors.
nodrix-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,289 @@
1
+ Metadata-Version: 2.4
2
+ Name: nodrix
3
+ Version: 1.0.0
4
+ Summary: High-performance typed runtime for local and distributed streaming graphs
5
+ Author: CactysFedya
6
+ Maintainer: Nodrix contributors
7
+ License-Expression: Apache-2.0
8
+ Project-URL: Homepage, https://github.com/CactysFedya/nodrix
9
+ Project-URL: Documentation, https://github.com/CactysFedya/nodrix/tree/main/docs
10
+ Project-URL: Repository, https://github.com/CactysFedya/nodrix.git
11
+ Project-URL: Issues, https://github.com/CactysFedya/nodrix/issues
12
+ Project-URL: Changelog, https://github.com/CactysFedya/nodrix/blob/main/CHANGELOG.md
13
+ Keywords: streaming,dataflow,graph-runtime,computer-vision,zero-copy,shared-memory,cpp,edge-computing
14
+ Classifier: Development Status :: 5 - Production/Stable
15
+ Classifier: Environment :: Console
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Intended Audience :: Science/Research
18
+ Classifier: Operating System :: MacOS
19
+ Classifier: Operating System :: POSIX :: Linux
20
+ Classifier: Programming Language :: C++
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
27
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
28
+ Classifier: Topic :: System :: Distributed Computing
29
+ Requires-Python: >=3.11
30
+ Description-Content-Type: text/markdown
31
+ License-File: LICENSE
32
+ License-File: NOTICE
33
+ Requires-Dist: typer>=0.12
34
+ Requires-Dist: pydantic>=2.7
35
+ Requires-Dist: PyYAML>=6.0
36
+ Requires-Dist: rich>=13.7
37
+ Provides-Extra: vision
38
+ Requires-Dist: numpy>=1.26; extra == "vision"
39
+ Requires-Dist: opencv-python>=4.9; extra == "vision"
40
+ Provides-Extra: viewer
41
+ Requires-Dist: numpy>=1.26; extra == "viewer"
42
+ Requires-Dist: opencv-python>=4.9; extra == "viewer"
43
+ Provides-Extra: media
44
+ Requires-Dist: numpy>=1.26; extra == "media"
45
+ Requires-Dist: opencv-python>=4.9; extra == "media"
46
+ Provides-Extra: all
47
+ Requires-Dist: numpy>=1.26; extra == "all"
48
+ Requires-Dist: opencv-python>=4.9; extra == "all"
49
+ Provides-Extra: dev
50
+ Requires-Dist: build>=1.2; extra == "dev"
51
+ Requires-Dist: cibuildwheel<4,>=3.3; extra == "dev"
52
+ Requires-Dist: pytest>=8.0; extra == "dev"
53
+ Requires-Dist: ruff>=0.12; extra == "dev"
54
+ Requires-Dist: twine>=6.1; extra == "dev"
55
+ Dynamic: license-file
56
+
57
+ # Nodrix 1.0.0
58
+
59
+ [![PyPI](https://img.shields.io/pypi/v/nodrix.svg)](https://pypi.org/project/nodrix/)
60
+ [![Python](https://img.shields.io/pypi/pyversions/nodrix.svg)](https://pypi.org/project/nodrix/)
61
+ [![CI](https://github.com/CactysFedya/nodrix/actions/workflows/ci.yml/badge.svg)](https://github.com/CactysFedya/nodrix/actions/workflows/ci.yml)
62
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
63
+
64
+ Nodrix is a high-performance typed runtime for local and distributed streaming graphs. It runs Python and C++ nodes in one graph, preserves zero-copy paths where the memory domain permits, and makes every copy, drop, restart, queue, and network export observable.
65
+
66
+ ## Core model
67
+
68
+ ```text
69
+ Pipeline manifest
70
+ ↓ validate / lock
71
+ Executable typed graph
72
+
73
+ Node → Port → Edge → Node
74
+ ├─ in-process zero-copy
75
+ ├─ shared-memory process isolation
76
+ ├─ device-memory contracts
77
+ └─ named LAN streams
78
+ ```
79
+
80
+ No detector, tracker, camera, or fixed stage is mandatory. A graph can be `Capture → Inference → Output`, `Source → Sink`, a branched media graph, LiDAR processing, audio, or custom typed data.
81
+
82
+ ## Install
83
+
84
+ Install the core runtime and CLI from PyPI:
85
+
86
+ ```bash
87
+ python3 -m venv .venv
88
+ source .venv/bin/activate
89
+ pip install nodrix
90
+ nodrix --version
91
+ ```
92
+
93
+ Optional media and viewer dependencies:
94
+
95
+ ```bash
96
+ pip install "nodrix[viewer]"
97
+ pip install "nodrix[media]"
98
+ ```
99
+
100
+ For an isolated CLI installation:
101
+
102
+ ```bash
103
+ pipx install nodrix
104
+ ```
105
+
106
+ GitHub Releases provide prebuilt Linux x86-64, Linux ARM64 and macOS wheels. When a compatible wheel is unavailable, `pip` builds the included C++20 extensions from the source distribution, which requires a C++ compiler and Python development headers.
107
+
108
+ ## Empty project and templates
109
+
110
+ ```bash
111
+ nodrix init my_project
112
+ ```
113
+
114
+ This creates an intentionally empty project skeleton. Runnable examples are explicit:
115
+
116
+ ```bash
117
+ nodrix init camera_app --template vision
118
+ nodrix init media_app --template media
119
+ nodrix init device_app --template device
120
+ nodrix init package_app --template package
121
+ ```
122
+
123
+ ## Run and reproduce
124
+
125
+ ```bash
126
+ cd my_project
127
+ nodrix validate --strict
128
+ nodrix lock
129
+ nodrix run --locked
130
+ ```
131
+
132
+ Every run receives its own artifact directory:
133
+
134
+ ```text
135
+ .nodrix/runs/<run-id>/
136
+ ├── manifest.yaml
137
+ ├── resolved-manifest.yaml
138
+ ├── nodrix.lock
139
+ ├── runtime.json
140
+ ├── environment.json
141
+ ├── status.json
142
+ ├── metrics.jsonl
143
+ ├── errors.jsonl
144
+ ├── logs/
145
+ ├── outputs/
146
+ └── summary.json
147
+ ```
148
+
149
+ ## Stable Python API
150
+
151
+ ```python
152
+ from nodrix import Message, Node
153
+
154
+ class Multiply(Node):
155
+ input_types = {"input": "core.object"}
156
+ output_types = {"output": "core.object"}
157
+
158
+ def process(self, inputs):
159
+ message = inputs["input"]
160
+ return {
161
+ "output": message.with_updates(
162
+ payload={"value": message.payload["value"] * 2}
163
+ )
164
+ }
165
+ ```
166
+
167
+ Nodrix 1.x preserves the public `Node`, `SourceNode`, `SinkNode`, `Message`, `NodeContext`, buffer, memory, and lifecycle contracts. Existing 0.x nodes that override `open`, `flush`, and `close` continue to work through lifecycle adapters.
168
+
169
+ ## Lifecycle and health
170
+
171
+ Lifecycle states:
172
+
173
+ ```text
174
+ created → configured → starting → running → draining → stopping → stopped
175
+ └→ failed / restarting
176
+ ```
177
+
178
+ ```bash
179
+ nodrix status
180
+ nodrix health
181
+ nodrix health --watch
182
+ ```
183
+
184
+ Process-isolated nodes can use watchdog recovery:
185
+
186
+ ```yaml
187
+ nodes:
188
+ detector:
189
+ uses: ./nodes/detector.py:Detector
190
+ execution:
191
+ isolation: process
192
+ failure:
193
+ policy: restart
194
+ max_restarts: 5
195
+ health:
196
+ timeout_ms: 2000
197
+ on_timeout: restart
198
+ ```
199
+
200
+ ## Local packages
201
+
202
+ ```bash
203
+ nodrix init my_nodes --template package
204
+ cd my_nodes
205
+ nodrix package build .
206
+ nodrix package install dist/my-nodes-1.0.0.ndpkg
207
+ ```
208
+
209
+ Use an installed node by stable package reference:
210
+
211
+ ```yaml
212
+ nodes:
213
+ processor:
214
+ uses: my-nodes/passthrough
215
+ ```
216
+
217
+ `.ndpkg` installation checks archive paths and SHA-256 checksums. No public marketplace or remote-code installation is enabled in 1.0.
218
+
219
+ ## Secure named streams
220
+
221
+ Only explicitly exported ports become network streams. Local edges remain direct and do not pay network or serialization overhead.
222
+
223
+ ```yaml
224
+ streams:
225
+ bind_host: 0.0.0.0
226
+ max_message_bytes: 67108864
227
+ exports:
228
+ - name: /camera/front/h264
229
+ from: encoder.encoded
230
+ queue:
231
+ capacity: 1
232
+ policy: latest
233
+ access:
234
+ mode: token
235
+ token_env: NODRIX_CAMERA_TOKEN
236
+ allow_ips: ["192.168.1.0/24"]
237
+ ```
238
+
239
+ ```bash
240
+ export NODRIX_STREAM_TOKEN=...
241
+ nodrix stream echo /camera/front/h264
242
+ nodrix-viewer /camera/front/h264
243
+ ```
244
+
245
+ ## Production validation
246
+
247
+ ```bash
248
+ nodrix validate --strict
249
+ nodrix inspect --memory
250
+ ```
251
+
252
+ The validator checks graph cycles, port/type compatibility, memory transfers, unsupported copies, open LAN streams, stream backpressure, watchdog/isolation conflicts, resource configuration, and native plugin loading.
253
+
254
+ ## Metrics and runs
255
+
256
+ ```bash
257
+ nodrix run --metrics-listen 127.0.0.1:9464
258
+ nodrix metrics --format prometheus
259
+ nodrix runs list
260
+ nodrix runs show <run-id>
261
+ nodrix runs compare <run-a> <run-b>
262
+ ```
263
+
264
+ ## Native ABI 1.0
265
+
266
+ ```bash
267
+ nodrix native inspect ./libdetector.so
268
+ ```
269
+
270
+ Nodrix Plugin ABI 1.0 uses numeric ABI `65536` and feature flags for typed ports and memory-domain contracts. Incompatible plugins are rejected before node creation.
271
+
272
+ ## Main capabilities carried into 1.0
273
+
274
+ - Python/C++ unified graph executor;
275
+ - native bounded queues and reusable buffer pools;
276
+ - shared-memory process isolation with zero-copy input/output paths;
277
+ - CPU, shared, DMA-BUF, CUDA, ROCm, Vulkan, OpenCL, Metal, NPU and external-memory contracts;
278
+ - DLPack interoperability;
279
+ - `.ndrx` universal record/play;
280
+ - FFmpeg Media Pack and H.264/H.265 named streams;
281
+ - low-latency `nodrix-viewer`;
282
+ - typed custom-message generation for Python and C++;
283
+ - local/LAN stream discovery without a mandatory agent.
284
+
285
+ ## Honest limitations
286
+
287
+ Nodrix 1.0 stabilizes the contracts and production control plane. Hardware-specific CUDA IPC mapping, full V4L2 DMA-BUF capture/requeue, native libav nodes, QUIC/UDP data plane, TLS certificates, ROS 2 bridge, and ready-made detector/tracker packs remain later backends or releases.
288
+
289
+ See [docs/FULL_WORKFLOW_RU.md](docs/FULL_WORKFLOW_RU.md), [docs/RELEASE_1.0.0.md](docs/RELEASE_1.0.0.md), [CONTRIBUTING.md](CONTRIBUTING.md), and [PUBLISHING_RU.md](PUBLISHING_RU.md).