decksmith 0.1.8__tar.gz → 0.1.9__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.
- {decksmith-0.1.8 → decksmith-0.1.9}/PKG-INFO +1 -1
- {decksmith-0.1.8 → decksmith-0.1.9}/decksmith/validate.py +6 -1
- {decksmith-0.1.8 → decksmith-0.1.9}/pyproject.toml +2 -2
- {decksmith-0.1.8 → decksmith-0.1.9}/decksmith/__init__.py +0 -0
- {decksmith-0.1.8 → decksmith-0.1.9}/decksmith/card_builder.py +0 -0
- {decksmith-0.1.8 → decksmith-0.1.9}/decksmith/deck_builder.py +0 -0
- {decksmith-0.1.8 → decksmith-0.1.9}/decksmith/export.py +0 -0
- {decksmith-0.1.8 → decksmith-0.1.9}/decksmith/main.py +0 -0
- {decksmith-0.1.8 → decksmith-0.1.9}/decksmith/templates/deck.csv +0 -0
- {decksmith-0.1.8 → decksmith-0.1.9}/decksmith/templates/deck.json +0 -0
- {decksmith-0.1.8 → decksmith-0.1.9}/decksmith/utils.py +0 -0
- {decksmith-0.1.8 → decksmith-0.1.9}/docs/README.md +0 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Python module for validating a dictionar
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
|
+
import pandas as pd
|
|
5
6
|
from jval import validate
|
|
6
7
|
|
|
7
8
|
ELEMENT_SPEC = {
|
|
@@ -121,5 +122,9 @@ def transform_card(card):
|
|
|
121
122
|
"""
|
|
122
123
|
for element in card.get("elements", []):
|
|
123
124
|
if element.get("type") == "text" and "text" in element:
|
|
124
|
-
|
|
125
|
+
if pd.isna(element["text"]):
|
|
126
|
+
element["text"] = None
|
|
127
|
+
else:
|
|
128
|
+
element["text"] = str(element["text"])
|
|
129
|
+
|
|
125
130
|
return card
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "decksmith"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.9"
|
|
4
4
|
description = "A command-line application to dynamically generate decks of cards from a JSON specification and a CSV data file, inspired by nandeck."
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "Julio Cabria", email = "juliocabria@tutanota.com"},
|
|
@@ -24,7 +24,7 @@ dev = [
|
|
|
24
24
|
|
|
25
25
|
[tool.poetry]
|
|
26
26
|
name = "decksmith"
|
|
27
|
-
version = "0.1.
|
|
27
|
+
version = "0.1.9"
|
|
28
28
|
description = "A command-line application to dynamically generate decks of cards from a JSON specification and a CSV data file, inspired by nandeck."
|
|
29
29
|
authors = ["Julio Cabria <juliocabria@tutanota.com>"]
|
|
30
30
|
license = "GPL-2.0-only"
|
|
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
|