spells-mtg 0.0.2__tar.gz → 0.0.5__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.

@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spells-mtg
3
- Version: 0.0.2
3
+ Version: 0.0.5
4
4
  Summary: analaysis of 17Lands.com public datasets
5
5
  Author-Email: Joel Barnes <oelarnes@gmail.com>
6
6
  License: MIT
7
- Requires-Python: >=3.10
7
+ Requires-Python: >=3.11
8
8
  Requires-Dist: polars>=1.14.0
9
9
  Requires-Dist: wget>=3.2
10
10
  Description-Content-Type: text/markdown
@@ -9,9 +9,9 @@ dependencies = [
9
9
  "polars>=1.14.0",
10
10
  "wget>=3.2",
11
11
  ]
12
- requires-python = ">=3.10"
12
+ requires-python = ">=3.11"
13
13
  readme = "README.md"
14
- version = "0.0.2"
14
+ version = "0.0.5"
15
15
 
16
16
  [project.license]
17
17
  text = "MIT"
@@ -30,9 +30,7 @@ def data_home() -> str:
30
30
  "SPELLS_DATA_HOME",
31
31
  os.environ.get(
32
32
  "XDG_DATA_HOME",
33
- r"C:\Users\$USERNAME\AppData\Local\Spells"
34
- if is_win
35
- else "~/.local/share/spells/",
33
+ r"~\AppData\Local\Spells" if is_win else "~/.local/share/spells/",
36
34
  ),
37
35
  )
38
36
  )
@@ -88,7 +88,9 @@ def card_df(draft_set_code: str, names: list[str]) -> pl.DataFrame:
88
88
  return pl.DataFrame(
89
89
  [
90
90
  {
91
- field: _extract_value(draft_set_code, name, card_data_map[name], field)
91
+ field: _extract_value(
92
+ draft_set_code, name, card_data_map.get(name, {}), field
93
+ )
92
94
  for field in CardAttr
93
95
  }
94
96
  for name in names
@@ -264,7 +264,9 @@ def download_data_set(
264
264
  )
265
265
  print()
266
266
 
267
- cache.spells_print(mode, "Unzipping and transforming to parquet...")
267
+ cache.spells_print(
268
+ mode, "Unzipping and transforming to parquet (this might take a few minutes)..."
269
+ )
268
270
  _process_zipped_file(dataset_path, target_path)
269
271
  cache.spells_print(mode, f"File {target_path} written")
270
272
  if clear_set_cache:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes