hkjc 0.3.11__py3-none-any.whl → 0.3.13__py3-none-any.whl

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.
hkjc/historical.py CHANGED
@@ -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}"
hkjc/processing.py CHANGED
@@ -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:
@@ -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,13 +1,13 @@
1
1
  hkjc/__init__.py,sha256=TI7PVhmoWSvYX-xdTEdaT3jfY99LiYQFRQZaIwBhJd8,785
2
2
  hkjc/harville_model.py,sha256=MZjPLS-1nbEhp1d4Syuq13DtraKnd7TlNqBmOOCwxgc,15976
3
- hkjc/historical.py,sha256=P1eRRHzwhdQ4xR1xspj-HO1OyTSGZJDjJ-V5Sj8Pstg,6026
3
+ hkjc/historical.py,sha256=HRsy8O2NqJQ5Ljcs1ySppngL7kO0rqC49vkIKIDp1Do,6027
4
4
  hkjc/live_odds.py,sha256=G4ELBBp1d2prxye9kKzu2pwtS4vSfRPOmEuT7-Nd-3A,4741
5
- hkjc/processing.py,sha256=HeJmEyHe0JHO2V68dmm8eD9EIvjUUrFg2dhoYvYaik8,7064
5
+ hkjc/processing.py,sha256=pbEm5tGUpRPVdXbC5OMEI0n0lIsbg0y07wntpXZc8bg,7076
6
6
  hkjc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  hkjc/speedpro.py,sha256=Y2Z3GYGeePc4sM-ZnCHXCI1N7L-_j9nrMqS3CC5BBSo,2031
8
8
  hkjc/utils.py,sha256=4CA_FPf_U3GvzoLkqBX0qDPZgrSvKJKvbP7VWqd5FiA,6323
9
9
  hkjc/strategy/place_only.py,sha256=lHPjTSj8PzghxncNBg8FI4T4HJigekB9a3bV7l7VtPA,2079
10
10
  hkjc/strategy/qpbanker.py,sha256=MQxjwsfhllKZroKS8w8Q3bi3HMjGc1DAyBIjNZAp3yQ,4805
11
- hkjc-0.3.11.dist-info/METADATA,sha256=XxHC610mB4eZNVl5g_jGHBE1Rq5oW_VPXDzLwz0FR6k,452
12
- hkjc-0.3.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
- hkjc-0.3.11.dist-info/RECORD,,
11
+ hkjc-0.3.13.dist-info/METADATA,sha256=8liYFxWT3JqPZ6oC-WABK_mnpHedmuWsuIYD3q8PxR4,452
12
+ hkjc-0.3.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
+ hkjc-0.3.13.dist-info/RECORD,,
File without changes