hypershell 2.6.5__tar.gz → 2.6.6__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 (161) hide show
  1. hypershell-2.6.6/.dockerignore +1 -0
  2. hypershell-2.6.6/.gitignore +135 -0
  3. hypershell-2.6.6/.readthedocs.yaml +16 -0
  4. hypershell-2.6.6/CODE_OF_CONDUCT.md +128 -0
  5. hypershell-2.6.6/Dockerfile +27 -0
  6. {hypershell-2.6.5 → hypershell-2.6.6}/PKG-INFO +14 -19
  7. hypershell-2.6.6/docs/Makefile +20 -0
  8. hypershell-2.6.6/docs/_include/citation.rst +15 -0
  9. hypershell-2.6.6/docs/_include/client_desc.rst +8 -0
  10. hypershell-2.6.6/docs/_include/client_help.rst +103 -0
  11. hypershell-2.6.6/docs/_include/client_usage.rst +4 -0
  12. hypershell-2.6.6/docs/_include/cluster_desc.rst +15 -0
  13. hypershell-2.6.6/docs/_include/cluster_help.rst +287 -0
  14. hypershell-2.6.6/docs/_include/cluster_usage.rst +6 -0
  15. hypershell-2.6.6/docs/_include/config_edit_desc.rst +3 -0
  16. hypershell-2.6.6/docs/_include/config_edit_help.rst +11 -0
  17. hypershell-2.6.6/docs/_include/config_edit_usage.rst +2 -0
  18. hypershell-2.6.6/docs/_include/config_get_desc.rst +8 -0
  19. hypershell-2.6.6/docs/_include/config_get_help.rst +30 -0
  20. hypershell-2.6.6/docs/_include/config_get_usage.rst +2 -0
  21. hypershell-2.6.6/docs/_include/config_intro.rst +82 -0
  22. hypershell-2.6.6/docs/_include/config_intro_alt.rst +65 -0
  23. hypershell-2.6.6/docs/_include/config_param_ref.rst +335 -0
  24. hypershell-2.6.6/docs/_include/config_pythonpath.rst +11 -0
  25. hypershell-2.6.6/docs/_include/config_set_desc.rst +1 -0
  26. hypershell-2.6.6/docs/_include/config_set_help.rst +20 -0
  27. hypershell-2.6.6/docs/_include/config_set_usage.rst +2 -0
  28. hypershell-2.6.6/docs/_include/config_site_vars.rst +16 -0
  29. hypershell-2.6.6/docs/_include/config_task_env.rst +89 -0
  30. hypershell-2.6.6/docs/_include/config_task_env_alt.rst +75 -0
  31. hypershell-2.6.6/docs/_include/config_which_desc.rst +1 -0
  32. hypershell-2.6.6/docs/_include/config_which_help.rst +11 -0
  33. hypershell-2.6.6/docs/_include/config_which_usage.rst +2 -0
  34. hypershell-2.6.6/docs/_include/database.rst +67 -0
  35. hypershell-2.6.6/docs/_include/database_alt.rst +40 -0
  36. hypershell-2.6.6/docs/_include/desc.rst +3 -0
  37. hypershell-2.6.6/docs/_include/exit_status.rst +20 -0
  38. hypershell-2.6.6/docs/_include/initdb_desc.rst +5 -0
  39. hypershell-2.6.6/docs/_include/initdb_help.rst +9 -0
  40. hypershell-2.6.6/docs/_include/initdb_usage.rst +1 -0
  41. hypershell-2.6.6/docs/_include/license.rst +10 -0
  42. hypershell-2.6.6/docs/_include/server_desc.rst +13 -0
  43. hypershell-2.6.6/docs/_include/server_help.rst +122 -0
  44. hypershell-2.6.6/docs/_include/server_usage.rst +4 -0
  45. hypershell-2.6.6/docs/_include/signals.rst +12 -0
  46. hypershell-2.6.6/docs/_include/submit_desc.rst +9 -0
  47. hypershell-2.6.6/docs/_include/submit_help.rst +53 -0
  48. hypershell-2.6.6/docs/_include/submit_usage.rst +2 -0
  49. hypershell-2.6.6/docs/_include/task_info_desc.rst +8 -0
  50. hypershell-2.6.6/docs/_include/task_info_help.rst +26 -0
  51. hypershell-2.6.6/docs/_include/task_info_usage.rst +2 -0
  52. hypershell-2.6.6/docs/_include/task_run_desc.rst +7 -0
  53. hypershell-2.6.6/docs/_include/task_run_help.rst +22 -0
  54. hypershell-2.6.6/docs/_include/task_run_usage.rst +1 -0
  55. hypershell-2.6.6/docs/_include/task_search_desc.rst +7 -0
  56. hypershell-2.6.6/docs/_include/task_search_help.rst +62 -0
  57. hypershell-2.6.6/docs/_include/task_search_usage.rst +5 -0
  58. hypershell-2.6.6/docs/_include/task_submit_desc.rst +6 -0
  59. hypershell-2.6.6/docs/_include/task_submit_help.rst +19 -0
  60. hypershell-2.6.6/docs/_include/task_submit_usage.rst +1 -0
  61. hypershell-2.6.6/docs/_include/task_update_desc.rst +14 -0
  62. hypershell-2.6.6/docs/_include/task_update_help.rst +90 -0
  63. hypershell-2.6.6/docs/_include/task_update_usage.rst +9 -0
  64. hypershell-2.6.6/docs/_include/task_wait_desc.rst +6 -0
  65. hypershell-2.6.6/docs/_include/task_wait_help.rst +31 -0
  66. hypershell-2.6.6/docs/_include/task_wait_usage.rst +2 -0
  67. hypershell-2.6.6/docs/_include/templates.rst +145 -0
  68. hypershell-2.6.6/docs/_include/templates_alt.rst +121 -0
  69. hypershell-2.6.6/docs/_static/custom.css +16 -0
  70. hypershell-2.6.6/docs/_static/logo-dark-mode.png +0 -0
  71. hypershell-2.6.6/docs/_static/logo-light-mode.png +0 -0
  72. hypershell-2.6.6/docs/_static/logo.svg +102 -0
  73. hypershell-2.6.6/docs/api/client.rst +58 -0
  74. hypershell-2.6.6/docs/api/cluster.rst +105 -0
  75. hypershell-2.6.6/docs/api/data.rst +47 -0
  76. hypershell-2.6.6/docs/api/index.rst +112 -0
  77. hypershell-2.6.6/docs/api/server.rst +72 -0
  78. hypershell-2.6.6/docs/api/submit.rst +65 -0
  79. hypershell-2.6.6/docs/blog/20230329_2_2_0_release.rst +85 -0
  80. hypershell-2.6.6/docs/blog/20230413_2_3_0_release.rst +83 -0
  81. hypershell-2.6.6/docs/blog/20230602_2_4_0_release.rst +284 -0
  82. hypershell-2.6.6/docs/blog/20240518_2_5_0_release.rst +285 -0
  83. hypershell-2.6.6/docs/blog/20240706_2_5_2_release.rst +80 -0
  84. hypershell-2.6.6/docs/blog/20241115_2_6_0_release.rst +162 -0
  85. hypershell-2.6.6/docs/blog/20241115_announce_logo.rst +15 -0
  86. hypershell-2.6.6/docs/blog/20241231_2_6_1_release.rst +58 -0
  87. hypershell-2.6.6/docs/blog/20250215_2_6_5_release.rst +54 -0
  88. hypershell-2.6.6/docs/blog/20250405_2_6_6_release.rst +58 -0
  89. hypershell-2.6.6/docs/blog/index.rst +148 -0
  90. hypershell-2.6.6/docs/cli/client.rst +18 -0
  91. hypershell-2.6.6/docs/cli/cluster.rst +18 -0
  92. hypershell-2.6.6/docs/cli/config_edit.rst +18 -0
  93. hypershell-2.6.6/docs/cli/config_get.rst +18 -0
  94. hypershell-2.6.6/docs/cli/config_set.rst +18 -0
  95. hypershell-2.6.6/docs/cli/config_which.rst +18 -0
  96. hypershell-2.6.6/docs/cli/index.rst +32 -0
  97. hypershell-2.6.6/docs/cli/initdb.rst +18 -0
  98. hypershell-2.6.6/docs/cli/server.rst +18 -0
  99. hypershell-2.6.6/docs/cli/submit.rst +18 -0
  100. hypershell-2.6.6/docs/cli/task_info.rst +18 -0
  101. hypershell-2.6.6/docs/cli/task_run.rst +18 -0
  102. hypershell-2.6.6/docs/cli/task_search.rst +18 -0
  103. hypershell-2.6.6/docs/cli/task_submit.rst +18 -0
  104. hypershell-2.6.6/docs/cli/task_update.rst +18 -0
  105. hypershell-2.6.6/docs/cli/task_wait.rst +18 -0
  106. hypershell-2.6.6/docs/conf.py +141 -0
  107. hypershell-2.6.6/docs/config.rst +137 -0
  108. hypershell-2.6.6/docs/database.rst +8 -0
  109. hypershell-2.6.6/docs/getting_started.rst +198 -0
  110. hypershell-2.6.6/docs/index.rst +150 -0
  111. hypershell-2.6.6/docs/install.rst +167 -0
  112. hypershell-2.6.6/docs/logging.rst +230 -0
  113. hypershell-2.6.6/docs/manual.rst +265 -0
  114. hypershell-2.6.6/docs/roadmap.rst +121 -0
  115. hypershell-2.6.6/docs/templates.rst +10 -0
  116. hypershell-2.6.6/docs/tutorial/advanced.rst +6 -0
  117. hypershell-2.6.6/docs/tutorial/basic.rst +8 -0
  118. hypershell-2.6.6/docs/tutorial/distributed.rst +6 -0
  119. hypershell-2.6.6/docs/tutorial/hybrid.rst +6 -0
  120. hypershell-2.6.6/pyproject.toml +79 -0
  121. hypershell-2.6.6/share/bash_completion.d/hs +817 -0
  122. hypershell-2.6.6/share/man/man1/hs.1 +2039 -0
  123. hypershell-2.6.6/share/man/man1/hyper-shell.1 +2039 -0
  124. hypershell-2.6.6/share/zsh/site-functions/_hs +81 -0
  125. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/client.py +4 -4
  126. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/data/model.py +7 -4
  127. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/task.py +3 -3
  128. hypershell-2.6.6/tests/__init__.py +4 -0
  129. hypershell-2.6.6/tests/unit/__init__.py +4 -0
  130. hypershell-2.6.6/tests/unit/core/__init__.py +2 -0
  131. hypershell-2.6.6/tests/unit/test_database/__init__.py +4 -0
  132. hypershell-2.6.6/tests/unit/test_database/test_core.py +132 -0
  133. hypershell-2.6.6/uv.lock +1996 -0
  134. hypershell-2.6.5/pyproject.toml +0 -80
  135. {hypershell-2.6.5 → hypershell-2.6.6}/LICENSE +0 -0
  136. {hypershell-2.6.5 → hypershell-2.6.6}/README.rst +0 -0
  137. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/__init__.py +0 -0
  138. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/cluster/__init__.py +0 -0
  139. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/cluster/local.py +0 -0
  140. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/cluster/remote.py +0 -0
  141. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/cluster/ssh.py +0 -0
  142. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/config.py +0 -0
  143. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/__init__.py +0 -0
  144. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/config.py +0 -0
  145. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/exceptions.py +0 -0
  146. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/fsm.py +0 -0
  147. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/heartbeat.py +0 -0
  148. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/logging.py +0 -0
  149. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/platform.py +0 -0
  150. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/queue.py +0 -0
  151. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/remote.py +0 -0
  152. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/signal.py +0 -0
  153. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/sys.py +0 -0
  154. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/tag.py +0 -0
  155. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/template.py +0 -0
  156. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/thread.py +0 -0
  157. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/core/types.py +0 -0
  158. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/data/__init__.py +0 -0
  159. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/data/core.py +0 -0
  160. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/server.py +0 -0
  161. {hypershell-2.6.5 → hypershell-2.6.6}/src/hypershell/submit.py +0 -0
@@ -0,0 +1 @@
1
+ .venv
@@ -0,0 +1,135 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ pip-wheel-metadata/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ target/
76
+
77
+ # Jupyter Notebook
78
+ .ipynb_checkpoints
79
+
80
+ # IPython
81
+ profile_default/
82
+ ipython_config.py
83
+
84
+ # pyenv
85
+ .python-version
86
+
87
+ # pipenv
88
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
90
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
91
+ # install all needed dependencies.
92
+ #Pipfile.lock
93
+
94
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
95
+ __pypackages__/
96
+
97
+ # Celery stuff
98
+ celerybeat-schedule
99
+ celerybeat.pid
100
+
101
+ # SageMath parsed files
102
+ *.sage.py
103
+
104
+ # Environments
105
+ .env
106
+ .venv
107
+ env/
108
+ venv/
109
+ ENV/
110
+ env.bak/
111
+ venv.bak/
112
+
113
+ # Spyder project settings
114
+ .spyderproject
115
+ .spyproject
116
+
117
+ # Rope project settings
118
+ .ropeproject
119
+
120
+ # mkdocs documentation
121
+ /site
122
+
123
+ # mypy
124
+ .mypy_cache/
125
+ .dmypy.json
126
+ dmypy.json
127
+
128
+ # Pyre type checker
129
+ .pyre/
130
+
131
+ # VSCode project
132
+ .vscode/
133
+
134
+ # PyCharm
135
+ .idea
@@ -0,0 +1,16 @@
1
+ # readthedocs configuration file
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ version: 2
5
+
6
+ build:
7
+ os: ubuntu-22.04
8
+ tools:
9
+ python: "3.12"
10
+ jobs:
11
+ post_install:
12
+ - pip install uv
13
+ - UV_PROJECT_ENVIRONMENT=$READTHEDOCS_VIRTUALENV_PATH uv sync --all-extras --group docs --link-mode=copy
14
+
15
+ sphinx:
16
+ configuration: docs/conf.py
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ glentner@purdue.edu.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.
@@ -0,0 +1,27 @@
1
+ FROM python:3.13-slim
2
+
3
+ LABEL version="2.6.6"
4
+ LABEL authors="glentner@purdue.edu"
5
+ LABEL org.opencontainers.image.source="https://github.com/hypershell/hypershell"
6
+ LABEL org.opencontainers.image.description="HyperShell Base Image"
7
+ LABEL org.opencontainers.image.licenses="Apache-2.0"
8
+
9
+ RUN apt-get update && \
10
+ apt-get upgrade --yes && \
11
+ rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN addgroup --gid 1001 --system app && \
14
+ adduser --no-create-home --shell /bin/false --disabled-password --uid 1001 --system --group app
15
+
16
+ RUN mkdir -p /var/lib/hypershell
17
+
18
+ WORKDIR /app
19
+ COPY . .
20
+ RUN pip install .
21
+
22
+ ENV HYPERSHELL_LOGGING_LEVEL=TRACE \
23
+ HYPERSHELL_LOGGING_STYLE=SYSTEM
24
+
25
+ USER app
26
+ ENTRYPOINT ["hs", "server"]
27
+ CMD ["--forever"]
@@ -1,35 +1,31 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: hypershell
3
- Version: 2.6.5
3
+ Version: 2.6.6
4
4
  Summary: A cross-platform, high-throughput computing utility for processing shell commands over a distributed, asynchronous queue.
5
- License: Apache-2.0
6
- Keywords: distributed-computing,command-line-tool,shell-scripting,high-performance-computing,high-throughput-computing
7
- Author: Geoffrey Lentner
8
- Author-email: glentner@purdue.edu
9
- Requires-Python: >=3.9,<4.0
5
+ Author-email: Geoffrey Lentner <glentner@purdue.edu>
6
+ License-Expression: Apache-2.0
7
+ License-File: LICENSE
8
+ Keywords: command-line-tool,distributed-computing,high-performance-computing,high-throughput-computing,shell-scripting
10
9
  Classifier: Development Status :: 5 - Production/Stable
11
10
  Classifier: License :: OSI Approved :: Apache Software License
12
11
  Classifier: Operating System :: MacOS
13
12
  Classifier: Operating System :: Microsoft :: Windows
14
13
  Classifier: Operating System :: POSIX :: Linux
15
- Classifier: Programming Language :: Python :: 3
16
14
  Classifier: Programming Language :: Python :: 3.9
17
15
  Classifier: Programming Language :: Python :: 3.10
18
16
  Classifier: Programming Language :: Python :: 3.11
19
17
  Classifier: Programming Language :: Python :: 3.12
20
18
  Classifier: Programming Language :: Python :: 3.13
21
19
  Classifier: Topic :: Utilities
20
+ Requires-Python: >=3.9
21
+ Requires-Dist: cmdkit[toml]>=2.7.7
22
+ Requires-Dist: paramiko>=3.4.0
23
+ Requires-Dist: pyyaml>=6.0.1
24
+ Requires-Dist: rich>=13.7.1
25
+ Requires-Dist: sqlalchemy>=2.0.29
26
+ Requires-Dist: tomlkit>=0.13.2
22
27
  Provides-Extra: postgres
23
- Requires-Dist: cmdkit[toml] (>=2.7.7,<3.0.0)
24
- Requires-Dist: paramiko (>=3.4.0,<4.0.0)
25
- Requires-Dist: psycopg2 (>=2.9.9,<3.0.0) ; extra == "postgres"
26
- Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
27
- Requires-Dist: rich (>=13.7.1,<14.0.0)
28
- Requires-Dist: sqlalchemy (>=2.0.29,<3.0.0)
29
- Requires-Dist: tomlkit (>=0.13.2,<0.14.0)
30
- Project-URL: Documentation, https://hypershell.readthedocs.io
31
- Project-URL: Homepage, https://hypershell.org
32
- Project-URL: Repository, https://github.com/hypershell/hypershell
28
+ Requires-Dist: psycopg2>=2.9.9; extra == 'postgres'
33
29
  Description-Content-Type: text/x-rst
34
30
 
35
31
  HyperShell v2: Distributed Task Execution for HPC
@@ -114,4 +110,3 @@ If *HyperShell* has helped in your research please consider citing us.
114
110
  numpages = {3},
115
111
  series = {PEARC '22}
116
112
  }
117
-
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = .
9
+ BUILDDIR = _build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -0,0 +1,15 @@
1
+ .. code-block:: bibtex
2
+
3
+ @inproceedings{lentner_2022,
4
+ author = {Lentner, Geoffrey and Gorenstein, Lev},
5
+ title = {HyperShell v2: Distributed Task Execution for HPC},
6
+ year = {2022},
7
+ isbn = {9781450391610},
8
+ publisher = {Association for Computing Machinery},
9
+ url = {https://doi.org/10.1145/3491418.3535138},
10
+ doi = {10.1145/3491418.3535138},
11
+ booktitle = {Practice and Experience in Advanced Research Computing},
12
+ articleno = {80},
13
+ numpages = {3},
14
+ series = {PEARC '22}
15
+ }
@@ -0,0 +1,8 @@
1
+ Launch client directly, run tasks in parallel.
2
+
3
+ The client connects to the server and pulls bundles of tasks off the shared queue.
4
+ These tasks are run locally by some number of a parallel task executors.
5
+
6
+ The environment for tasks are the same as for the client. Standard output and error
7
+ for tasks are forwarded to that of the client, unless ``--capture`` is used, in which
8
+ these are directed to individual files for each task.
@@ -0,0 +1,103 @@
1
+ Options
2
+ ^^^^^^^
3
+
4
+ ``-N``, ``--num-tasks`` *NUM*
5
+ Number of task executors (default: 1).
6
+
7
+ ``-t``, ``--template`` *CMD*
8
+ Command-line template pattern (default: "{}").
9
+
10
+ This is expanded by the client just before execution. With the default "{}" the input
11
+ command-line will be run verbatim. Specifying a template pattern allows for simple input
12
+ arguments (e.g., file paths) to be transformed into some common form; such as
13
+ ``-t './some_command.py {} >outputs/{/-}.out'``.
14
+
15
+ See section on `templates`.
16
+
17
+ ``-b``, ``--bundlesize`` *SIZE*
18
+ Size of task bundle (default: 1).
19
+
20
+ Using larger bundles is a good idea for large distributed workflows; specifically, it is best
21
+ to coordinate bundle size with the number of executors in use by each client.
22
+
23
+ See also ``--num-tasks`` and ``--bundlewait``.
24
+
25
+ ``-w``, ``--bundlewait`` *SEC*
26
+ Seconds to wait before flushing tasks (default: 5).
27
+
28
+ The `client` collector thread that accumulates finished task bundles to return to
29
+ the `server` will push out a bundle after this period of time regardless of whether
30
+ it has reached the preferred bundle size.
31
+
32
+ See also ``--bundlesize``.
33
+
34
+ ``-H``, ``--host`` *ADDR*
35
+ Hostname or IP address to connect with server (default: localhost).
36
+
37
+ ``-p``, ``--port`` *NUM*
38
+ Port number to connect with server (default: 50001).
39
+
40
+ ``-k``, ``--auth`` *KEY*
41
+ Cryptographic authentication key to connect with server (default: <not secure>).
42
+
43
+ The default *KEY* used by the server and client is not secure and only a place holder.
44
+ It is expected that the user choose a secure *KEY*. The `cluster` automatically generates
45
+ a secure one-time *KEY*.
46
+
47
+ ``-d``, ``--delay-start`` *SEC*
48
+ Delay time in seconds before connecting to server (default: 0).
49
+
50
+ At larger scales it can be advantageous to uniformly delay the client launch sequence.
51
+ Hundreds or thousands of clients connecting to the server all at once is a challenge.
52
+ Even if the server could handle the load, your task throughput would be unbalanced,
53
+ coming in waves.
54
+
55
+ Use ``--delay-start`` with a negative number to impose a uniform random delay up to the
56
+ magnitude specified (e.g., ``--delay-start=-600`` would delay the client up to ten minutes).
57
+ This also has the effect of staggering the workload. If your tasks take on the order of 30
58
+ minutes and you have 1000 nodes, choose ``--delay-start=-1800``.
59
+
60
+ ``--no-confirm``
61
+ Disable client confirmation of task bundle received.
62
+
63
+ To achieve even higher throughput at large scales, optionally disable confirmation
64
+ payloads from clients. Consider using this option when also using ``--no-db``.
65
+
66
+ ``-o``, ``--output`` *PATH*
67
+ File path for task outputs (default: <stdout>).
68
+
69
+ ``-e``, ``--errors`` *PATH*
70
+ File path for task errors (default: <stderr>).
71
+
72
+ ``-c``, ``--capture``
73
+ Capture individual task <stdout> and <stderr>.
74
+
75
+ By default, the `stdout` and `stderr` streams of all tasks are fused with that of the `client`
76
+ thread, and in turn the `cluster`. If tasks are producing output that needs to be isolated, the
77
+ tasks need to manage their own output, you can specify a redirect as part of a ``--template``,
78
+ or use ``--capture`` to capture these as ``.out`` and ``.err`` files.
79
+
80
+ These are stored local to the `client` under `<prefix>/lib/task/<uuid>.[out,err]`.
81
+ Task outputs can be automatically retrieved via SFTP, see *task* usage.
82
+
83
+ Mutually exclusive with both ``--output`` and ``--errors``.
84
+
85
+ ``--timeout`` *SEC*
86
+ Timeout in seconds for client. Automatically shutdown if no tasks received (default: never).
87
+
88
+ This feature allows for gracefully scaling down a cluster when task throughput subsides.
89
+
90
+
91
+ ``--task-timeout`` *SEC*
92
+ Task-level walltime limit (default: none).
93
+
94
+ Executors will send a progression of SIGINT, SIGTERM, and SIGKILL.
95
+ If the process still persists the executor itself will shutdown.
96
+
97
+ ``-S``, ``--signalwait`` *SEC*
98
+ Task-level signal escalation wait period in seconds (default: 10).
99
+
100
+ When tasks fail to halt following an initial SIGINT, the program waits
101
+ this interval in seconds before escalating to the next level of interrupt.
102
+
103
+ See also ``--task-timeout``.
@@ -0,0 +1,4 @@
1
+ ``hs`` ``client`` ``[-h]``
2
+ ``[-N NUM]`` ``[-t TEMPLATE]`` ``[-b SIZE]`` ``[-w SEC]`` ``[-H ADDR]`` ``[-p PORT]``
3
+ ``[-k KEY]`` ``[--capture | [-o PATH] [-e PATH]]`` ``[--no-confirm]``
4
+ ``[-d SEC]`` ``[-T SEC]`` ``[-W SEC]`` ``[-S SEC]``
@@ -0,0 +1,15 @@
1
+ Start cluster locally or with remote clients over *ssh* or a custom *launcher*.
2
+ This mode should be the most common entry-point for general usage. It fully encompasses all of the
3
+ different agents in the system in a concise workflow.
4
+
5
+ The input source for tasks is file-like, either a local path, or from *stdin* if no argument is
6
+ given. The command-line tasks are pulled in and either directly published to a distributed queue
7
+ (see ``--no-db``) or committed to a database first before being scheduled later.
8
+
9
+ For large, long running workflows, it might be a good idea to configure a database and run an
10
+ initial ``submit`` job to populate the database, and then run the cluster with ``--restart`` and no
11
+ input *FILE*. If the cluster is interrupted for whatever reason it can gracefully restart where it
12
+ left off.
13
+
14
+ Use ``--autoscaling`` with either *fixed* or *dynamic* to run a persistent, elastically scalable
15
+ cluster using an external ``--launcher`` to bring up clients as needed.