decksmith 0.1.7__py3-none-any.whl → 0.1.8__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.
decksmith/card_builder.py CHANGED
@@ -32,6 +32,9 @@ class CardBuilder:
32
32
  self.card = Image.new("RGBA", (width, height), bg_color)
33
33
  self.draw = ImageDraw.Draw(self.card, "RGBA")
34
34
  self.element_positions = {}
35
+ # Store position if id is provided
36
+ if "id" in spec:
37
+ self.element_positions[self.spec["id"]] = (0, 0, width, height)
35
38
 
36
39
  def _calculate_absolute_position(self, element: dict) -> tuple:
37
40
  """
decksmith/validate.py CHANGED
@@ -75,6 +75,7 @@ SPECS_FOR_TYPE = {
75
75
  }
76
76
 
77
77
  CARD_SPEC = {
78
+ "?*id": "<?str>",
78
79
  "*width": "<?int>",
79
80
  "*height": "<?int>",
80
81
  "?*background_color": ["<?int>"],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: decksmith
3
- Version: 0.1.7
3
+ Version: 0.1.8
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
@@ -1,13 +1,13 @@
1
1
  decksmith/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- decksmith/card_builder.py,sha256=dwM7MOoTQfvJYDLgskzJkWzfeZAPJhSDz9gBLr6qOe0,25374
2
+ decksmith/card_builder.py,sha256=oXD6XvtbNaUW-WF47v6y7GjIyg_g2giu4SEEEqq8D_c,25521
3
3
  decksmith/deck_builder.py,sha256=8YK4ds51-z9f-BUyQ8jyh15BY9f16UQBYFI6Z87yFfU,3415
4
4
  decksmith/export.py,sha256=aMMoGdBDQ-Gr4QJ_ziiV3F673kEyXzM0phVq14uDDJg,6225
5
5
  decksmith/main.py,sha256=AzDq1aXziQmYz2IWdWSoBFskUeAXfOmcfYnIQUNIYp0,3357
6
6
  decksmith/templates/deck.csv,sha256=pNJebNxoDIfM8m0-aj05YrANHih1BTKOMry1kspIpPI,462
7
7
  decksmith/templates/deck.json,sha256=BTTnmaFP5AkbbC_B7uMF6R4bOM7JizW6EATcsjjJrT4,695
8
8
  decksmith/utils.py,sha256=XKSapVB1_zZvYcl3LgZcHAob4Pk5HUT9AnlAQBAdeTs,2833
9
- decksmith/validate.py,sha256=86mxEFC9Bvdh7zvgtsatw9Ry6f01WZcQTrVVOK1eMNg,3427
10
- decksmith-0.1.7.dist-info/entry_points.txt,sha256=-usRztjj2gnfmPubb8nFYHD22drzThAmSfM6geWI98Y,48
11
- decksmith-0.1.7.dist-info/METADATA,sha256=sh1QC3Jh8dE8Af_fIkoSO-UFsc8QiNI2MGLfk5wB4ZE,2419
12
- decksmith-0.1.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
13
- decksmith-0.1.7.dist-info/RECORD,,
9
+ decksmith/validate.py,sha256=W7BzB2LEw6WojJX7DGPQiqEiMCz7r0TIi5NJU3Wym6s,3450
10
+ decksmith-0.1.8.dist-info/entry_points.txt,sha256=-usRztjj2gnfmPubb8nFYHD22drzThAmSfM6geWI98Y,48
11
+ decksmith-0.1.8.dist-info/METADATA,sha256=SIlCh-pJy-d2hZi-lNrLd-KaNeqeelYXp159FSC3MEM,2419
12
+ decksmith-0.1.8.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
13
+ decksmith-0.1.8.dist-info/RECORD,,