hkjc 0.3.5__tar.gz → 0.3.7__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: hkjc
3
- Version: 0.3.5
3
+ Version: 0.3.7
4
4
  Summary: Library for scrapping HKJC data and perform basic analysis
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: cachetools>=6.2.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "hkjc"
3
- version = "0.3.5"
3
+ version = "0.3.7"
4
4
  description = "Library for scrapping HKJC data and perform basic analysis"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -112,7 +112,7 @@ def live_odds(date: str, venue_code: str, race_number: int, odds_type: List[str]
112
112
  except Exception:
113
113
  raise ValueError("Date must be in 'YYYY-MM-DD' format")
114
114
 
115
- mandatory_types = ('WIN','PLA','QIN','QPL') if fit_harville else ('PLA')
115
+ mandatory_types = ['WIN','PLA','QIN','QPL'] if fit_harville else ['PLA']
116
116
 
117
117
  data = _fetch_live_odds(date, venue_code, race_number,
118
118
  odds_type=tuple(set(mandatory_types+odds_type)))
@@ -69,7 +69,7 @@ def generate_pareto_qp_trades(date: str, venue_code: str, race_number: int, reba
69
69
  Returns:
70
70
  pl.DataFrame: DataFrame with all Pareto trades and their metrics.
71
71
  """
72
- df = generate_all_qp_trades(date, venue_code, race_number, rebate, harville_fit=fit_harville)
72
+ df = generate_all_qp_trades(date, venue_code, race_number, rebate, fit_harville=fit_harville)
73
73
  pareto_df = _pareto_filter(df, groupby=groupby, by=[
74
74
  'WinProb', 'ExpValue'], maximize=True)
75
75
  return pareto_df
@@ -97,7 +97,7 @@ wheels = [
97
97
 
98
98
  [[package]]
99
99
  name = "hkjc"
100
- version = "0.3.5"
100
+ version = "0.3.7"
101
101
  source = { editable = "." }
102
102
  dependencies = [
103
103
  { name = "cachetools" },
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