networka 0.3.0__tar.gz → 0.4.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 (207) hide show
  1. {networka-0.3.0 → networka-0.4.0}/.gitignore +6 -0
  2. {networka-0.3.0 → networka-0.4.0}/PKG-INFO +29 -66
  3. {networka-0.3.0 → networka-0.4.0}/README.md +25 -41
  4. networka-0.4.0/docs/adding-platforms.md +110 -0
  5. networka-0.4.0/docs/backups.md +22 -0
  6. {networka-0.3.0 → networka-0.4.0}/docs/configuration.md +43 -60
  7. {networka-0.3.0 → networka-0.4.0}/docs/development/networka-release-qualification.md +13 -1
  8. {networka-0.3.0 → networka-0.4.0}/docs/development/networka-upgrade-plan.md +2 -2
  9. networka-0.4.0/docs/development.md +193 -0
  10. {networka-0.3.0 → networka-0.4.0}/docs/environment-variables.md +5 -1
  11. networka-0.4.0/docs/examples/intent/README.md +217 -0
  12. networka-0.4.0/docs/examples/intent/compare.py +341 -0
  13. networka-0.4.0/docs/examples/recipes.md +35 -0
  14. {networka-0.3.0 → networka-0.4.0}/docs/examples/user_sequences/README.md +6 -5
  15. {networka-0.3.0 → networka-0.4.0}/docs/file_upload.md +3 -3
  16. networka-0.4.0/docs/getting-started.md +72 -0
  17. {networka-0.3.0 → networka-0.4.0}/docs/index.md +11 -16
  18. {networka-0.3.0 → networka-0.4.0}/docs/interactive-credentials.md +1 -1
  19. networka-0.4.0/docs/ip-address-support.md +67 -0
  20. networka-0.4.0/docs/library/adhoc-targets.md +61 -0
  21. {networka-0.3.0 → networka-0.4.0}/docs/library/index.md +5 -9
  22. networka-0.4.0/docs/library/quickstart.md +60 -0
  23. {networka-0.3.0 → networka-0.4.0}/docs/library/recipes.md +47 -52
  24. {networka-0.3.0 → networka-0.4.0}/docs/multi-vendor-support.md +42 -47
  25. {networka-0.3.0 → networka-0.4.0}/docs/nornir-inventory.md +5 -0
  26. networka-0.4.0/docs/output-modes.md +33 -0
  27. {networka-0.3.0 → networka-0.4.0}/docs/overrides/home.html +3 -2
  28. networka-0.4.0/docs/platform-compatibility.md +38 -0
  29. {networka-0.3.0 → networka-0.4.0}/docs/reference/cli.md +103 -99
  30. {networka-0.3.0 → networka-0.4.0}/docs/reference/introspection.md +4 -0
  31. networka-0.4.0/docs/results.md +49 -0
  32. {networka-0.3.0 → networka-0.4.0}/docs/running-commands.md +10 -6
  33. {networka-0.3.0 → networka-0.4.0}/docs/shell-completion.md +4 -5
  34. {networka-0.3.0 → networka-0.4.0}/docs/ssh-config-sync.md +6 -2
  35. {networka-0.3.0 → networka-0.4.0}/docs/tmux-ssh.md +19 -45
  36. {networka-0.3.0 → networka-0.4.0}/docs/transport.md +17 -2
  37. networka-0.4.0/docs/troubleshooting.md +55 -0
  38. {networka-0.3.0 → networka-0.4.0}/docs/vendors/arista/index.md +4 -2
  39. {networka-0.3.0 → networka-0.4.0}/docs/vendors/cisco/index.md +13 -12
  40. {networka-0.3.0 → networka-0.4.0}/docs/vendors/index.md +2 -2
  41. {networka-0.3.0 → networka-0.4.0}/docs/vendors/juniper/index.md +3 -1
  42. {networka-0.3.0 → networka-0.4.0}/docs/vendors/mikrotik/index.md +6 -10
  43. {networka-0.3.0 → networka-0.4.0}/docs/vendors/nokia/index.md +3 -1
  44. {networka-0.3.0 → networka-0.4.0}/pyproject.toml +11 -65
  45. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/__about__.py +1 -1
  46. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/api/diff.py +23 -13
  47. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/api/execution.py +1 -5
  48. networka-0.4.0/src/network_toolkit/api/info.py +93 -0
  49. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/api/list.py +26 -47
  50. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/api/run.py +13 -8
  51. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/api/upload.py +4 -0
  52. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/banner.py +11 -16
  53. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/cli.py +5 -70
  54. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/backup.py +0 -1
  55. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/complete.py +19 -52
  56. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/config.py +15 -39
  57. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/diff.py +0 -1
  58. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/download.py +0 -1
  59. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/firmware.py +0 -1
  60. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/info.py +56 -130
  61. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/list.py +28 -25
  62. networka-0.4.0/src/network_toolkit/commands/platforms.py +264 -0
  63. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/routerboard_upgrade.py +0 -1
  64. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/run.py +14 -17
  65. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/schema.py +0 -1
  66. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/ssh.py +2 -3
  67. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/sync_ssh.py +0 -1
  68. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/upload.py +6 -11
  69. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/vendor_config_backup.py +0 -1
  70. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/command_helpers.py +27 -25
  71. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/defaults.py +2 -1
  72. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/logging.py +1 -16
  73. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/output.py +77 -175
  74. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/styles.py +4 -10
  75. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/table_generator.py +28 -15
  76. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/table_providers.py +51 -181
  77. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/config.py +142 -199
  78. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/credentials.py +3 -8
  79. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/exceptions.py +0 -6
  80. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/inventory/ssh_config.py +6 -2
  81. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/ip_device.py +16 -19
  82. networka-0.4.0/src/network_toolkit/sequence_manager.py +302 -0
  83. networka-0.4.0/src/network_toolkit/transport/factory.py +50 -0
  84. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/transport/scrapli_sync.py +31 -0
  85. networka-0.3.0/docs/adding-platforms.md +0 -802
  86. networka-0.3.0/docs/backups.md +0 -33
  87. networka-0.3.0/docs/development.md +0 -340
  88. networka-0.3.0/docs/examples/recipes.md +0 -44
  89. networka-0.3.0/docs/getting-started.md +0 -73
  90. networka-0.3.0/docs/ip-address-support.md +0 -108
  91. networka-0.3.0/docs/library/adhoc-targets.md +0 -120
  92. networka-0.3.0/docs/library/quickstart.md +0 -88
  93. networka-0.3.0/docs/output-modes.md +0 -28
  94. networka-0.3.0/docs/platform-compatibility.md +0 -12
  95. networka-0.3.0/docs/results.md +0 -32
  96. networka-0.3.0/docs/troubleshooting.md +0 -83
  97. networka-0.3.0/src/network_toolkit/api/info.py +0 -80
  98. networka-0.3.0/src/network_toolkit/commands/platforms.py +0 -195
  99. networka-0.3.0/src/network_toolkit/commands/sequence.py +0 -17
  100. networka-0.3.0/src/network_toolkit/common/color_magic.py +0 -177
  101. networka-0.3.0/src/network_toolkit/common/command.py +0 -158
  102. networka-0.3.0/src/network_toolkit/common/command_base.py +0 -132
  103. networka-0.3.0/src/network_toolkit/common/output_clean.py +0 -244
  104. networka-0.3.0/src/network_toolkit/sequence_manager.py +0 -315
  105. networka-0.3.0/src/network_toolkit/transport/factory.py +0 -99
  106. networka-0.3.0/src/network_toolkit/transport/nornir_inventory.py +0 -176
  107. networka-0.3.0/src/network_toolkit/transport/nornir_netmiko.py +0 -279
  108. networka-0.3.0/src/network_toolkit/tui/__init__.py +0 -18
  109. networka-0.3.0/src/network_toolkit/tui/app.py +0 -1275
  110. networka-0.3.0/src/network_toolkit/tui/clipboard.py +0 -46
  111. networka-0.3.0/src/network_toolkit/tui/compat.py +0 -111
  112. networka-0.3.0/src/network_toolkit/tui/constants.py +0 -111
  113. networka-0.3.0/src/network_toolkit/tui/controller.py +0 -550
  114. networka-0.3.0/src/network_toolkit/tui/data.py +0 -146
  115. networka-0.3.0/src/network_toolkit/tui/dialogs.py +0 -196
  116. networka-0.3.0/src/network_toolkit/tui/helpers.py +0 -55
  117. networka-0.3.0/src/network_toolkit/tui/keymap.py +0 -31
  118. networka-0.3.0/src/network_toolkit/tui/layout.py +0 -111
  119. networka-0.3.0/src/network_toolkit/tui/models.py +0 -93
  120. networka-0.3.0/src/network_toolkit/tui/output_manager.py +0 -372
  121. networka-0.3.0/src/network_toolkit/tui/prompt.py +0 -172
  122. networka-0.3.0/src/network_toolkit/tui/services.py +0 -285
  123. {networka-0.3.0 → networka-0.4.0}/LICENSE +0 -0
  124. {networka-0.3.0 → networka-0.4.0}/config/examples/README.md +0 -0
  125. {networka-0.3.0 → networka-0.4.0}/docs/LLM_TASK_NOTES.md +0 -0
  126. {networka-0.3.0 → networka-0.4.0}/docs/adding-gifs-guide.md +0 -0
  127. {networka-0.3.0 → networka-0.4.0}/docs/assets/gifs/networka-setup.gif +0 -0
  128. {networka-0.3.0 → networka-0.4.0}/docs/assets/images/networka.jpg +0 -0
  129. {networka-0.3.0 → networka-0.4.0}/docs/assets/images/networka.png +0 -0
  130. {networka-0.3.0 → networka-0.4.0}/docs/assets/images/networka2.png +0 -0
  131. {networka-0.3.0 → networka-0.4.0}/docs/assets/images/networka_readme.png +0 -0
  132. {networka-0.3.0 → networka-0.4.0}/docs/assets/javascripts/extra.js +0 -0
  133. {networka-0.3.0 → networka-0.4.0}/docs/assets/stylesheets/extra.css +0 -0
  134. {networka-0.3.0 → networka-0.4.0}/docs/backup-filename-normalization.md +0 -0
  135. {networka-0.3.0 → networka-0.4.0}/docs/cisco-ios-platform-mapping.md +0 -0
  136. {networka-0.3.0 → networka-0.4.0}/docs/development/networka-upgrade-report-2026-11-24.md +0 -0
  137. {networka-0.3.0 → networka-0.4.0}/docs/development/platform-registry-explanations.md +0 -0
  138. {networka-0.3.0 → networka-0.4.0}/docs/development/platform-registry-implementation-plan.md +0 -0
  139. {networka-0.3.0 → networka-0.4.0}/docs/development/platform-registry-summary.md +0 -0
  140. {networka-0.3.0 → networka-0.4.0}/docs/documentation-guidelines.md +0 -0
  141. {networka-0.3.0 → networka-0.4.0}/docs/examples/user_sequences/arista_eos/custom.yml +0 -0
  142. {networka-0.3.0 → networka-0.4.0}/docs/examples/user_sequences/mikrotik_routeros/custom.yml +0 -0
  143. {networka-0.3.0 → networka-0.4.0}/docs/library/sessions.md +0 -0
  144. {networka-0.3.0 → networka-0.4.0}/docs/overrides/partials/footer.html +0 -0
  145. {networka-0.3.0 → networka-0.4.0}/docs/overrides/partials/logo.html +0 -0
  146. {networka-0.3.0 → networka-0.4.0}/docs/pypi-setup.md +0 -0
  147. {networka-0.3.0 → networka-0.4.0}/docs/reference/api.md +0 -0
  148. {networka-0.3.0 → networka-0.4.0}/docs/scrapli-platform-expansion-plan.md +0 -0
  149. {networka-0.3.0 → networka-0.4.0}/shell_completion/bash_completion_nw.sh +0 -0
  150. {networka-0.3.0 → networka-0.4.0}/shell_completion/zsh_completion_nw.zsh +0 -0
  151. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/__init__.py +0 -0
  152. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/__main__.py +0 -0
  153. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/api/__init__.py +0 -0
  154. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/api/backup.py +0 -0
  155. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/api/download.py +0 -0
  156. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/api/firmware.py +0 -0
  157. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/api/platforms.py +0 -0
  158. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/api/routerboard_upgrade.py +0 -0
  159. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/api/state_diff.py +0 -0
  160. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/api/state_diff_patterns.py +0 -0
  161. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/builtin_sequences/arista_eos/common.yml +0 -0
  162. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/builtin_sequences/cisco_iosxe/common.yml +0 -0
  163. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/builtin_sequences/cisco_nxos/common.yml +0 -0
  164. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/builtin_sequences/juniper_junos/common.yml +0 -0
  165. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/builtin_sequences/mikrotik_routeros/common.yml +0 -0
  166. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/client.py +0 -0
  167. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/__init__.py +0 -0
  168. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/ssh_engines.py +0 -0
  169. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/ssh_fallback.py +0 -0
  170. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/commands/ssh_platform.py +0 -0
  171. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/config_manifest.py +0 -0
  172. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/credentials.py +0 -0
  173. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/errors.py +0 -0
  174. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/file_utils.py +0 -0
  175. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/filename_utils.py +0 -0
  176. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/interactive_confirmation.py +0 -0
  177. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/paths.py +0 -0
  178. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/common/resolver.py +0 -0
  179. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/device.py +0 -0
  180. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/device_transfers.py +0 -0
  181. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/introspection.py +0 -0
  182. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/inventory/__init__.py +0 -0
  183. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/inventory/catalog.py +0 -0
  184. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/inventory/nornir_simple.py +0 -0
  185. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/inventory/resolve.py +0 -0
  186. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/platforms/__init__.py +0 -0
  187. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/platforms/base.py +0 -0
  188. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/platforms/cisco_ios/__init__.py +0 -0
  189. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/platforms/cisco_ios/operations.py +0 -0
  190. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/platforms/cisco_iosxe/__init__.py +0 -0
  191. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/platforms/cisco_iosxe/operations.py +0 -0
  192. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/platforms/cisco_shared/__init__.py +0 -0
  193. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/platforms/cisco_shared/operations.py +0 -0
  194. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/platforms/factory.py +0 -0
  195. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/platforms/mikrotik_routeros/__init__.py +0 -0
  196. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/platforms/mikrotik_routeros/confirmation_patterns.py +0 -0
  197. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/platforms/mikrotik_routeros/operations.py +0 -0
  198. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/platforms/registry.py +0 -0
  199. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/py.typed +0 -0
  200. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/results_enhanced.py +0 -0
  201. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/runtime.py +0 -0
  202. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/schemas/__init__.py +0 -0
  203. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/session_pool.py +0 -0
  204. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/shell_completion/bash_completion_nw.sh +0 -0
  205. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/shell_completion/zsh_completion_nw.zsh +0 -0
  206. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/transport/__init__.py +0 -0
  207. {networka-0.3.0 → networka-0.4.0}/src/network_toolkit/transport/interfaces.py +0 -0
@@ -285,6 +285,12 @@ config/sequences/*
285
285
  # Keep examples directory
286
286
  !config/examples/
287
287
 
288
+ # Generated Containerlab inventory and local connection settings
289
+ /clabs/clab-s3n/ansible-inventory.yml
290
+ /clabs/clab-s3n/nornir-simple-inventory.yml
291
+ /clabs/clab-s3n/topology-data.json
292
+ /clabs/networka-s3n-config/config.yml
293
+
288
294
  # Pre-release check marker
289
295
  .pre-release-passed
290
296
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: networka
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: Modern Python cli toolkit for network device automation
5
5
  Project-URL: Homepage, https://github.com/narrowin/networka
6
6
  Project-URL: Documentation, https://narrowin.github.io/networka/
@@ -24,47 +24,26 @@ Classifier: Operating System :: MacOS
24
24
  Classifier: Operating System :: POSIX :: Linux
25
25
  Classifier: Programming Language :: Python :: 3
26
26
  Classifier: Programming Language :: Python :: 3 :: Only
27
- Classifier: Programming Language :: Python :: 3.11
28
- Classifier: Programming Language :: Python :: 3.12
29
- Classifier: Programming Language :: Python :: 3.13
30
- Classifier: Programming Language :: Python :: 3.14
31
27
  Classifier: Programming Language :: Python :: 3.15
32
28
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
33
29
  Classifier: Topic :: System :: Networking
34
30
  Classifier: Topic :: System :: Systems Administration
35
31
  Classifier: Topic :: Utilities
36
32
  Classifier: Typing :: Typed
37
- Requires-Python: >=3.11
38
- Requires-Dist: libtmux<0.68,>=0.67.1
33
+ Requires-Python: >=3.15
34
+ Requires-Dist: libtmux<0.69,>=0.68.0
39
35
  Requires-Dist: paramiko<6,>=5.1.0
36
+ Requires-Dist: platformdirs<5,>=3.6.0
40
37
  Requires-Dist: pydantic>=2.5.0
41
38
  Requires-Dist: python-dotenv>=1.0.0
42
39
  Requires-Dist: pyyaml>=6.0
43
40
  Requires-Dist: rich>=13.0.0
44
41
  Requires-Dist: scrapli==2026.11.12
45
- Requires-Dist: textual>=0.58.0
46
42
  Requires-Dist: typer>=0.12.0
47
- Provides-Extra: dev
48
- Requires-Dist: bandit>=1.7.0; extra == 'dev'
49
- Requires-Dist: build>=0.10.0; extra == 'dev'
50
- Requires-Dist: cffconvert>=2.0.0; extra == 'dev'
51
- Requires-Dist: detect-secrets>=1.4.0; extra == 'dev'
52
- Requires-Dist: mypy==2.4.1; extra == 'dev'
53
- Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
54
- Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
55
- Requires-Dist: pytest-mock>=3.14.0; extra == 'dev'
56
- Requires-Dist: pytest-xdist>=3.8.0; extra == 'dev'
57
- Requires-Dist: pytest>=7.4.0; extra == 'dev'
58
- Requires-Dist: ruff==0.17.6; extra == 'dev'
59
- Requires-Dist: twine>=4.0.0; extra == 'dev'
60
- Requires-Dist: types-paramiko>=3.0.0; extra == 'dev'
61
- Requires-Dist: types-pyyaml>=6.0.0; extra == 'dev'
62
43
  Provides-Extra: docs
63
44
  Requires-Dist: mkdocs-material>=9.0.0; extra == 'docs'
64
45
  Requires-Dist: mkdocs>=1.5.0; extra == 'docs'
65
46
  Requires-Dist: mkdocstrings[python]>=0.24.0; extra == 'docs'
66
- Provides-Extra: tmux
67
- Requires-Dist: libtmux>=0.21.0; extra == 'tmux'
68
47
  Description-Content-Type: text/markdown
69
48
 
70
49
  <div align="center"><img src="docs/assets/images/networka_readme.png" alt="Networka Logo" width="320"/>
@@ -74,43 +53,20 @@ Description-Content-Type: text/markdown
74
53
 
75
54
  <br/>
76
55
 
77
- Network automation CLI. Apache 2.0 licensed. Fully open-source.
78
- Originally developed at [narrowin](https://narrowin.ch/en/about.html), now community maintained.
56
+ Networka is a lightweight CLI for network engineers and integrators. Run ad hoc
57
+ commands or reusable sequences across network devices from multiple vendors,
58
+ then save the output and compare it with a baseline.
79
59
 
80
- <br/>
81
-
82
- **Networka: `Eierlegende Wollmilchsau` of network operations — optimized for your daily workflows.**
60
+ Use Networka for on-demand troubleshooting and before-and-after checks. Pair it
61
+ with continuous monitoring for alerting, telemetry, and ongoing health checks.
83
62
 
84
- [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)](https://www.python.org/downloads/)
63
+ [![Python 3.15+](https://img.shields.io/badge/python-3.15%2B-blue.svg)](https://www.python.org/downloads/)
85
64
  [![Platform](https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20arm64-lightgrey.svg)](https://github.com/narrowin/networka)
86
65
  [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
87
66
  [![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
88
67
  [![Type checked with mypy](https://img.shields.io/badge/mypy-checked-blue.svg)](http://mypy-lang.org/)
89
68
  [![Docs](https://img.shields.io/github/actions/workflow/status/narrowin/networka/docs.yml?label=Docs&logo=github)](https://narrowin.github.io/networka/)
90
69
 
91
- Networka is a modern CLI tool for automating network devices across multiple vendors. Designed for network engineers who want fast, scalable automation with full cross-platform support.
92
-
93
- ---
94
-
95
- ## _The Networka Monologue_
96
-
97
- _“People ask the question…_ <br>
98
- **what’s a Networka?** <br>
99
-
100
- And I tell 'em — <br>
101
- it's **not** about cables, configs, and pings. <br>
102
- _Oh no._ <br>
103
- There’s more to it than that, my friend. <br>
104
-
105
- We all like a bit of the good life — <br>
106
- some the uptime, some the security, <br>
107
- others the automation, the visibility, or the compliance. <br>
108
-
109
- But a **Networka**, oh, they're different. <br>
110
- Why? <br>
111
- Because a real **Networka** wants the f\*ing lot.”<br><br>
112
- (inspired by: [RockNRolla](https://www.youtube.com/watch?v=s4YLBqMJYOo))
113
-
114
70
  ## Getting Started
115
71
 
116
72
  - Installation: see the docs → https://narrowin.github.io/networka/getting-started/
@@ -119,6 +75,10 @@ Because a real **Networka** wants the f\*ing lot.”<br><br>
119
75
  - CLI reference → https://narrowin.github.io/networka/reference/cli/
120
76
  - API reference → https://narrowin.github.io/networka/reference/api/
121
77
 
78
+ See how to [run a reusable sequence](docs/running-commands.md),
79
+ [save the output](docs/results.md), and
80
+ [compare it with a baseline](docs/reference/cli.md#nw-diff).
81
+
122
82
  <div align="center">
123
83
  <img src="https://narrowin.github.io/networka/assets/gifs/networka-setup.gif" alt="Networka Setup Demo" width="800"/>
124
84
  <p><em>Networka setup and command execution demo</em></p>
@@ -173,32 +133,36 @@ Networka is built for network engineers who want to run commands now. Ansible ex
173
133
  ### System Requirements
174
134
 
175
135
  - **Operating System**: Linux x86-64/arm64 or macOS arm64
136
+ - **Python**: 3.15 or later
176
137
  - **Network Access**: SSH connectivity to target devices
177
138
  - **Package Manager**: uv (recommended) or pip
178
139
  - **tmux for `nw cli`**: Install tmux to use the multi-pane CLI command (`brew install tmux` on macOS, `apt install tmux` on Debian/Ubuntu). libtmux is installed automatically with Networka.
179
140
 
180
141
  ### Install from the checkout
181
142
 
182
- With uv 0.13.9 in this checkout, use a project environment to keep the native driver isolated.
143
+ With uv 0.13.10 in this checkout, use a project environment to keep the native driver isolated.
183
144
 
184
145
  ```bash
185
146
  uv sync --locked
186
- uv run nw --version
187
- uv run nw --help
147
+ uv run --locked nw --version
148
+ uv run --locked nw --help
188
149
  ```
189
150
 
190
151
  Networka 0.2.0 uses Scrapli 2 via the `scrapli==2026.11.12` distribution. An in-place upgrade replaces legacy Scrapli through pip or uv. Early candidate installations that included `scrapli2==2.0.4` should use a fresh environment. Networka 0.2.0 targets Linux and Apple Silicon macOS. RouterOS restart confirmation and Cisco enable-password escalation passed in disposable labs. WSL2 remains unverified. [Transport selection](docs/transport.md) · [Platform compatibility](docs/platform-compatibility.md)
191
152
 
192
153
  ## Quick Start
193
154
 
194
- Get up and running with config init command:
155
+ Inspect a packaged sequence and run it on a RouterOS device. Replace the
156
+ example address and enter your device credentials when prompted.
195
157
 
196
158
  ```bash
197
- # Initialize in default location with interactive prompts
198
- nw config init
199
-
159
+ nw info system_info --vendor mikrotik_routeros
160
+ nw run 192.0.2.10 system_info --platform mikrotik_routeros --interactive-auth
200
161
  ```
201
162
 
163
+ For recurring work, use `nw config init` to create your
164
+ [configuration](docs/configuration.md) and target devices by name.
165
+
202
166
  ### Library API
203
167
 
204
168
  Use Networka programmatically in your Python applications:
@@ -236,11 +200,10 @@ nw run --platform cisco_iosxe 198.51.100.20 "show version" --interactive-auth
236
200
 
237
201
  ## Terminology: device_type vs hardware platform vs transport
238
202
 
239
- - device_type: Network OS driver used for connections and commands (Scrapli "platform"). Examples: mikrotik_routeros, cisco_iosxe, arista_eos, juniper_junos.
240
- - platform (hardware/firmware): Hardware architecture used for firmware-related operations (x86, x86_64, arm, mipsbe, tile).
241
- - transport: Connection backend. Default is scrapli.
242
-
243
- Note: When targeting IPs directly, `--platform` refers to the network driver (device_type), not hardware architecture.
203
+ - `device_type` is the logical platform used to select commands and the native connection definition.
204
+ - The inventory `platform` field describes hardware architecture for firmware.
205
+ - `--platform` names the logical platform for a raw IP target.
206
+ - `--transport` selects the Scrapli driver family. The underlying connection backend defaults to OpenSSH. [Transport settings](docs/transport.md)
244
207
 
245
208
  ## Quick links
246
209
 
@@ -5,43 +5,20 @@
5
5
 
6
6
  <br/>
7
7
 
8
- Network automation CLI. Apache 2.0 licensed. Fully open-source.
9
- Originally developed at [narrowin](https://narrowin.ch/en/about.html), now community maintained.
8
+ Networka is a lightweight CLI for network engineers and integrators. Run ad hoc
9
+ commands or reusable sequences across network devices from multiple vendors,
10
+ then save the output and compare it with a baseline.
10
11
 
11
- <br/>
12
-
13
- **Networka: `Eierlegende Wollmilchsau` of network operations — optimized for your daily workflows.**
12
+ Use Networka for on-demand troubleshooting and before-and-after checks. Pair it
13
+ with continuous monitoring for alerting, telemetry, and ongoing health checks.
14
14
 
15
- [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)](https://www.python.org/downloads/)
15
+ [![Python 3.15+](https://img.shields.io/badge/python-3.15%2B-blue.svg)](https://www.python.org/downloads/)
16
16
  [![Platform](https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20arm64-lightgrey.svg)](https://github.com/narrowin/networka)
17
17
  [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
18
18
  [![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
19
19
  [![Type checked with mypy](https://img.shields.io/badge/mypy-checked-blue.svg)](http://mypy-lang.org/)
20
20
  [![Docs](https://img.shields.io/github/actions/workflow/status/narrowin/networka/docs.yml?label=Docs&logo=github)](https://narrowin.github.io/networka/)
21
21
 
22
- Networka is a modern CLI tool for automating network devices across multiple vendors. Designed for network engineers who want fast, scalable automation with full cross-platform support.
23
-
24
- ---
25
-
26
- ## _The Networka Monologue_
27
-
28
- _“People ask the question…_ <br>
29
- **what’s a Networka?** <br>
30
-
31
- And I tell 'em — <br>
32
- it's **not** about cables, configs, and pings. <br>
33
- _Oh no._ <br>
34
- There’s more to it than that, my friend. <br>
35
-
36
- We all like a bit of the good life — <br>
37
- some the uptime, some the security, <br>
38
- others the automation, the visibility, or the compliance. <br>
39
-
40
- But a **Networka**, oh, they're different. <br>
41
- Why? <br>
42
- Because a real **Networka** wants the f\*ing lot.”<br><br>
43
- (inspired by: [RockNRolla](https://www.youtube.com/watch?v=s4YLBqMJYOo))
44
-
45
22
  ## Getting Started
46
23
 
47
24
  - Installation: see the docs → https://narrowin.github.io/networka/getting-started/
@@ -50,6 +27,10 @@ Because a real **Networka** wants the f\*ing lot.”<br><br>
50
27
  - CLI reference → https://narrowin.github.io/networka/reference/cli/
51
28
  - API reference → https://narrowin.github.io/networka/reference/api/
52
29
 
30
+ See how to [run a reusable sequence](docs/running-commands.md),
31
+ [save the output](docs/results.md), and
32
+ [compare it with a baseline](docs/reference/cli.md#nw-diff).
33
+
53
34
  <div align="center">
54
35
  <img src="https://narrowin.github.io/networka/assets/gifs/networka-setup.gif" alt="Networka Setup Demo" width="800"/>
55
36
  <p><em>Networka setup and command execution demo</em></p>
@@ -104,32 +85,36 @@ Networka is built for network engineers who want to run commands now. Ansible ex
104
85
  ### System Requirements
105
86
 
106
87
  - **Operating System**: Linux x86-64/arm64 or macOS arm64
88
+ - **Python**: 3.15 or later
107
89
  - **Network Access**: SSH connectivity to target devices
108
90
  - **Package Manager**: uv (recommended) or pip
109
91
  - **tmux for `nw cli`**: Install tmux to use the multi-pane CLI command (`brew install tmux` on macOS, `apt install tmux` on Debian/Ubuntu). libtmux is installed automatically with Networka.
110
92
 
111
93
  ### Install from the checkout
112
94
 
113
- With uv 0.13.9 in this checkout, use a project environment to keep the native driver isolated.
95
+ With uv 0.13.10 in this checkout, use a project environment to keep the native driver isolated.
114
96
 
115
97
  ```bash
116
98
  uv sync --locked
117
- uv run nw --version
118
- uv run nw --help
99
+ uv run --locked nw --version
100
+ uv run --locked nw --help
119
101
  ```
120
102
 
121
103
  Networka 0.2.0 uses Scrapli 2 via the `scrapli==2026.11.12` distribution. An in-place upgrade replaces legacy Scrapli through pip or uv. Early candidate installations that included `scrapli2==2.0.4` should use a fresh environment. Networka 0.2.0 targets Linux and Apple Silicon macOS. RouterOS restart confirmation and Cisco enable-password escalation passed in disposable labs. WSL2 remains unverified. [Transport selection](docs/transport.md) · [Platform compatibility](docs/platform-compatibility.md)
122
104
 
123
105
  ## Quick Start
124
106
 
125
- Get up and running with config init command:
107
+ Inspect a packaged sequence and run it on a RouterOS device. Replace the
108
+ example address and enter your device credentials when prompted.
126
109
 
127
110
  ```bash
128
- # Initialize in default location with interactive prompts
129
- nw config init
130
-
111
+ nw info system_info --vendor mikrotik_routeros
112
+ nw run 192.0.2.10 system_info --platform mikrotik_routeros --interactive-auth
131
113
  ```
132
114
 
115
+ For recurring work, use `nw config init` to create your
116
+ [configuration](docs/configuration.md) and target devices by name.
117
+
133
118
  ### Library API
134
119
 
135
120
  Use Networka programmatically in your Python applications:
@@ -167,11 +152,10 @@ nw run --platform cisco_iosxe 198.51.100.20 "show version" --interactive-auth
167
152
 
168
153
  ## Terminology: device_type vs hardware platform vs transport
169
154
 
170
- - device_type: Network OS driver used for connections and commands (Scrapli "platform"). Examples: mikrotik_routeros, cisco_iosxe, arista_eos, juniper_junos.
171
- - platform (hardware/firmware): Hardware architecture used for firmware-related operations (x86, x86_64, arm, mipsbe, tile).
172
- - transport: Connection backend. Default is scrapli.
173
-
174
- Note: When targeting IPs directly, `--platform` refers to the network driver (device_type), not hardware architecture.
155
+ - `device_type` is the logical platform used to select commands and the native connection definition.
156
+ - The inventory `platform` field describes hardware architecture for firmware.
157
+ - `--platform` names the logical platform for a raw IP target.
158
+ - `--transport` selects the Scrapli driver family. The underlying connection backend defaults to OpenSSH. [Transport settings](docs/transport.md)
175
159
 
176
160
  ## Quick links
177
161
 
@@ -0,0 +1,110 @@
1
+ # Adding platform support
2
+
3
+ ## Overview
4
+
5
+ Networka uses a logical `device_type` to select both connection behavior and
6
+ sequences. Check three layers when adding support.
7
+
8
+ | Layer | Source |
9
+ | --- | --- |
10
+ | Connection definition | Packaged Scrapli YAML or the active `SCRAPLI_DEFINITIONS_PATH` directory |
11
+ | Sequences | Networka's packaged files and the operator's sequence configuration |
12
+ | Vendor operations | Networka's platform registry and operation handlers |
13
+
14
+ Device qualification records the platform, OS version, and operations that
15
+ were exercised.
16
+
17
+ ## Quick start
18
+
19
+ Inspect the platform before adding code.
20
+
21
+ ```bash
22
+ nw platforms list
23
+ nw platforms info mikrotik_routeros
24
+ ```
25
+
26
+ An installed definition lets Networka select that name for a command
27
+ session. Choose the logical type in inventory or pass it with `--platform`
28
+ for a raw IP. A connection alias can select the same Scrapli definition as
29
+ another platform while retaining its own sequence and operation names.
30
+ See [transport selection](transport.md).
31
+
32
+ ## Step-by-step implementation guide
33
+
34
+ ### Add a sequence
35
+
36
+ Start with one read-only task in an operator configuration. For a project,
37
+ put the sequence under `sequences/<device_type>/common.yml` next to
38
+ `config.yml`.
39
+
40
+ ```yaml
41
+ sequences:
42
+ system_info:
43
+ description: System information
44
+ commands:
45
+ - show version
46
+ ```
47
+
48
+ Inspect the selected source and commands.
49
+
50
+ ```bash
51
+ nw info system_info --vendor cisco_iosxe --config ./config
52
+ ```
53
+
54
+ Use `src/network_toolkit/builtin_sequences/<device_type>/common.yml` for a
55
+ maintained sequence shipped with Networka. Follow the
56
+ [sequence resolution order](multi-vendor-support.md#sequence-resolution-order)
57
+ for project or user overrides.
58
+
59
+ ### Register vendor operations
60
+
61
+ Add a registry entry when reporting maintained sequences or implementing
62
+ vendor-specific operations. Work from the existing `PlatformInfo` entries
63
+ in `src/network_toolkit/platforms/registry.py`. For an operation, implement
64
+ the relevant `PlatformOperations` methods using one of the existing
65
+ platform implementations as the reference. Wire the handler into
66
+ `get_platform_operations` in `src/network_toolkit/platforms/factory.py`.
67
+ The registry records capability metadata. The factory creates the handler.
68
+
69
+ Set the individual capability flags to match implemented behavior. Preserve
70
+ `platform` as the hardware architecture field when a firmware operation uses
71
+ it. Use `nw platforms info` to verify the registry flags and definition
72
+ selection independently.
73
+
74
+ Regenerate the registry reference after changing it.
75
+
76
+ ```bash
77
+ uv run --locked python scripts/generate_platform_docs.py
78
+ ```
79
+
80
+ ## Platform status progression
81
+
82
+ Use the status in the registry to describe Networka's implementation scope.
83
+ `sequences_only` indicates maintained sequences with no vendor operation
84
+ handlers. `implemented` indicates registered operations. The capability flags
85
+ identify which operations. A definition can be available for a platform whose
86
+ registry status is planned.
87
+
88
+ ## Troubleshooting
89
+
90
+ - If a definition is missing, inspect the active catalog. An override directory
91
+ supplies all the named definitions for that invocation.
92
+ - If a sequence name selects different commands than expected, inspect the
93
+ logical platform or the configured device with `nw info`.
94
+ - If a vendor operation is unavailable, check the corresponding capability in
95
+ `nw platforms info`.
96
+
97
+ ## Checklist
98
+
99
+ - Confirm that installed definition lookup and alias selection work offline.
100
+ - Inspect the packaged sequence and its winning source.
101
+ - Record the approved device target, software version, commands, and results
102
+ when qualifying device behavior.
103
+ - Run the [development checks](development.md) and update the applicable
104
+ [vendor guide](vendors/index.md).
105
+
106
+ ## Resources
107
+
108
+ - [Platform compatibility](platform-compatibility.md)
109
+ - [Multi-vendor support](multi-vendor-support.md)
110
+ - [Scrapli platform definitions](https://carlmontanari.github.io/scrapli/details/#platform-definitions)
@@ -0,0 +1,22 @@
1
+ # Backups
2
+
3
+ Run a configuration backup for a named device or group.
4
+
5
+ ```bash
6
+ nw backup config router1
7
+ nw backup config office_switches
8
+ ```
9
+
10
+ Backup downloads are enabled by default. Use `--no-download` to leave files
11
+ on the device, or `--delete-remote` to remove generated files after successful
12
+ download.
13
+
14
+ See which registered platforms implement configuration backup.
15
+
16
+ ```bash
17
+ nw platforms list --capability config_backup
18
+ ```
19
+
20
+ The device platform determines the backup behavior. See the
21
+ [RouterOS guide](vendors/mikrotik/index.md#backups) or
22
+ [Cisco guide](vendors/cisco/index.md#backups) for details.
@@ -2,15 +2,19 @@
2
2
 
3
3
  This guide explains how to define devices, groups, and sequences for Networka. YAML is the preferred and most expressive format. CSV is supported mainly for users who manage inventories in spreadsheets on Windows. You can mix formats; use YAML by default and add CSV where it makes workflow sense.
4
4
 
5
- Note on credentials: See Environment variables (TL;DR at the top) for how credentials are resolved and how to set defaults and overrides.
5
+ See [environment variables](environment-variables.md) for credential defaults and overrides.
6
6
 
7
7
  ## Directory layout
8
8
 
9
- Networka expects a modular configuration rooted at the platform-specific application directory created by `nw config init` (Linux: `~/.config/networka`, macOS: `~/Library/Application Support/networka`, Windows: `%APPDATA%\networka`). Within that root, place configuration under the `config/` directory:
9
+ Use the platform-specific directory created by `nw config init`.
10
+ On Linux it is typically `~/.config/networka` and on macOS it is
11
+ `~/Library/Application Support/networka`. Place the modular files directly
12
+ in that directory, or pass your own directory with the command's
13
+ `--config` option.
10
14
 
11
15
  ```text
12
- config/
13
- ├── config.yml # Optional global defaults
16
+ networka/
17
+ ├── config.yml # Main configuration file
14
18
  ├── devices/ # Device definitions (YAML or CSV)
15
19
  │ ├── router1.yml
16
20
  │ └── inventory.csv
@@ -28,11 +32,12 @@ Networka loads all files in these folders. Later files override earlier ones whe
28
32
 
29
33
  - Device name: unique identifier used on the CLI (e.g., `nw run router1 ...`).
30
34
  - Host: IP or DNS name to connect to.
31
- - Device type: vendor/platform key (e.g., `mikrotik_routeros`, `cisco_iosxe`).
35
+ - `device_type` is the logical network OS used for definition and sequence selection, for example `mikrotik_routeros`.
36
+ - `platform` in inventory is an optional hardware architecture such as `arm` for firmware selection.
32
37
  - Groups: explicit member lists and/or tag-based membership.
33
38
  - Sequences: named sets of commands to run consistently.
34
39
 
35
- Credentials come from environment variables; see Environment variables for details.
40
+ For the active definition catalog, run `nw platforms list`.
36
41
 
37
42
  ## Using Nornir / Containerlab inventory (optional) {#nornir-inventory}
38
43
 
@@ -66,37 +71,42 @@ YAML gives you clarity, comments, nesting, and future-proofing. Prefer it for ev
66
71
 
67
72
  ```yaml
68
73
  # config/devices/router1.yml
69
- host: 192.0.2.10
70
- device_type: mikrotik_routeros
71
- tags: [edge, router]
74
+ devices:
75
+ router1:
76
+ host: 192.0.2.10
77
+ device_type: mikrotik_routeros
78
+ tags: [edge, router]
72
79
  ```
73
80
 
74
81
  ### Group examples
75
82
 
76
83
  ```yaml
77
- # config/groups/core.yml
78
- name: core
79
- description: Core network devices
80
- members: [sw-01, sw-02]
81
-
82
- ---
83
- # config/groups/edge.yml
84
- name: edge
85
- description: Edge devices
86
- match_tags: [edge]
84
+ # groups/groups.yml
85
+ groups:
86
+ core:
87
+ description: Core network devices
88
+ members: [router1]
89
+ edge:
90
+ description: Edge devices
91
+ match_tags: [edge]
87
92
  ```
88
93
 
89
94
  ### Sequence example
90
95
 
91
96
  ```yaml
92
97
  # config/sequences/common.yml
93
- health_check:
94
- description: Basic health check
95
- commands:
96
- - /system/resource/print
97
- - /interface/print stats
98
+ sequences:
99
+ router_summary:
100
+ description: Basic RouterOS summary
101
+ device_types: [mikrotik_routeros]
102
+ commands:
103
+ - /system/resource/print
104
+ - /interface/print stats
98
105
  ```
99
106
 
107
+ Global definitions are a fallback after platform and device-local sequences.
108
+ See the [resolution order](multi-vendor-support.md#sequence-resolution-order).
109
+
100
110
  ## CSV {#csv}
101
111
 
102
112
  Use CSV if your source of truth is a spreadsheet. It’s convenient for bulk imports. Keep it simple and map columns to the same concepts as YAML.
@@ -125,19 +135,9 @@ core_switches,Core network switches,sw-01;sw-02,switch;core
125
135
  edge_devices,Edge routers and firewalls,,edge;firewall
126
136
  ```
127
137
 
128
- ### Sequences CSV
129
-
130
- Required: `name`, `description`, `commands` (semicolon-separated)
131
-
132
- Optional: `tags` (semicolon-separated)
133
-
134
- ```csv
135
- name,description,commands,tags
136
- health_check,Basic health check,/system/resource/print;/interface/print stats,monitoring;health
137
- ```
138
-
139
138
  ## YAML vs CSV: differences at a glance
140
139
 
140
+ - Scope: Use YAML for sequences. Device and group inventories also support CSV.
141
141
  - Expressiveness: YAML supports comments, nesting, and complex structures; CSV is flat.
142
142
  - Multi-valued fields: In YAML, use lists; in CSV, use semicolon-separated values.
143
143
  - Merging/overrides: Both support file-level overrides by name; YAML is clearer for intent.
@@ -147,7 +147,7 @@ Recommendation: Use YAML for long-term, reviewable configuration. Use CSV for qu
147
147
 
148
148
  ## Mixing formats
149
149
 
150
- Mixing is supported. If both YAML and CSV define the same device/group/sequence name, the later-loaded file wins according to filesystem order. Keep ownership clear to avoid surprises.
150
+ Device and group inventories can mix YAML and CSV. Keep each name in one file to make its source clear.
151
151
 
152
152
  ## Next steps
153
153
 
@@ -157,35 +157,18 @@ Mixing is supported. If both YAML and CSV define the same device/group/sequence
157
157
 
158
158
  ## Global settings (config.yml)
159
159
 
160
- The optional `config/config.yml` file can specify global defaults that apply to all devices. This is particularly useful for SSH security settings and connection timeouts.
161
-
162
- ### SSH security settings
163
-
164
- #### ssh_strict_host_key_checking
165
-
166
- - **Type**: boolean
167
- - **Default**: `false` (accept-new behavior)
168
- - **Description**: Control SSH host key verification behavior
169
- - **Impact**:
170
- - When `false` (default): Uses `accept-new` - automatically accepts new host keys, but verifies existing ones. Protects against MITM on known hosts while allowing new devices.
171
- - When `true`: Strict mode - fails on any unknown or changed host key (most secure, but requires manual key management)
172
- - With `--no-strict-host-key-checking` flag: Completely disables all verification (INSECURE - lab use only)
173
-
174
- Example `config/config.yml`:
160
+ Use `config.yml` for settings that apply to all devices.
175
161
 
176
162
  ```yaml
177
163
  general:
178
- ssh_strict_host_key_checking: false # Default: accept-new (accept new, verify existing)
179
- # Set to true for maximum security (requires manual key management)
164
+ ssh_strict_host_key_checking: true
165
+ timeout: 30
166
+ command_timeout: 60
180
167
  ```
181
168
 
182
- For the `run` and `cli` commands, you can completely disable all host key verification per-command:
183
-
184
- ```bash
185
- # Completely disable host key verification (INSECURE - lab use only)
186
- nw run router1 '/system/identity/print' --no-strict-host-key-checking
187
- nw cli router1 --no-strict-host-key-checking
188
- ```
169
+ Host-key checking defaults to disabled. See
170
+ [transport selection](transport.md) for how command sessions, tmux panes,
171
+ and SFTP apply the setting.
189
172
 
190
173
  #### ssh_known_hosts_file
191
174
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  24 November 2026
4
4
 
5
- The release target is Networka 0.2.0 with Scrapli 2. The table keeps the original build names for the checks performed on those builds.
5
+ This report records qualification for Networka 0.2.0 with Scrapli 2. Build names and Python versions describe the releases tested in November 2026. The current development branch requires Python 3.15 or later.
6
6
 
7
7
  ## Packaging and infrastructure
8
8
 
@@ -51,3 +51,15 @@ The device checks cover the package upgrade and rollback, SSH command execution,
51
51
  The existing suite passed on Python 3.11–3.15 with 1,134 tests passed and 31 skipped per version in isolated source checkouts.
52
52
 
53
53
  The artifacts are in `dist/rebirth` in the local checkout. [Scrapli 2 installation](https://carlmontanari.github.io/scrapli/installation/) · [RouterOS 7.25 changelog](https://mikrotik.com/download/changelogs?channelFilter=stable&versionFilter=7.25) · [Cisco IOL in Containerlab](https://containerlab.dev/manual/kinds/cisco_iol/)
54
+
55
+ ## Published 0.2.0 and hosted checks
56
+
57
+ | Problem | Fix | Proof |
58
+ | --- | --- | --- |
59
+ | GitHub Actions could not resolve `astral-sh/setup-uv@v10`. | Pin the published `v10.4.0` action on `main` and allow the release workflow to build an existing tag. | All 11 GitHub installation jobs passed. The stable release build and all 10 wheel and source installation jobs passed on Ubuntu and macOS across Python 3.11–3.15. Both CI archives also passed CLI and SDK smoke checks in clean local macOS arm64 environments. [Installation run](https://github.com/narrowin/networka/actions/runs/45345758558) · [Release run](https://github.com/narrowin/networka/actions/runs/45345756470) |
60
+ | PyPI originally rejected the workflow identity because it had no matching Trusted Publisher. This also skipped automated GitHub release creation. | Publish the two verified CI archives on the existing `v0.2.0` GitHub tag. Register the GitHub Trusted Publisher for `narrowin/networka`, `release.yml`, environment `pypi`. | GitHub published 0.2.0 as a stable release. GitHub's SHA-256 digests for both uploaded archives match the CI artifacts. [GitHub release](https://github.com/narrowin/networka/releases/tag/v0.2.0) · [PyPI publisher setup](https://docs.pypi.org/trusted-publishers/adding-a-publisher/) |
61
+ | The release event ran the Docs workflow from the tag, which carries the original uv action reference. | Run the corrected Docs workflow from `main` and preserve the original release tag. | The strict MkDocs build and GitHub Pages deployment both passed. [Docs run](https://github.com/narrowin/networka/actions/runs/45346712252) |
62
+ | PyPI issued a Trusted Publishing token for `networka`, then denied its upload to the same project. | Trace token issuance and upload authorization independently. | The project owner observed both GitHub tokens in the project's Security history. The GitHub claims, PyPI audience, artifact metadata, and SHA-256 hashes matched the intended release. PyPI returned HTTP 403 at upload after token issuance and artifact validation. The specific server-side permission condition remained unconfirmed. [Release retry](https://github.com/narrowin/networka/actions/runs/45345756470/attempts/3) · [PyPI upload authorization](https://github.com/pypi/warehouse/blob/main/warehouse/macaroons/security_policy.py) |
63
+ | A public PyPI upgrade check needs 0.2.0 to be available on the index. | Qualify the same transition locally with 0.1.13 from PyPI and the SHA-256-verified 0.2.0 GitHub release wheel. | In a disposable macOS arm64 Python 3.13.11 environment, installed a working 0.1.13 with the documented legacy dependency pins, then upgraded in place. `uv pip check`, `nw --version`, `nw --help`, and imports of the SDK and native Scrapli CLI passed after the upgrade. |
64
+ | PyPI's troubleshooting guide did not explain the 403 after issuing a token for an existing project. | Compare public reports at the token issuance and upload stages before changing the workflow. | `cbox-id-client` reported the same sequence, including a project-scoped token in Security history and a 403 on wheel upload. Recreating its publisher did not help. [Matching report](https://github.com/pypi/support/issues/13050) · [PyPI troubleshooting guide](https://docs.pypi.org/trusted-publishers/troubleshooting/) |
65
+ | Automated PyPI upload remained blocked for 0.2.0. | Upload the verified GitHub wheel and source archive through Twine using a project-scoped PyPI token entered at its hidden local prompt. | PyPI published 0.2.0. The SHA-256 hashes of both public downloads match the tested GitHub files. A fresh install and an in-place upgrade from a working 0.1.13 passed on macOS arm64 with Python 3.13.11, including dependency checks, CLI startup, and SDK and native Scrapli imports. Trusted Publishing remained unresolved at release. [PyPI release](https://pypi.org/project/networka/0.2.0/) · [GitHub release](https://github.com/narrowin/networka/releases/tag/v0.2.0) |