spells-mtg 0.11.6__tar.gz → 0.11.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.

Potentially problematic release.


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

Files changed (25) hide show
  1. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/PKG-INFO +1 -1
  2. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/pyproject.toml +1 -1
  3. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/card_data_files.py +4 -20
  4. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/config.py +1 -0
  5. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/LICENSE +0 -0
  6. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/README.md +0 -0
  7. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/.ruff_cache/.gitignore +0 -0
  8. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/.ruff_cache/0.8.6/17785301476771359756 +0 -0
  9. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/.ruff_cache/CACHEDIR.TAG +0 -0
  10. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/__init__.py +0 -0
  11. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/cache.py +0 -0
  12. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/cards.py +0 -0
  13. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/columns.py +0 -0
  14. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/draft_data.py +0 -0
  15. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/enums.py +0 -0
  16. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/extension.py +0 -0
  17. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/external.py +0 -0
  18. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/filter.py +0 -0
  19. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/log.py +0 -0
  20. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/manifest.py +0 -0
  21. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/schema.py +0 -0
  22. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/spells/utils.py +0 -0
  23. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/tests/__init__.py +0 -0
  24. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/tests/filter_test.py +0 -0
  25. {spells_mtg-0.11.6 → spells_mtg-0.11.7}/tests/utils_test.py +0 -0
@@ -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
@@ -11,7 +11,7 @@ dependencies = [
11
11
  ]
12
12
  requires-python = ">=3.11"
13
13
  readme = "README.md"
14
- version = "0.11.6"
14
+ version = "0.11.7"
15
15
 
16
16
  [project.license]
17
17
  text = "MIT"
@@ -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
 
@@ -1,4 +1,5 @@
1
1
  all_sets = [
2
+ "FIN",
2
3
  "TDM",
3
4
  "DFT",
4
5
  "PIO",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes