hypershell 2.9.0a4__tar.gz → 2.9.0a5__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 (223) hide show
  1. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/PKG-INFO +1 -1
  2. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/cluster_help.rst +2 -1
  3. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/templates.rst +16 -1
  4. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/security.rst +74 -8
  5. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/pyproject.toml +1 -1
  6. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/share/man/man1/hs.1 +3 -2
  7. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/share/man/man1/hsx.1 +3 -2
  8. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/share/man/man1/hyper-shell.1 +3 -2
  9. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/client.py +59 -4
  10. hypershell-2.9.0a5/src/hypershell/cluster/launch.py +382 -0
  11. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/cluster/remote.py +37 -97
  12. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/cluster/ssh.py +31 -37
  13. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/template.py +15 -7
  14. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_autoscale.py +4 -1
  15. hypershell-2.9.0a5/tests/test_cluster_launch.py +1448 -0
  16. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/uv.lock +1 -1
  17. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/.gitignore +0 -0
  18. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/CODE_OF_CONDUCT.md +0 -0
  19. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/LICENSE +0 -0
  20. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/README.rst +0 -0
  21. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/Makefile +0 -0
  22. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/citation.rst +0 -0
  23. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/client_desc.rst +0 -0
  24. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/client_help.rst +0 -0
  25. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/client_usage.rst +0 -0
  26. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/cluster_desc.rst +0 -0
  27. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/cluster_usage.rst +0 -0
  28. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_desc.rst +0 -0
  29. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_edit_desc.rst +0 -0
  30. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_edit_help.rst +0 -0
  31. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_edit_usage.rst +0 -0
  32. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_get_desc.rst +0 -0
  33. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_get_help.rst +0 -0
  34. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_get_usage.rst +0 -0
  35. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_help.rst +0 -0
  36. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_intro.rst +0 -0
  37. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_intro_alt.rst +0 -0
  38. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_param_ref.rst +0 -0
  39. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_pythonpath.rst +0 -0
  40. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_set_desc.rst +0 -0
  41. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_set_help.rst +0 -0
  42. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_set_usage.rst +0 -0
  43. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_site_vars.rst +0 -0
  44. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_task_env.rst +0 -0
  45. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_task_env_alt.rst +0 -0
  46. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_usage.rst +0 -0
  47. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_which_desc.rst +0 -0
  48. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_which_help.rst +0 -0
  49. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/config_which_usage.rst +0 -0
  50. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/database.rst +0 -0
  51. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/database_alt.rst +0 -0
  52. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/desc.rst +0 -0
  53. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/exit_status.rst +0 -0
  54. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/initdb_desc.rst +0 -0
  55. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/initdb_help.rst +0 -0
  56. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/initdb_usage.rst +0 -0
  57. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/license.rst +0 -0
  58. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/security_alt.rst +0 -0
  59. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/server_desc.rst +0 -0
  60. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/server_help.rst +0 -0
  61. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/server_usage.rst +0 -0
  62. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/signals.rst +0 -0
  63. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/submit_desc.rst +0 -0
  64. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/submit_help.rst +0 -0
  65. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/submit_usage.rst +0 -0
  66. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_groups_alt.rst +0 -0
  67. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_info_desc.rst +0 -0
  68. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_info_help.rst +0 -0
  69. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_info_usage.rst +0 -0
  70. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_run_desc.rst +0 -0
  71. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_run_help.rst +0 -0
  72. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_run_usage.rst +0 -0
  73. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_search_desc.rst +0 -0
  74. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_search_help.rst +0 -0
  75. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_search_usage.rst +0 -0
  76. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_submit_desc.rst +0 -0
  77. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_submit_help.rst +0 -0
  78. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_submit_usage.rst +0 -0
  79. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_update_desc.rst +0 -0
  80. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_update_help.rst +0 -0
  81. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_update_usage.rst +0 -0
  82. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_wait_desc.rst +0 -0
  83. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_wait_help.rst +0 -0
  84. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/task_wait_usage.rst +0 -0
  85. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/templates_alt.rst +0 -0
  86. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_include/tls_cli_options.rst +0 -0
  87. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_static/custom.css +0 -0
  88. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_static/logo-dark-mode.png +0 -0
  89. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/_static/logo-light-mode.png +0 -0
  90. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/alternatives.rst +0 -0
  91. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/api/client.rst +0 -0
  92. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/api/cluster.rst +0 -0
  93. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/api/data.rst +0 -0
  94. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/api/index.rst +0 -0
  95. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/api/server.rst +0 -0
  96. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/api/submit.rst +0 -0
  97. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/client.rst +0 -0
  98. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/cluster.rst +0 -0
  99. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/config.rst +0 -0
  100. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/config_edit.rst +0 -0
  101. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/config_get.rst +0 -0
  102. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/config_set.rst +0 -0
  103. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/config_which.rst +0 -0
  104. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/index.rst +0 -0
  105. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/initdb.rst +0 -0
  106. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/server.rst +0 -0
  107. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/submit.rst +0 -0
  108. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/task_info.rst +0 -0
  109. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/task_run.rst +0 -0
  110. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/task_search.rst +0 -0
  111. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/task_submit.rst +0 -0
  112. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/task_update.rst +0 -0
  113. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/cli/task_wait.rst +0 -0
  114. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/conf.py +0 -0
  115. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/config.rst +0 -0
  116. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/database.rst +0 -0
  117. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/getting_started.rst +0 -0
  118. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/index.rst +0 -0
  119. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/install.rst +0 -0
  120. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/logging.rst +0 -0
  121. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/manual.rst +0 -0
  122. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/docs/templates.rst +0 -0
  123. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/share/bash_completion.d/hs +0 -0
  124. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/share/bash_completion.d/hsx +0 -0
  125. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/share/zsh/site-functions/_hs +0 -0
  126. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/__init__.py +0 -0
  127. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/cluster/__init__.py +0 -0
  128. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/cluster/local.py +0 -0
  129. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/config.py +0 -0
  130. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/__init__.py +0 -0
  131. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/config.py +0 -0
  132. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/dispatch.py +0 -0
  133. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/exceptions.py +0 -0
  134. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/fsm.py +0 -0
  135. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/heartbeat.py +0 -0
  136. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/logging.py +0 -0
  137. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/platform.py +0 -0
  138. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/pretty_print.py +0 -0
  139. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/queue.py +0 -0
  140. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/remote.py +0 -0
  141. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/resource.py +0 -0
  142. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/signal.py +0 -0
  143. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/sys.py +0 -0
  144. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/tag.py +0 -0
  145. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/thread.py +0 -0
  146. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/tls.py +0 -0
  147. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/types.py +0 -0
  148. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/core/uuid.py +0 -0
  149. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/data/__init__.py +0 -0
  150. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/data/core.py +0 -0
  151. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/data/model.py +0 -0
  152. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/data/timescale.py +0 -0
  153. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/data/upgrade.py +0 -0
  154. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/server.py +0 -0
  155. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/submit.py +0 -0
  156. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/src/hypershell/task.py +0 -0
  157. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/__init__.py +0 -0
  158. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/bench/bench_queue.py +0 -0
  159. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/cluster/build_archive.sh +0 -0
  160. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/cluster/compare.py +0 -0
  161. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/cluster/drive.sh +0 -0
  162. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/cluster/smoke.sh +0 -0
  163. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/conftest.py +0 -0
  164. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/fixtures/README.md +0 -0
  165. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/fixtures/hypershell-2.8.3.db +0 -0
  166. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/fixtures/make-2.8.3-db.sh +0 -0
  167. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/fixtures/make-legacy-postgres.sh +0 -0
  168. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_cancel.py +0 -0
  169. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_card_info.py +0 -0
  170. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_card_integration.py +0 -0
  171. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_card_render.py +0 -0
  172. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_client.py +0 -0
  173. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_client_request.py +0 -0
  174. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_cluster.py +0 -0
  175. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_cluster_compare.py +0 -0
  176. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_completions.py +0 -0
  177. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_contended_recovery.py +0 -0
  178. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_contended_write.py +0 -0
  179. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_data/__init__.py +0 -0
  180. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_data/test_core.py +0 -0
  181. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_data/test_model.py +0 -0
  182. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_data/test_upgrade.py +0 -0
  183. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_dispatch.py +0 -0
  184. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_dispatch_staged.py +0 -0
  185. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_dispatch_version.py +0 -0
  186. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_dispatch_workload.py +0 -0
  187. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_factory_fsm.py +0 -0
  188. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_group_order.py +0 -0
  189. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_groups.py +0 -0
  190. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_initdb.py +0 -0
  191. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_list.py +0 -0
  192. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_logging.py +0 -0
  193. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_main.py +0 -0
  194. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_meta_status.py +0 -0
  195. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_queue.py +0 -0
  196. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_queue_address_family.py +0 -0
  197. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_queue_gc.py +0 -0
  198. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_queue_limits.py +0 -0
  199. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_queue_start.py +0 -0
  200. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_queue_tls.py +0 -0
  201. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_queue_workload.py +0 -0
  202. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_restart.py +0 -0
  203. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_retry_gate.py +0 -0
  204. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_server.py +0 -0
  205. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_server_fsm.py +0 -0
  206. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_signal.py +0 -0
  207. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_source.py +0 -0
  208. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_status_label.py +0 -0
  209. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_submit.py +0 -0
  210. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_submit_json.py +0 -0
  211. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_template.py +0 -0
  212. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_timescale.py +0 -0
  213. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_update.py +0 -0
  214. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_upgrade_cli.py +0 -0
  215. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_upgrade_postgres.py +0 -0
  216. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_writeback.py +0 -0
  217. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_writeback_postgres.py +0 -0
  218. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_writeback_statement.py +0 -0
  219. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_zone_dispatch.py +0 -0
  220. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_zone_display.py +0 -0
  221. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_zone_model.py +0 -0
  222. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_zone_postgres.py +0 -0
  223. {hypershell-2.9.0a4 → hypershell-2.9.0a5}/tests/test_zone_workload.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: hypershell
3
- Version: 2.9.0a4
3
+ Version: 2.9.0a5
4
4
  Summary: A cross-platform, high-throughput computing utility for processing shell commands over a distributed, asynchronous queue.
5
5
  Project-URL: Homepage, https://hypershell.org
6
6
  Project-URL: Documentation, https://hypershell.readthedocs.io
@@ -195,7 +195,8 @@ Options
195
195
 
196
196
  ``-E``, ``--env``
197
197
  Send environment variables. Only for ``--ssh`` mode, all ``HYPERSHELL_`` prefixed environment
198
- variables can be exported to the remote clients.
198
+ variables can be exported to the remote clients, except ``HYPERSHELL_SERVER_AUTH``, which is
199
+ never sent this way.
199
200
 
200
201
  ``--remote-exe`` *PATH*
201
202
  Path to remote executable on the client side.
@@ -175,6 +175,13 @@ The incoming command-line args can be substituted with an ``@``.
175
175
  ``{% mktemp -d %}``
176
176
  Create temporary directory and insert its path.
177
177
 
178
+ When a client expands the template, the command runs with the client's own
179
+ environment, without ``HYPERSHELL_SERVER_AUTH`` (see :doc:`/security`). That is
180
+ the environment the client's tasks inherit, before the client adds the
181
+ ``[export]`` values and the ``TASK_*`` variables for each task. So the command
182
+ sees an ``[export]`` value only if the client's own environment already holds
183
+ it, as it does for a client that ``hs cluster`` starts through a launcher.
184
+
178
185
  -------------------
179
186
 
180
187
  Lambda Expressions
@@ -186,7 +193,15 @@ Arbitrary Python expressions can be expanded with the ``{= =}`` notation.
186
193
  The input argument can be used within the expression with the variable ``x``.
187
194
 
188
195
  Exposed standard library modules include ``os``, ``os.path`` as ``path``,
189
- ``math`` and ``datetime`` as ``dt``.
196
+ ``math`` and ``datetime`` as ``dt``. The expression is evaluated in the
197
+ process that expands the template, so ``os.environ`` is that process's own
198
+ environment. Under a client that ``hs cluster`` starts as a process of its own,
199
+ through a launcher or over SSH, it includes ``HYPERSHELL_SERVER_AUTH``
200
+ (see :doc:`/security`). Under the default local mode, whose client runs inside
201
+ the ``hs cluster`` process, it includes the variable only if the environment
202
+ that starts ``hs cluster`` already sets it: the key that run mints is never put
203
+ in that process's environment. A client started by hand with ``-k`` has it there
204
+ only if its own environment sets it.
190
205
 
191
206
  Incoming arguments are intelligently coerced into the expected type.
192
207
  E.g., ``2`` will be an integer, ``4.67`` a float, ``null`` and ``none``
@@ -168,15 +168,81 @@ placeholder key and enforces a minimum key policy: the key must be at least 16 c
168
168
  drawn from ``[A-Za-z0-9._+/=-]`` (which admits hex, URL-safe tokens, and standard Base64). The
169
169
  key generators used in the deployment guides below satisfy this policy.
170
170
 
171
- .. admonition:: The key is visible on the client command line in cluster launches
171
+ .. admonition:: How cluster launches hand the key to their clients
172
172
  :class: note
173
173
 
174
- For ``SSHCluster`` and the MPI/SLURM launchers, the per-invocation key is passed to each
175
- client process as a ``-k`` command-line argument. On multi-user client hosts it is
176
- therefore visible in the process table (``ps`` / ``/proc``) and scheduler accounting for
177
- the lifetime of the client, even though it is redacted from *HyperShell*'s own launch
178
- logs. Treat every host that holds the key as inside the trust boundary. A directly
179
- configured ``server.auth`` is likewise stored in plaintext in the config file and printed
174
+ When ``hs cluster`` starts its clients as separate processes (``--launcher``, ``--mpi``,
175
+ ``--autoscaling`` and ``--ssh``), the per-invocation key is on no command line, either on
176
+ the launching host or on the client hosts. Every client reads its key from the
177
+ ``HYPERSHELL_SERVER_AUTH`` environment variable when no ``-k`` is given, and the launch
178
+ delivers it there.
179
+
180
+ * **Launcher modes** (``--launcher``, ``--mpi`` and ``--autoscaling``). The launcher is
181
+ started with the key in its environment, and must pass that environment through to the
182
+ clients it starts. ``srun`` (with its default ``--export=ALL``), MPICH, Intel MPI and
183
+ Flux do. Only when the launcher is one Open MPI may provide does the launch also ask
184
+ Open MPI to forward the variable to remote ranks, by name: through
185
+ ``OMPI_MCA_mca_base_env_list``, keeping names already set there, or, if the launcher's
186
+ arguments already hold ``-x`` (also written ``--x``, or either with ``=``; Open MPI 4
187
+ does not accept ``-x`` together with that parameter), by adding
188
+ ``-x HYPERSHELL_SERVER_AUTH``. That is ``--mpi``, or a ``--launcher`` whose first word
189
+ has the base name ``mpirun``, ``mpiexec``, ``orterun`` or ``prterun``, or ``mpirun`` or
190
+ ``mpiexec`` with a dotted suffix, such as Debian's ``mpirun.openmpi`` (an MPICH name
191
+ such as ``mpiexec.hydra`` matches too; MPICH ignores the Open MPI parameter). Only the
192
+ first word counts: ``srun mpirun`` gets neither, as do ``srun``, any other launcher,
193
+ and ``--autoscaling`` with no launcher. If such a launcher needs Open MPI to forward
194
+ the variable, add ``-x HYPERSHELL_SERVER_AUTH`` (the name only) to ``--launcher``. A
195
+ launcher set to drop the environment, such as ``srun --export=NONE``, leaves its
196
+ clients without the key, so they cannot authenticate.
197
+ Such a client exits with a ``CRITICAL`` error that names ``HYPERSHELL_SERVER_AUTH`` and
198
+ the launcher not passing the environment as the likely cause. With TLS on, where the
199
+ dropped environment also held the client's TLS settings, the client fails to verify the
200
+ server's certificate before it authenticates; when it has no key either, that error
201
+ names the same likely cause.
202
+
203
+ * **SSH** (``--ssh``). The key travels on the ssh channel's standard input. On each remote
204
+ host a short POSIX ``sh`` step reads it into ``HYPERSHELL_SERVER_AUTH`` using shell
205
+ builtins, exports it, and replaces itself with the client, so the key is on no command
206
+ line there either. With ``--env``, the other ``HYPERSHELL_*`` variables of the launching
207
+ environment are still passed on ssh's command line, one ``NAME=value`` word each, with
208
+ the value quoted for a POSIX shell, so a POSIX login shell on the remote host reads back
209
+ exactly that value, and no value can run into another word. ``HYPERSHELL_SERVER_AUTH`` is left out by name before any
210
+ word is built, so it is never among them, whatever the other values hold. (A name that
211
+ is not a valid shell variable name is left out too, with a warning.) The launch owns ssh's standard input and always passes ``-T``, so no remote
212
+ terminal is allocated. A ``-t`` or ``-tt`` in ``--ssh-args`` or ``ssh.args``
213
+ therefore has no effect on client launches, and a bare ``-n`` there is dropped with a
214
+ warning. If no key arrives, for example because a wrapper around ``ssh`` closes its
215
+ standard input, the remote step prints a message naming ``HYPERSHELL_SERVER_AUTH`` and
216
+ ssh's standard input, and exits before any client starts.
217
+
218
+ The key is also redacted from *HyperShell*'s own launch logs, at every level.
219
+
220
+ Tasks run with their client's environment, except that the client does not pass
221
+ ``HYPERSHELL_SERVER_AUTH`` to them, and takes that name out of
222
+ ``OMPI_MCA_mca_base_env_list`` (keeping any other names, and dropping the variable if none
223
+ is left). The client runs the shell commands of ``{% %}`` template patterns, once per
224
+ task, with that same environment. So, whatever the launch mode, neither a task's
225
+ environment nor a ``{% %}`` command's holds the key or the Open MPI entry the launch set,
226
+ unless the configuration gives it explicitly. This keeps the key out of an environment
227
+ that a task dumps or logs by accident. It does not hide the key from task code that looks
228
+ for it: a task runs as the same user as its client, and that user can generally read the
229
+ client's environment. This applies to clients from this release on; an older client under
230
+ a newer launcher still passes its environment to its tasks unchanged.
231
+
232
+ A task can be given the key in two explicit ways:
233
+
234
+ * An ``[export]`` entry for ``HYPERSHELL_SERVER_AUTH`` (or a
235
+ ``HYPERSHELL_EXPORT_HYPERSHELL_SERVER_AUTH`` variable) hands every task a key the
236
+ operator holds, such as the key of a hand-started ``hs server``. Its values are taken
237
+ literally, so it cannot carry the key an ``hs cluster`` run mints, which no one is shown.
238
+ * A ``{= =}`` lambda pattern is Python the client evaluates itself, with ``os`` exposed,
239
+ so ``os.environ`` there is the client's own environment, key included. A template that
240
+ reads it does so on purpose.
241
+
242
+ A task that runs a nested ``hs cluster`` needs neither: that run mints its own key for
243
+ its own server and clients.
244
+
245
+ A directly configured ``server.auth`` is stored in plaintext in the config file and printed
180
246
  verbatim by ``hs config get``; prefer the ``_eval`` / ``_env`` suffixes (see below) to
181
247
  keep the secret out of the file.
182
248
 
@@ -828,7 +894,7 @@ Independent of the deployment style above:
828
894
  * **Enable audit logging.** Set ``logging.style = "detailed"`` (or ``"system"``) and ship
829
895
  logs to a central collector. The server logs every client connection, every task
830
896
  dispatched, and every completion. See :ref:`logging <logging>` for details. The
831
- per-invocation auth key is redacted from launch logs, but avoid shipping full configuration
897
+ per-invocation auth key never appears in launch logs, but avoid shipping full configuration
832
898
  dumps (which contain a directly-set ``server.auth``) to shared log infrastructure.
833
899
 
834
900
  * **Sanitize task input.** When generating tasks programmatically, treat the command
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "hypershell"
3
- version = "2.9.0a4"
3
+ version = "2.9.0a5"
4
4
  description = "A cross-platform, high-throughput computing utility for processing shell commands over a distributed, asynchronous queue."
5
5
  readme = "README.rst"
6
6
  license = "Apache-2.0"
@@ -28,7 +28,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
28
28
  .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
29
  .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30
30
  ..
31
- .TH "HS" "1" "Nov 05, 2026" "2.9.0a4" "hypershell"
31
+ .TH "HS" "1" "Nov 05, 2026" "2.9.0a5" "hypershell"
32
32
  .SH NAME
33
33
  hs \- Process shell commands over a distributed, asynchronous queue
34
34
  .SH SYNOPSIS
@@ -329,7 +329,8 @@ See \fIconfiguration\fP section.
329
329
  .TP
330
330
  .B \fB\-E\fP, \fB\-\-env\fP
331
331
  Send environment variables. Only for \fB\-\-ssh\fP mode, all \fBHYPERSHELL_\fP prefixed environment
332
- variables can be exported to the remote clients.
332
+ variables can be exported to the remote clients, except \fBHYPERSHELL_SERVER_AUTH\fP, which is
333
+ never sent this way.
333
334
  .TP
334
335
  .B \fB\-\-remote\-exe\fP \fIPATH\fP
335
336
  Path to remote executable on the client side.
@@ -28,7 +28,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
28
28
  .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
29
  .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30
30
  ..
31
- .TH "HS" "1" "Nov 05, 2026" "2.9.0a4" "hypershell"
31
+ .TH "HS" "1" "Nov 05, 2026" "2.9.0a5" "hypershell"
32
32
  .SH NAME
33
33
  hs \- Process shell commands over a distributed, asynchronous queue
34
34
  .SH SYNOPSIS
@@ -329,7 +329,8 @@ See \fIconfiguration\fP section.
329
329
  .TP
330
330
  .B \fB\-E\fP, \fB\-\-env\fP
331
331
  Send environment variables. Only for \fB\-\-ssh\fP mode, all \fBHYPERSHELL_\fP prefixed environment
332
- variables can be exported to the remote clients.
332
+ variables can be exported to the remote clients, except \fBHYPERSHELL_SERVER_AUTH\fP, which is
333
+ never sent this way.
333
334
  .TP
334
335
  .B \fB\-\-remote\-exe\fP \fIPATH\fP
335
336
  Path to remote executable on the client side.
@@ -28,7 +28,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
28
28
  .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
29
  .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30
30
  ..
31
- .TH "HYPER-SHELL" "1" "Nov 05, 2026" "2.9.0a4" "hypershell"
31
+ .TH "HYPER-SHELL" "1" "Nov 05, 2026" "2.9.0a5" "hypershell"
32
32
  .SH NAME
33
33
  hyper-shell \- Process shell commands over a distributed, asynchronous queue
34
34
  .SH SYNOPSIS
@@ -329,7 +329,8 @@ See \fIconfiguration\fP section.
329
329
  .TP
330
330
  .B \fB\-E\fP, \fB\-\-env\fP
331
331
  Send environment variables. Only for \fB\-\-ssh\fP mode, all \fBHYPERSHELL_\fP prefixed environment
332
- variables can be exported to the remote clients.
332
+ variables can be exported to the remote clients, except \fBHYPERSHELL_SERVER_AUTH\fP, which is
333
+ never sent this way.
333
334
  .TP
334
335
  .B \fB\-\-remote\-exe\fP \fIPATH\fP
335
336
  Path to remote executable on the client side.
@@ -37,6 +37,7 @@ from types import TracebackType
37
37
  import os
38
38
  import sys
39
39
  import json
40
+ import ssl
40
41
  import time
41
42
  import random
42
43
  import functools
@@ -471,8 +472,29 @@ DEFAULT_TEMPLATE: Final[str] = DEFAULT_TEMPLATE # redefined for documentation p
471
472
  """Default command pattern for template expansion."""
472
473
 
473
474
 
475
+ def inherited_task_env() -> Dict[str, str]:
476
+ """
477
+ The client's own environment as its tasks inherit it, without the authentication key.
478
+
479
+ :const:`AUTH_ENV` is left out, and its name is taken out of :const:`OMPI_ENV_LIST`, which
480
+ is left out too if no other name remains. The client's own environment is not modified.
481
+ """
482
+ env = {name: value for name, value in os.environ.items() if name != AUTH_ENV}
483
+ if OMPI_ENV_LIST in env:
484
+ names = [name for name in env.pop(OMPI_ENV_LIST).split(';') if name and name != AUTH_ENV]
485
+ if names:
486
+ env[OMPI_ENV_LIST] = ';'.join(names)
487
+ return env
488
+
489
+
474
490
  def task_env(task: Task, slot: int = 0, slot_count: int = 1) -> Dict[str, str]:
475
- """Build environment dictionary for the given `task` and its executor `slot`."""
491
+ """
492
+ Build environment dictionary for the given `task` and its executor `slot`.
493
+
494
+ The task inherits the client's environment without the authentication key (see
495
+ :func:`inherited_task_env`); the configured task environment (`config.export`) is
496
+ applied over it, so a task is given the key only if that names it explicitly.
497
+ """
476
498
  task_data = task.to_json()
477
499
  try:
478
500
  # We have to flatten tag data separately, otherwise we'd have TASK_TAG='{...}'
@@ -480,7 +502,7 @@ def task_env(task: Task, slot: int = 0, slot_count: int = 1) -> Dict[str, str]:
480
502
  except Exception: # noqa: any exception
481
503
  tag_data = {}
482
504
  return {
483
- **os.environ,
505
+ **inherited_task_env(),
484
506
  **load_task_env(),
485
507
  **Namespace.from_dict(task_data).to_env().flatten(prefix='TASK'),
486
508
  **tag_data,
@@ -700,7 +722,7 @@ class TaskExecutor(StateMachine):
700
722
  """Initialize task executor."""
701
723
  self.id = id
702
724
  self.slot_count = slot_count
703
- self.template = Template(template)
725
+ self.template = Template(template, shell_env=inherited_task_env)
704
726
  self.inbound = inbound
705
727
  self.outbound = outbound
706
728
  self.redirect_output = redirect_output or sys.stdout
@@ -1118,6 +1140,26 @@ DEFAULT_PORT: Final[int] = QueueConfig.port
1118
1140
  DEFAULT_AUTH: Final[str] = QueueConfig.auth
1119
1141
  """Default authentication key for server (**DO NOT USE THIS**)."""
1120
1142
 
1143
+ AUTH_ENV: Final[str] = 'HYPERSHELL_SERVER_AUTH'
1144
+ """Environment variable read as the key default; `hs cluster` launchers hand the key over in it."""
1145
+
1146
+ OMPI_ENV_LIST: Final[str] = 'OMPI_MCA_mca_base_env_list'
1147
+ """Open MPI parameter naming the environment variables `mpirun` forwards to remote ranks."""
1148
+
1149
+ LAUNCH_ENV_HINT: Final[str] = (f'No key reached this client: {AUTH_ENV} is not set in its environment and '
1150
+ f'no -k was given. A client that \'hs cluster\' starts through a launcher '
1151
+ f'receives its key in {AUTH_ENV}, so the launcher most likely did not pass '
1152
+ f'the environment to the client (e.g., srun --export=NONE).')
1153
+ """Likely cause named when a client without a key of its own fails to authenticate."""
1154
+
1155
+ LAUNCH_ENV_TLS_HINT: Final[str] = (f'No key reached this client either: {AUTH_ENV} is not set in its environment '
1156
+ f'and no -k was given. A client that \'hs cluster\' starts through a launcher '
1157
+ f'receives its key in {AUTH_ENV} and may take its TLS settings from the '
1158
+ f'environment too, so the launcher most likely did not pass the environment to '
1159
+ f'the client (e.g., srun --export=NONE), and the client got neither its key nor '
1160
+ f'the TLS settings that let it trust the server.')
1161
+ """Likely cause named when a client without a key of its own cannot verify the server's certificate."""
1162
+
1121
1163
 
1122
1164
  class ClientThread(Thread):
1123
1165
  """
@@ -1548,7 +1590,7 @@ class ClientApp(Application):
1548
1590
  port: int = config.server.port
1549
1591
  interface.add_argument('-p', '--port', type=int, default=port)
1550
1592
 
1551
- auth: str = config.server.auth
1593
+ auth: Optional[str] = None # Without -k, the key is config.server.auth (see run)
1552
1594
  interface.add_argument('-k', '--auth', default=auth)
1553
1595
 
1554
1596
  template: str = DEFAULT_TEMPLATE
@@ -1619,6 +1661,11 @@ class ClientApp(Application):
1619
1661
 
1620
1662
  def run(self: ClientApp) -> None:
1621
1663
  """Run client."""
1664
+ auth_given = self.auth is not None
1665
+ if not auth_given:
1666
+ self.auth = config.server.auth
1667
+ # The hints below name a missing key only when none came from -k, the environment or a configuration file.
1668
+ no_key = not auth_given and AUTH_ENV not in os.environ and self.auth == DEFAULT_AUTH
1622
1669
  try:
1623
1670
  self.check_args()
1624
1671
  self.enable_tls()
@@ -1645,6 +1692,14 @@ class ClientApp(Application):
1645
1692
  zone=self.zone)
1646
1693
  except gaierror:
1647
1694
  raise HostAddressInfo(f'Could not resolve host \'{self.host}\'')
1695
+ except AuthenticationError as error:
1696
+ if no_key:
1697
+ raise AuthenticationError(f'{error}\n{LAUNCH_ENV_HINT}') from error
1698
+ raise
1699
+ except ssl.SSLCertVerificationError as error:
1700
+ if no_key:
1701
+ raise ssl.SSLCertVerificationError(error.errno, f'{error}\n{LAUNCH_ENV_TLS_HINT}') from error
1702
+ raise
1648
1703
 
1649
1704
  def check_args(self: ClientApp) -> None:
1650
1705
  """Check for logical errors in command-line arguments."""