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.
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/PKG-INFO +2 -2
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/pyproject.toml +2 -2
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/spells/cache.py +1 -3
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/spells/cards.py +3 -1
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/spells/external.py +3 -1
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/LICENSE +0 -0
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/README.md +0 -0
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/spells/__init__.py +0 -0
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/spells/columns.py +0 -0
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/spells/draft_data.py +0 -0
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/spells/enums.py +0 -0
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/spells/filter.py +0 -0
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/spells/manifest.py +0 -0
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/spells/schema.py +0 -0
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/tests/__init__.py +0 -0
- {spells_mtg-0.0.2 → spells_mtg-0.0.5}/tests/filter_test.py +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: spells-mtg
|
|
3
|
-
Version: 0.0.
|
|
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.
|
|
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
|
|
@@ -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"
|
|
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(
|
|
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(
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|