spells-mtg 0.11.6__py3-none-any.whl → 0.11.7__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.

Potentially problematic release.


This version of spells-mtg might be problematic. Click here for more details.

spells/card_data_files.py CHANGED
@@ -18,12 +18,6 @@ DECK_COLOR_DATA_TEMPLATE = (
18
18
  "{user_group_param}&start_date={start_date_str}&end_date={end_date_str}&combine_splash=true"
19
19
  )
20
20
 
21
- START_DATE_MAP = {
22
- "DFT": dt.date(2025, 2, 11),
23
- "TDM": dt.date(2025, 4, 8),
24
- "FIN": dt.date(2025, 6, 10),
25
- }
26
-
27
21
  ratings_col_defs = {
28
22
  ColName.NAME: pl.col("name").cast(pl.String),
29
23
  ColName.COLOR: pl.col("color").cast(pl.String),
@@ -59,16 +53,11 @@ deck_color_col_defs = {
59
53
 
60
54
  def deck_color_df(
61
55
  set_code: str,
56
+ start_date: dt.date,
57
+ end_date: dt.date,
62
58
  format: str = "PremierDraft",
63
59
  player_cohort: str = "all",
64
- start_date: dt.date | None = None,
65
- end_date: dt.date | None = None,
66
60
  ):
67
- if start_date is None:
68
- start_date = START_DATE_MAP[set_code]
69
- if end_date is None:
70
- end_date = dt.date.today() - dt.timedelta(days=1)
71
-
72
61
  target_dir, filename = cache.deck_color_file_path(
73
62
  set_code,
74
63
  format,
@@ -120,17 +109,12 @@ def deck_color_df(
120
109
 
121
110
  def base_ratings_df(
122
111
  set_code: str,
112
+ start_date: dt.date,
113
+ end_date: dt.date,
123
114
  format: str = "PremierDraft",
124
115
  player_cohort: str = "all",
125
116
  deck_colors: str | list[str] = "any",
126
- start_date: dt.date | None = None,
127
- end_date: dt.date | None = None,
128
117
  ) -> pl.DataFrame:
129
- if start_date is None:
130
- start_date = START_DATE_MAP[set_code]
131
- if end_date is None:
132
- end_date = dt.date.today() - dt.timedelta(days=1)
133
-
134
118
  if isinstance(deck_colors, str):
135
119
  deck_colors = [deck_colors]
136
120
 
spells/config.py CHANGED
@@ -1,4 +1,5 @@
1
1
  all_sets = [
2
+ "FIN",
2
3
  "TDM",
3
4
  "DFT",
4
5
  "PIO",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spells-mtg
3
- Version: 0.11.6
3
+ Version: 0.11.7
4
4
  Summary: analaysis of 17Lands.com public datasets
5
5
  Author-Email: Joel Barnes <oelarnes@gmail.com>
6
6
  License: MIT
@@ -3,10 +3,10 @@ spells/.ruff_cache/0.8.6/17785301476771359756,sha256=gPYLG8psuOSo37IefLzTu5wgRrb
3
3
  spells/.ruff_cache/CACHEDIR.TAG,sha256=WVMVbX4MVkpCclExbq8m-IcOZIOuIZf5FrYw5Pk-Ma4,43
4
4
  spells/__init__.py,sha256=0pnh2NLn9FrNKncE9-tBsighp3e8YAsN--_ovUpgWGs,333
5
5
  spells/cache.py,sha256=6cl0q62erR3LCANPSfxG5-J7JQfLwNdWjzlBpfiL4IE,7174
6
- spells/card_data_files.py,sha256=k9NcYLgK5vdqLfM_VZ0XMnNGWBO-IloocDXg5J8bO-s,6526
6
+ spells/card_data_files.py,sha256=uEYVmyqIrMwVKTX2HAr8rEZi3WpW3uPzv_6TcZzPQDQ,6036
7
7
  spells/cards.py,sha256=6stFPhJOzHqvQnkSv9cDeylRa_7L9Y8sOaowiZhzz6I,4174
8
8
  spells/columns.py,sha256=s_PYyg2QaRL6kLWFNKCBEfbMF0x7O7-Yd9SeG1ttYL4,18206
9
- spells/config.py,sha256=zpRUZ-6JKALE149L0yfeD1AgqKPaVBGHfD_TdHi-jqE,235
9
+ spells/config.py,sha256=CVE2O-ZPgthbSqAB7Pul2yeFcyLHpL52OiXH7s9yl48,246
10
10
  spells/draft_data.py,sha256=EC7TCAlrWWhDFQtGx6ie-SBTNvdsoPNef7oZ0w9TSW0,21012
11
11
  spells/enums.py,sha256=gbwfon6tQCoKDb-m4hSaHWi9slj82yqaH3qhYMVrsck,4991
12
12
  spells/extension.py,sha256=LBqGbJbe7iSRQkxJK7npkADCfzhdnIwwVvlmTn8xvjQ,8454
@@ -16,8 +16,8 @@ spells/log.py,sha256=3avmg65hru8K9npKLvPp1wWWxq-hoEYDUCbxqhPkKUw,2175
16
16
  spells/manifest.py,sha256=ExWVk17BRw615UmvrV817xwz457yfTNdNMNE_M00aEg,8338
17
17
  spells/schema.py,sha256=DbMvV8PIThJTp0Xzp_XIorlW6JhE1ud1kWRGf5SQ4_c,6406
18
18
  spells/utils.py,sha256=IO3brrXVvZla0LRTEB5v6NgGqZb_rYA46XtKBURGMNk,1944
19
- spells_mtg-0.11.6.dist-info/METADATA,sha256=X6UVl1fVGPdadQffDujjgizXMPINGPixenDm3mTfVKU,47369
20
- spells_mtg-0.11.6.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
21
- spells_mtg-0.11.6.dist-info/entry_points.txt,sha256=a9Y1omdl9MdnKuIj3aOodgrp-zZII6OCdvqwgP6BFvI,63
22
- spells_mtg-0.11.6.dist-info/licenses/LICENSE,sha256=tS54XYbJSgmq5zuHhbsQGbNQLJPVgXqhF5nu2CSRMig,1068
23
- spells_mtg-0.11.6.dist-info/RECORD,,
19
+ spells_mtg-0.11.7.dist-info/METADATA,sha256=odFdI4bYRUnk_aiFFnl0nEE5XNTOGwq-scbQ2dCFbjU,47369
20
+ spells_mtg-0.11.7.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
21
+ spells_mtg-0.11.7.dist-info/entry_points.txt,sha256=a9Y1omdl9MdnKuIj3aOodgrp-zZII6OCdvqwgP6BFvI,63
22
+ spells_mtg-0.11.7.dist-info/licenses/LICENSE,sha256=tS54XYbJSgmq5zuHhbsQGbNQLJPVgXqhF5nu2CSRMig,1068
23
+ spells_mtg-0.11.7.dist-info/RECORD,,