hyperdrive 2.1.0__tar.gz → 2.1.1__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.0 → hyperdrive-2.1.1}/.github/workflows/pr.yml +48 -0
  2. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/PKG-INFO +4 -2
  3. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/_version.py +2 -2
  4. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/pyproject.toml +10 -1
  5. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/uv.lock +5 -1
  6. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/dependabot.yml +0 -0
  7. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/api.yml +0 -0
  8. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/dividends.yml +0 -0
  9. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/indicators.yml +0 -0
  10. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/indices.yml +0 -0
  11. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/integration.yml +0 -0
  12. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/intraday.yml +0 -0
  13. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/keepalive.yml +0 -0
  14. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/model.yml +0 -0
  15. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/ohlc.yml +0 -0
  16. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/optimize.yml +0 -0
  17. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/predict.yml +0 -0
  18. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/release.yml +0 -0
  19. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/splits.yml +0 -0
  20. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/spreadsheet.yml +0 -0
  21. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/test.yml +0 -0
  22. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/unrate.yml +0 -0
  23. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.github/workflows/visualize.yml +0 -0
  24. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.gitignore +0 -0
  25. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/.python-version +0 -0
  26. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/AGENTS.md +0 -0
  27. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/CLAUDE.md +0 -0
  28. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/LICENSE +0 -0
  29. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/Makefile +0 -0
  30. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/README.md +0 -0
  31. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/assets/qr_bnb.png +0 -0
  32. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/assets/qr_btc.png +0 -0
  33. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/assets/qr_eth.png +0 -0
  34. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/assets/qr_xmr.png +0 -0
  35. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/docs/internal/stocktwits.md +0 -0
  36. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/docs/internal/testing.md +0 -0
  37. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/encrypted/create_model.py.encrypted +0 -0
  38. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/encrypted/generate_preview.py.encrypted +0 -0
  39. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/encrypted/optimize_portfolio.py.encrypted +0 -0
  40. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/encrypted/predict_signal.py.encrypted +0 -0
  41. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/Algotrader.py +0 -0
  42. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/Broker.py +0 -0
  43. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/Calculus.py +0 -0
  44. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/Constants.py +0 -0
  45. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/Crypt.py +0 -0
  46. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/DataSource.py +0 -0
  47. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/Exchange.py +0 -0
  48. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/FileOps.py +0 -0
  49. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/History.py +0 -0
  50. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/Precognition.py +0 -0
  51. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/Staking.py +0 -0
  52. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/Storage.py +0 -0
  53. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/TimeMachine.py +0 -0
  54. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/Transformer.py +0 -0
  55. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/Utils.py +0 -0
  56. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/Workflow.py +0 -0
  57. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/hyperdrive/__init__.py +0 -0
  58. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/check_dist.py +0 -0
  59. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/delete_data_dir.py +0 -0
  60. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/delete_dir.py +0 -0
  61. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/dune_validator_rewards.sql +0 -0
  62. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/execute_order.py +0 -0
  63. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/login.py +0 -0
  64. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/qr.py +0 -0
  65. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/sleep.py +0 -0
  66. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_api.py +0 -0
  67. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_dividends.py +0 -0
  68. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_hist_dividends.py +0 -0
  69. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_hist_intraday.py +0 -0
  70. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_hist_ohlc.py +0 -0
  71. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_hist_splits.py +0 -0
  72. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_indicators.py +0 -0
  73. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_indices.py +0 -0
  74. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_intraday.py +0 -0
  75. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_ndx_api.py +0 -0
  76. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_ohlc.py +0 -0
  77. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_repo.py +0 -0
  78. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_splits.py +0 -0
  79. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_spreadsheet.py +0 -0
  80. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_symbols.py +0 -0
  81. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/update_unrate.py +0 -0
  82. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/upload_data.py +0 -0
  83. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/scripts/visualize.py +0 -0
  84. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/integration/test_broker_live.py +0 -0
  85. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/integration/test_datasource_live.py +0 -0
  86. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/integration/test_exchange_live.py +0 -0
  87. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/integration/test_storage_live.py +0 -0
  88. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/smoke.py +0 -0
  89. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/conftest.py +0 -0
  90. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_Algotrader.py +0 -0
  91. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_Broker.py +0 -0
  92. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_Calculus.py +0 -0
  93. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_Constants.py +0 -0
  94. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_Crypt.py +0 -0
  95. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_DataSource.py +0 -0
  96. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_Exchange.py +0 -0
  97. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_FileOps.py +0 -0
  98. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_History.py +0 -0
  99. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_Precognition.py +0 -0
  100. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_Scripts.py +0 -0
  101. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_Staking.py +0 -0
  102. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_Storage.py +0 -0
  103. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_TimeMachine.py +0 -0
  104. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_Transformer.py +0 -0
  105. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_Utils.py +0 -0
  106. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/tests/unit/test_Workflow.py +0 -0
  107. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/util/decrypt.py +0 -0
  108. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/util/encrypt.py +0 -0
  109. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/util/get_loc.sh +0 -0
  110. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/util/git_cleanup.sh +0 -0
  111. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/util/install_ta_lib.sh +0 -0
  112. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/util/keepalive.py +0 -0
  113. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/util/process.py +0 -0
  114. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/util/pypi.py +0 -0
  115. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/util/pypi_cleanup.sh +0 -0
  116. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/util/sync.sh +0 -0
  117. {hyperdrive-2.1.0 → hyperdrive-2.1.1}/util/update.py +0 -0
@@ -251,6 +251,54 @@ jobs:
251
251
  - name: Run smoke tests
252
252
  run: python tests/smoke.py
253
253
 
254
+ # `pip install hyperdrive` resolves the newest dependencies the pyproject
255
+ # bounds allow, ignoring uv.lock. This job installs the built wheel the same
256
+ # way and runs the smoke and unit tests on it, so a dependency release that
257
+ # breaks hyperdrive fails a pull request before a release reaches PyPI,
258
+ # where Smoke PyPI would first see it.
259
+ smoke-fresh-install:
260
+ name: Smoke Fresh Install
261
+ needs: test
262
+ runs-on: ubuntu-latest
263
+ steps:
264
+ - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
265
+ with:
266
+ fetch-depth: 0 # Full history needed for hatch-vcs
267
+ persist-credentials: false
268
+
269
+ - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
270
+ with:
271
+ python-version: '3.11'
272
+
273
+ - name: Install uv
274
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
275
+
276
+ - name: Build wheel
277
+ run: uv build --wheel --out-dir "$RUNNER_TEMP/dist"
278
+
279
+ - name: Install wheel with fresh dependencies
280
+ run: |
281
+ pip install "$RUNNER_TEMP"/dist/*.whl
282
+ pip show vectorbt plotly polars pyarrow numpy | grep -E '^(Name|Version):'
283
+
284
+ - name: Run smoke tests
285
+ run: python tests/smoke.py
286
+
287
+ # After the smoke tests, so those run on a user's install alone. pip keeps
288
+ # the installed versions unless a test tool needs another.
289
+ - name: Install test tools
290
+ run: |
291
+ python -m pip install --upgrade pip # --group needs pip 25.1 or later
292
+ pip install --group dev
293
+ pip show vectorbt plotly polars pyarrow numpy | grep -E '^(Name|Version):'
294
+
295
+ - name: Run unit tests
296
+ # python -m puts the checkout first on sys.path, as uv's editable install
297
+ # does for make cov, so test_Scripts.py can import scripts/, which the
298
+ # wheel leaves out. The code matches the wheel's; the dependencies are
299
+ # the fresh set installed above.
300
+ run: python -m pytest tests/unit
301
+
254
302
  # The release's build and Check built version steps, run against a local
255
303
  # throwaway tag. Nothing is pushed or published.
256
304
  release-build:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: hyperdrive
3
- Version: 2.1.0
3
+ Version: 2.1.1
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
@@ -19,15 +19,17 @@ Requires-Dist: imbalanced-learn>=0.13.0
19
19
  Requires-Dist: lxml>=5.4.0
20
20
  Requires-Dist: numpy>=1.26.4
21
21
  Requires-Dist: pandas>=2.2.3
22
+ Requires-Dist: plotly<7
22
23
  Requires-Dist: polars>=1.0.0
23
24
  Requires-Dist: polygon-api-client>=1.11.0
24
25
  Requires-Dist: pyarrow>=14.0.0
26
+ Requires-Dist: pyotp<2.12,>=2.9.0
25
27
  Requires-Dist: python-binance>=1.0.28
26
28
  Requires-Dist: python-dotenv>=1.1.0
27
29
  Requires-Dist: pytz>=2025.2
28
30
  Requires-Dist: requests
29
31
  Requires-Dist: robin-stocks>=3.4.0
30
- Requires-Dist: scikit-learn>=1.6.1
32
+ Requires-Dist: scikit-learn<1.8,>=1.6.1
31
33
  Requires-Dist: scipy>=1.15.3
32
34
  Requires-Dist: selenium>=4.27.1
33
35
  Requires-Dist: ta>=0.11.0
@@ -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.0'
22
- __version_tuple__ = version_tuple = (2, 1, 0)
21
+ __version__ = version = '2.1.1'
22
+ __version_tuple__ = version_tuple = (2, 1, 1)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -14,11 +14,20 @@ dependencies = [
14
14
  "polygon-api-client>=1.11.0",
15
15
  "pytz>=2025.2",
16
16
  "vectorbt>=0.28.0",
17
+ # vectorbt registers its plotly templates at import, and plotly 7.2.0 fails
18
+ # on them ("Bad property path: scattermapbox"). vectorbt sets no upper bound.
19
+ "plotly<7",
17
20
  "ta>=0.11.0",
18
21
  "scipy>=1.15.3",
19
- "scikit-learn>=1.6.1",
22
+ # scikit-learn 1.8.0 raises LinAlgError where 1.7 warned on a class whose
23
+ # covariance is not full rank, so run_classifiers fails at its QDA step.
24
+ "scikit-learn>=1.6.1,<1.8",
20
25
  "cryptography>=44.0.3",
21
26
  "python-binance>=1.0.28",
27
+ # Broker.py imports pyotp, which robin-stocks also requires. pyotp 2.12.0
28
+ # refuses TOTP secrets under 112 bits, and a 16-character base32 secret
29
+ # holds 80.
30
+ "pyotp>=2.9.0,<2.12",
22
31
  "imbalanced-learn>=0.13.0",
23
32
  "icosphere>=0.1.3",
24
33
  "numpy>=1.26.4",
@@ -1418,9 +1418,11 @@ dependencies = [
1418
1418
  { name = "lxml" },
1419
1419
  { name = "numpy" },
1420
1420
  { name = "pandas" },
1421
+ { name = "plotly" },
1421
1422
  { name = "polars" },
1422
1423
  { name = "polygon-api-client" },
1423
1424
  { name = "pyarrow" },
1425
+ { name = "pyotp" },
1424
1426
  { name = "python-binance" },
1425
1427
  { name = "python-dotenv" },
1426
1428
  { name = "pytz" },
@@ -1467,15 +1469,17 @@ requires-dist = [
1467
1469
  { name = "lxml", specifier = ">=5.4.0" },
1468
1470
  { name = "numpy", specifier = ">=1.26.4" },
1469
1471
  { name = "pandas", specifier = ">=2.2.3" },
1472
+ { name = "plotly", specifier = "<7" },
1470
1473
  { name = "polars", specifier = ">=1.0.0" },
1471
1474
  { name = "polygon-api-client", specifier = ">=1.11.0" },
1472
1475
  { name = "pyarrow", specifier = ">=14.0.0" },
1476
+ { name = "pyotp", specifier = ">=2.9.0,<2.12" },
1473
1477
  { name = "python-binance", specifier = ">=1.0.28" },
1474
1478
  { name = "python-dotenv", specifier = ">=1.1.0" },
1475
1479
  { name = "pytz", specifier = ">=2025.2" },
1476
1480
  { name = "requests" },
1477
1481
  { name = "robin-stocks", specifier = ">=3.4.0" },
1478
- { name = "scikit-learn", specifier = ">=1.6.1" },
1482
+ { name = "scikit-learn", specifier = ">=1.6.1,<1.8" },
1479
1483
  { name = "scipy", specifier = ">=1.15.3" },
1480
1484
  { name = "selenium", specifier = ">=4.27.1" },
1481
1485
  { name = "ta", specifier = ">=0.11.0" },
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