hyperdrive 2.1.1__tar.gz → 2.1.2__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 (117) hide show
  1. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/pr.yml +37 -18
  2. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/release.yml +37 -17
  3. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/PKG-INFO +1 -1
  4. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/_version.py +2 -2
  5. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/dependabot.yml +0 -0
  6. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/api.yml +0 -0
  7. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/dividends.yml +0 -0
  8. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/indicators.yml +0 -0
  9. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/indices.yml +0 -0
  10. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/integration.yml +0 -0
  11. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/intraday.yml +0 -0
  12. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/keepalive.yml +0 -0
  13. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/model.yml +0 -0
  14. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/ohlc.yml +0 -0
  15. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/optimize.yml +0 -0
  16. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/predict.yml +0 -0
  17. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/splits.yml +0 -0
  18. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/spreadsheet.yml +0 -0
  19. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/test.yml +0 -0
  20. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/unrate.yml +0 -0
  21. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.github/workflows/visualize.yml +0 -0
  22. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.gitignore +0 -0
  23. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/.python-version +0 -0
  24. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/AGENTS.md +0 -0
  25. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/CLAUDE.md +0 -0
  26. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/LICENSE +0 -0
  27. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/Makefile +0 -0
  28. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/README.md +0 -0
  29. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/assets/qr_bnb.png +0 -0
  30. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/assets/qr_btc.png +0 -0
  31. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/assets/qr_eth.png +0 -0
  32. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/assets/qr_xmr.png +0 -0
  33. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/docs/internal/stocktwits.md +0 -0
  34. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/docs/internal/testing.md +0 -0
  35. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/encrypted/create_model.py.encrypted +0 -0
  36. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/encrypted/generate_preview.py.encrypted +0 -0
  37. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/encrypted/optimize_portfolio.py.encrypted +0 -0
  38. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/encrypted/predict_signal.py.encrypted +0 -0
  39. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/Algotrader.py +0 -0
  40. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/Broker.py +0 -0
  41. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/Calculus.py +0 -0
  42. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/Constants.py +0 -0
  43. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/Crypt.py +0 -0
  44. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/DataSource.py +0 -0
  45. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/Exchange.py +0 -0
  46. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/FileOps.py +0 -0
  47. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/History.py +0 -0
  48. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/Precognition.py +0 -0
  49. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/Staking.py +0 -0
  50. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/Storage.py +0 -0
  51. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/TimeMachine.py +0 -0
  52. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/Transformer.py +0 -0
  53. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/Utils.py +0 -0
  54. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/Workflow.py +0 -0
  55. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/hyperdrive/__init__.py +0 -0
  56. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/pyproject.toml +0 -0
  57. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/check_dist.py +0 -0
  58. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/delete_data_dir.py +0 -0
  59. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/delete_dir.py +0 -0
  60. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/dune_validator_rewards.sql +0 -0
  61. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/execute_order.py +0 -0
  62. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/login.py +0 -0
  63. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/qr.py +0 -0
  64. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/sleep.py +0 -0
  65. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_api.py +0 -0
  66. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_dividends.py +0 -0
  67. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_hist_dividends.py +0 -0
  68. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_hist_intraday.py +0 -0
  69. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_hist_ohlc.py +0 -0
  70. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_hist_splits.py +0 -0
  71. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_indicators.py +0 -0
  72. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_indices.py +0 -0
  73. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_intraday.py +0 -0
  74. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_ndx_api.py +0 -0
  75. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_ohlc.py +0 -0
  76. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_repo.py +0 -0
  77. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_splits.py +0 -0
  78. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_spreadsheet.py +0 -0
  79. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_symbols.py +0 -0
  80. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/update_unrate.py +0 -0
  81. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/upload_data.py +0 -0
  82. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/scripts/visualize.py +0 -0
  83. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/integration/test_broker_live.py +0 -0
  84. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/integration/test_datasource_live.py +0 -0
  85. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/integration/test_exchange_live.py +0 -0
  86. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/integration/test_storage_live.py +0 -0
  87. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/smoke.py +0 -0
  88. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/conftest.py +0 -0
  89. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_Algotrader.py +0 -0
  90. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_Broker.py +0 -0
  91. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_Calculus.py +0 -0
  92. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_Constants.py +0 -0
  93. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_Crypt.py +0 -0
  94. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_DataSource.py +0 -0
  95. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_Exchange.py +0 -0
  96. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_FileOps.py +0 -0
  97. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_History.py +0 -0
  98. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_Precognition.py +0 -0
  99. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_Scripts.py +0 -0
  100. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_Staking.py +0 -0
  101. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_Storage.py +0 -0
  102. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_TimeMachine.py +0 -0
  103. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_Transformer.py +0 -0
  104. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_Utils.py +0 -0
  105. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/tests/unit/test_Workflow.py +0 -0
  106. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/util/decrypt.py +0 -0
  107. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/util/encrypt.py +0 -0
  108. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/util/get_loc.sh +0 -0
  109. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/util/git_cleanup.sh +0 -0
  110. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/util/install_ta_lib.sh +0 -0
  111. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/util/keepalive.py +0 -0
  112. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/util/process.py +0 -0
  113. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/util/pypi.py +0 -0
  114. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/util/pypi_cleanup.sh +0 -0
  115. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/util/sync.sh +0 -0
  116. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/util/update.py +0 -0
  117. {hyperdrive-2.1.1 → hyperdrive-2.1.2}/uv.lock +0 -0
@@ -222,31 +222,50 @@ jobs:
222
222
  VERSION="${{ needs.version.outputs.pypi_version }}"
223
223
  MAX_ATTEMPTS=40
224
224
  SLEEP_SECONDS=15
225
-
226
- # Retry the install itself rather than polling an index first. The
227
- # simple index is CDN-cached per edge, so a separate curl check can
228
- # see the release while pip's request lands on a stale edge moments
229
- # later and fails with "No matching distribution found". Retrying the
230
- # real command makes the check and the action the same client. Only
231
- # that error for this release is retried; any other install error
225
+ RELEASE_JSON="$RUNNER_TEMP/release.json"
226
+ DIST="$RUNNER_TEMP/testpypi"
227
+
228
+ # Read this version's own JSON page instead of the project's simple
229
+ # index. The CDN can serve a simple index from before the upload for
230
+ # over 10 minutes: three alkalescent/silicon pull request runs on
231
+ # 2026-11-25 saw one such page on all 40 attempts. This job is the
232
+ # first to request its version's page, after the upload, so no edge
233
+ # holds an older copy of it. Only a 404 is retried; any other status
232
234
  # fails at once.
233
235
  for i in $(seq 1 $MAX_ATTEMPTS); do
234
- if OUTPUT=$(pip install --no-deps --index-url https://test.pypi.org/simple/ \
235
- "${NAME}==${VERSION}" 2>&1); then
236
- echo "$OUTPUT"
237
- echo "Installed ${NAME}==${VERSION} on attempt $i"
238
- exit 0
236
+ STATUS=$(curl -sS -o "$RELEASE_JSON" -w '%{http_code}' \
237
+ "https://test.pypi.org/pypi/${NAME}/${VERSION}/json")
238
+ if [ "$STATUS" = 200 ]; then
239
+ echo "Found ${NAME} ${VERSION} on attempt $i"
240
+ break
241
+ fi
242
+ if [ "$STATUS" != 404 ]; then
243
+ echo "TestPyPI returned HTTP $STATUS for ${NAME} ${VERSION}"
244
+ exit 1
239
245
  fi
240
- echo "$OUTPUT"
241
- if ! grep -qF "No matching distribution found for ${NAME}==${VERSION}" <<< "$OUTPUT"; then
242
- echo "Install failed with an error other than a missing release"
246
+ if [ "$i" = "$MAX_ATTEMPTS" ]; then
247
+ echo "Timed out after $((MAX_ATTEMPTS * SLEEP_SECONDS)) seconds"
243
248
  exit 1
244
249
  fi
245
- echo "Attempt $i/$MAX_ATTEMPTS: not installable yet, waiting ${SLEEP_SECONDS}s..."
250
+ echo "Attempt $i/$MAX_ATTEMPTS: not on TestPyPI yet, waiting ${SLEEP_SECONDS}s..."
246
251
  sleep $SLEEP_SECONDS
247
252
  done
248
- echo "Timed out after $((MAX_ATTEMPTS * SLEEP_SECONDS)) seconds"
249
- exit 1
253
+
254
+ # The page lists one wheel. Check its SHA-256, then install it from a
255
+ # local directory so pip still matches the name and version.
256
+ WHEEL_INFO=$(jq -er '[.urls[] | select(.packagetype == "bdist_wheel")]
257
+ | if length == 1 then .[0] | "\(.url) \(.digests.sha256)"
258
+ else error("expected one wheel, found \(length)") end' "$RELEASE_JSON")
259
+ read -r URL SHA256 <<< "$WHEEL_INFO"
260
+ case "$URL" in
261
+ https://test-files.pythonhosted.org/packages/*) ;;
262
+ *) echo "Unexpected wheel URL: $URL"; exit 1 ;;
263
+ esac
264
+ mkdir -p "$DIST"
265
+ WHEEL="$DIST/${URL##*/}"
266
+ curl -fsSL --retry 3 -o "$WHEEL" "$URL"
267
+ echo "$SHA256 $WHEEL" | sha256sum -c -
268
+ pip install --no-deps --no-index --find-links "$DIST" "${NAME}==${VERSION}"
250
269
 
251
270
  - name: Run smoke tests
252
271
  run: python tests/smoke.py
@@ -145,30 +145,50 @@ jobs:
145
145
  VERSION="${{ needs.version.outputs.pypi_version }}"
146
146
  MAX_ATTEMPTS=40
147
147
  SLEEP_SECONDS=15
148
+ RELEASE_JSON="$RUNNER_TEMP/release.json"
149
+ DIST="$RUNNER_TEMP/pypi"
148
150
 
149
- # Retry the install itself rather than polling an index first. The
150
- # simple index is CDN-cached per edge, so a separate curl check can
151
- # see the release while pip's request lands on a stale edge moments
152
- # later and fails with "No matching distribution found". Retrying the
153
- # real command makes the check and the action the same client. Only
154
- # that error for this release is retried; a dependency pip cannot
155
- # find, or any other install error, fails at once.
151
+ # Read this version's own JSON page instead of the project's simple
152
+ # index. The CDN can serve a simple index from before the upload for
153
+ # over 10 minutes: alkalescent/interstellar's v1.5.0 release run on
154
+ # 2026-11-25 saw one such page on all 40 attempts, starting 22 s after
155
+ # the upload. This job is the first to request its version's page,
156
+ # after the upload, so no edge holds an older copy of it. Only a 404
157
+ # is retried; any other status fails at once.
156
158
  for i in $(seq 1 $MAX_ATTEMPTS); do
157
- if OUTPUT=$(pip install "${NAME}==${VERSION}" 2>&1); then
158
- echo "$OUTPUT"
159
- echo "Installed ${NAME}==${VERSION} on attempt $i"
160
- exit 0
159
+ STATUS=$(curl -sS -o "$RELEASE_JSON" -w '%{http_code}' \
160
+ "https://pypi.org/pypi/${NAME}/${VERSION}/json")
161
+ if [ "$STATUS" = 200 ]; then
162
+ echo "Found ${NAME} ${VERSION} on attempt $i"
163
+ break
161
164
  fi
162
- echo "$OUTPUT"
163
- if ! grep -qF "No matching distribution found for ${NAME}==${VERSION}" <<< "$OUTPUT"; then
164
- echo "Install failed with an error other than a missing release"
165
+ if [ "$STATUS" != 404 ]; then
166
+ echo "PyPI returned HTTP $STATUS for ${NAME} ${VERSION}"
165
167
  exit 1
166
168
  fi
167
- echo "Attempt $i/$MAX_ATTEMPTS: not installable yet, waiting ${SLEEP_SECONDS}s..."
169
+ if [ "$i" = "$MAX_ATTEMPTS" ]; then
170
+ echo "Timed out after $((MAX_ATTEMPTS * SLEEP_SECONDS)) seconds"
171
+ exit 1
172
+ fi
173
+ echo "Attempt $i/$MAX_ATTEMPTS: not on PyPI yet, waiting ${SLEEP_SECONDS}s..."
168
174
  sleep $SLEEP_SECONDS
169
175
  done
170
- echo "Timed out after $((MAX_ATTEMPTS * SLEEP_SECONDS)) seconds"
171
- exit 1
176
+
177
+ # The page lists one wheel. Check its SHA-256, then install that file,
178
+ # with its dependencies from PyPI's index as a user's install takes them.
179
+ WHEEL_INFO=$(jq -er '[.urls[] | select(.packagetype == "bdist_wheel")]
180
+ | if length == 1 then .[0] | "\(.url) \(.digests.sha256)"
181
+ else error("expected one wheel, found \(length)") end' "$RELEASE_JSON")
182
+ read -r URL SHA256 <<< "$WHEEL_INFO"
183
+ case "$URL" in
184
+ https://files.pythonhosted.org/packages/*) ;;
185
+ *) echo "Unexpected wheel URL: $URL"; exit 1 ;;
186
+ esac
187
+ mkdir -p "$DIST"
188
+ WHEEL="$DIST/${URL##*/}"
189
+ curl -fsSL --retry 3 -o "$WHEEL" "$URL"
190
+ echo "$SHA256 $WHEEL" | sha256sum -c -
191
+ pip install "$WHEEL"
172
192
 
173
193
  - name: Run smoke tests
174
194
  run: python tests/smoke.py
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: hyperdrive
3
- Version: 2.1.1
3
+ Version: 2.1.2
4
4
  Summary: An algorithmic trading platform
5
5
  Project-URL: Homepage, https://github.com/alkalescent/hyperdrive
6
6
  Project-URL: Bug Reports, https://github.com/alkalescent/hyperdrive/issues
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '2.1.1'
22
- __version_tuple__ = version_tuple = (2, 1, 1)
21
+ __version__ = version = '2.1.2'
22
+ __version_tuple__ = version_tuple = (2, 1, 2)
23
23
 
24
24
  __commit_id__ = commit_id = None
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes