hyperquant 0.1.8__tar.gz → 0.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperquant
3
- Version: 0.1.8
3
+ Version: 0.2
4
4
  Summary: A minimal yet hyper-efficient backtesting framework for quantitative trading
5
5
  Project-URL: Homepage, https://github.com/yourusername/hyperquant
6
6
  Project-URL: Issues, https://github.com/yourusername/hyperquant/issues
@@ -13,7 +13,7 @@ Classifier: License :: OSI Approved :: MIT License
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Topic :: Office/Business :: Financial :: Investment
15
15
  Requires-Python: >=3.9
16
- Requires-Dist: aiohttp>=3.11.16
16
+ Requires-Dist: aiohttp>=3.10.4
17
17
  Requires-Dist: colorama>=0.4.6
18
18
  Requires-Dist: cryptography>=44.0.2
19
19
  Requires-Dist: duckdb>=1.2.2
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "hyperquant"
3
- version = "0.1.8"
3
+ version = "0.2"
4
4
  description = "A minimal yet hyper-efficient backtesting framework for quantitative trading"
5
5
  authors = [
6
6
  { name = "MissinA", email = "1421329142@qq.com" }
@@ -9,7 +9,7 @@ dependencies = [
9
9
  "pyecharts>=2.0.8",
10
10
  "pandas>=2.2.3",
11
11
  "colorama>=0.4.6",
12
- "aiohttp>=3.11.16",
12
+ "aiohttp>=3.10.4",
13
13
  "cryptography>=44.0.2",
14
14
  "numpy>=1.21.0", # Added numpy as a new dependency
15
15
  "duckdb>=1.2.2",
@@ -2,7 +2,6 @@ from dataclasses import dataclass
2
2
  import duckdb
3
3
  import pandas as pd
4
4
  from typing import Dict, Optional, Union
5
- from enum import Enum
6
5
  import os
7
6
 
8
7
 
@@ -845,7 +845,8 @@ def _produce_date_opt_js(
845
845
  let dateInput = document.getElementById('date-input');
846
846
  endDate=dateInput.value;
847
847
  if (endDate.indexOf("-")<0 && endDate.length>=6){{
848
- endDate=endDate.replace(/({{4}})({{2}})({{2}})/, "$1-$2-$3");
848
+ endDate = endDate.replace(/^(\\d{4})(\\d{2})(\\d{2})$/, '$1-$2-$3');
849
+
849
850
  }}
850
851
  to_date(endDate);
851
852
  }});
@@ -895,7 +896,7 @@ def _produce_date_opt_js(
895
896
  """
896
897
  # 如果高度是用%设置的,要监听浏览器窗口大小变化事件实现图表自动变大小
897
898
  if height_type == "%":
898
- resize_js = """
899
+ resize_js = r"""
899
900
  function resize_chart(){{
900
901
  // 获取当前窗口的宽度和高度
901
902
  let width = window.innerWidth;
@@ -530,7 +530,7 @@ wheels = [
530
530
 
531
531
  [[package]]
532
532
  name = "hyperquant"
533
- version = "0.1.7"
533
+ version = "0.1.9"
534
534
  source = { editable = "." }
535
535
  dependencies = [
536
536
  { name = "aiohttp" },
@@ -550,7 +550,7 @@ dev = [
550
550
 
551
551
  [package.metadata]
552
552
  requires-dist = [
553
- { name = "aiohttp", specifier = ">=3.11.16" },
553
+ { name = "aiohttp", specifier = ">=3.10.4" },
554
554
  { name = "colorama", specifier = ">=0.4.6" },
555
555
  { name = "cryptography", specifier = ">=44.0.2" },
556
556
  { name = "duckdb", specifier = ">=1.2.2" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes