hkjc 0.3.11__tar.gz → 0.3.13__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.11
3
+ Version: 0.3.13
4
4
  Summary: Library for scrapping HKJC data and perform basic analysis
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: beautifulsoup4>=4.14.2
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "hkjc"
3
- version = "0.3.11"
3
+ version = "0.3.13"
4
4
  description = "Library for scrapping HKJC data and perform basic analysis"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -7,7 +7,7 @@ import polars as pl
7
7
  from bs4 import BeautifulSoup
8
8
  from cachetools.func import ttl_cache
9
9
 
10
- from utils import _validate_date, _validate_venue_code, _parse_html_table
10
+ from .utils import _validate_date, _validate_venue_code, _parse_html_table
11
11
 
12
12
  HKJC_RACE_URL_TEMPLATE = "https://racing.hkjc.com/racing/information/English/Racing/LocalResults.aspx?RaceDate={date}&Racecourse={venue_code}&RaceNo={race_number}"
13
13
  HKJC_HORSE_URL_TEMPLATE = "https://racing.hkjc.com/racing/information/English/Horse/Horse.aspx?HorseId={horse_id}"
@@ -45,7 +45,7 @@ def generate_historical_data(start_date: str, end_date: str) -> pl.DataFrame:
45
45
 
46
46
  dfs = []
47
47
 
48
- for date in pl.date_range(start_dt, end_dt, interval='1d'):
48
+ for date in pl.date_range(start_dt, end_dt, interval='1d', eager=True):
49
49
  for venue_code in ['ST', 'HV']:
50
50
  df = _historical_process_single_date_venue(date, venue_code)
51
51
  if df is None:
@@ -110,7 +110,7 @@ wheels = [
110
110
 
111
111
  [[package]]
112
112
  name = "hkjc"
113
- version = "0.3.11"
113
+ version = "0.3.13"
114
114
  source = { editable = "." }
115
115
  dependencies = [
116
116
  { name = "beautifulsoup4" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes