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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: decksmith
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: A command-line application to dynamically generate decks of cards from a JSON specification and a CSV data file, inspired by nandeck.
5
5
  License: GPL-2.0-only
6
6
  Author: Julio Cabria
@@ -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
- element["text"] = str(element["text"])
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.8"
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.8"
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