spells-mtg 0.0.3__py3-none-any.whl → 0.0.5__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/cache.py CHANGED
@@ -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
  )
spells/cards.py CHANGED
@@ -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.get(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
spells/external.py CHANGED
@@ -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 (this might take a few minutes)...")
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spells-mtg
3
- Version: 0.0.3
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
@@ -1,15 +1,15 @@
1
1
  spells/__init__.py,sha256=EcI7ijXYvPA8jj7wUZqs6CSWr__MD8AOXhkex-Hj37E,131
2
- spells/cache.py,sha256=9ij8nIoYlyGY0W-WcYHmWA9AT1jCYmRcXw23RDS7xSE,3005
3
- spells/cards.py,sha256=2JLwCY7b2vrLeuzBCctqp-dcQbctgXkuiWebv_rVQ5w,3153
2
+ spells/cache.py,sha256=4v7h8D3TtaT0R_EdiRNhdcQrXzdH_CukezO6oAXvNEY,2956
3
+ spells/cards.py,sha256=CP8f3rUBuFQlj6xj2W72-mDQPuzozEcMu3PkRtBeX1Q,3191
4
4
  spells/columns.py,sha256=BEYKDpZYkRgV1kBqIq6XC6kXvVjOih7jGthIpy-YVSw,23339
5
5
  spells/draft_data.py,sha256=xoGn6QGaAKgIInEzi2pnvk4CH5xNrwYq4mAj3r07GfA,9272
6
6
  spells/enums.py,sha256=Idpv17rCAHDF5bENU8I8V0rpL9W5KB2GM6lhrN4GunU,4447
7
- spells/external.py,sha256=Yke-ZcoJ425pBdx8xmiqJ3RVNoexIjBWepCjp7e5tjQ,10246
7
+ spells/external.py,sha256=Apv_l32swO9bF8ihWV73cd7zpzHgxqFy8ZZa1n3XUUE,10260
8
8
  spells/filter.py,sha256=J-YTOOAzOQpvIX29tviYL04RVoOUlfsbjBXoQBDCEdQ,3380
9
9
  spells/manifest.py,sha256=XEJwwYJzOEWrQQwka39F9SgZo38hH_Kj4MPY7GOuLvY,6903
10
10
  spells/schema.py,sha256=z8Qn2SiHG4T6YfPsz8xHLGMjU_Ofm76-Vrquh3b9B64,6422
11
- spells_mtg-0.0.3.dist-info/METADATA,sha256=s8poWzjlhctbD9wDXPZ7K2lDYDcTjNgoBuEoLnTAegI,40918
12
- spells_mtg-0.0.3.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
13
- spells_mtg-0.0.3.dist-info/entry_points.txt,sha256=a9Y1omdl9MdnKuIj3aOodgrp-zZII6OCdvqwgP6BFvI,63
14
- spells_mtg-0.0.3.dist-info/licenses/LICENSE,sha256=tS54XYbJSgmq5zuHhbsQGbNQLJPVgXqhF5nu2CSRMig,1068
15
- spells_mtg-0.0.3.dist-info/RECORD,,
11
+ spells_mtg-0.0.5.dist-info/METADATA,sha256=2vVu-vT2tl0Sq-A4E10uOXl2io56NSFNnIiLtPeA3yg,40918
12
+ spells_mtg-0.0.5.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
13
+ spells_mtg-0.0.5.dist-info/entry_points.txt,sha256=a9Y1omdl9MdnKuIj3aOodgrp-zZII6OCdvqwgP6BFvI,63
14
+ spells_mtg-0.0.5.dist-info/licenses/LICENSE,sha256=tS54XYbJSgmq5zuHhbsQGbNQLJPVgXqhF5nu2CSRMig,1068
15
+ spells_mtg-0.0.5.dist-info/RECORD,,