decksmith 0.1.0__py3-none-any.whl → 0.1.2__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/main.py CHANGED
@@ -25,9 +25,9 @@ def init():
25
25
  click.echo("(!) Project already initialized.")
26
26
  return
27
27
 
28
- with resources.path("templates", "deck.json") as template_path:
28
+ with resources.path("decksmith.templates", "deck.json") as template_path:
29
29
  shutil.copy(template_path, "deck.json")
30
- with resources.path("templates", "deck.csv") as template_path:
30
+ with resources.path("decksmith.templates", "deck.csv") as template_path:
31
31
  shutil.copy(template_path, "deck.csv")
32
32
 
33
33
  click.echo("(✔) Initialized new project from templates.")
@@ -0,0 +1,5 @@
1
+ title;description
2
+ Welcome to DeckSmith!;To get started, edit "deck.csv" to add new cards, or "deck.json" to change their structure.
3
+ Building the deck;Run "decksmith build" when you are ready to save the cards as images.
4
+ Exporting to PDF;You can create a printable PDF with "decksmith export --width 63.5 --height 88.9 output" after building.
5
+ Check out the guide;Visit "github.com/julynx/decksmith" to learn all the things you can do using DeckSmith. Enjoy!
@@ -0,0 +1,31 @@
1
+ {
2
+ "width": 250,
3
+ "height": 350,
4
+ "background_color": [200, 200, 200],
5
+ "elements": [
6
+ {
7
+ "id": "title",
8
+ "type": "text",
9
+ "position": [125, 25],
10
+ "anchor": "top-center",
11
+ "text": "%title%",
12
+ "color": [0, 0, 0],
13
+ "font_path": "arial.ttf",
14
+ "font_size": 20,
15
+ "align": "center"
16
+ },
17
+ {
18
+ "id": "description",
19
+ "type": "text",
20
+ "position": [0, 25],
21
+ "relative_to": ["title", "bottom-center"],
22
+ "anchor": "top-center",
23
+ "text": "%description%",
24
+ "color": [0, 0, 0],
25
+ "font_path": "arial.ttf",
26
+ "font_size": 16,
27
+ "width": 200,
28
+ "align": "center"
29
+ }
30
+ ]
31
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: decksmith
3
- Version: 0.1.0
3
+ Version: 0.1.2
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
@@ -42,5 +42,5 @@ DeckSmith is ideal for automating the creation of all kinds of decks, including
42
42
 
43
43
  ## Getting started
44
44
 
45
- To start creating decks, check out [Getting Started](DOCS.md/#getting-started).
45
+ To start creating decks, check out [Getting Started]([https://github.com/Julynx/decksmith/blob/main/docs/DOCS.md/#getting-started).
46
46
 
@@ -2,10 +2,12 @@ decksmith/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  decksmith/card_builder.py,sha256=rAUPKvto3no9BRxaBoWvaPl7lAbUd93q7yYCJqIx84g,25311
3
3
  decksmith/deck_builder.py,sha256=8YK4ds51-z9f-BUyQ8jyh15BY9f16UQBYFI6Z87yFfU,3415
4
4
  decksmith/export.py,sha256=aMMoGdBDQ-Gr4QJ_ziiV3F673kEyXzM0phVq14uDDJg,6225
5
- decksmith/main.py,sha256=w4oOTVzej2u_Ex6GLxFTgICbTJVYh0MB3w9-Y2i2ss4,3337
5
+ decksmith/main.py,sha256=AzDq1aXziQmYz2IWdWSoBFskUeAXfOmcfYnIQUNIYp0,3357
6
+ decksmith/templates/deck.csv,sha256=pNJebNxoDIfM8m0-aj05YrANHih1BTKOMry1kspIpPI,462
7
+ decksmith/templates/deck.json,sha256=BTTnmaFP5AkbbC_B7uMF6R4bOM7JizW6EATcsjjJrT4,695
6
8
  decksmith/utils.py,sha256=XKSapVB1_zZvYcl3LgZcHAob4Pk5HUT9AnlAQBAdeTs,2833
7
9
  decksmith/validate.py,sha256=mvWQd2c6SvoIe4r8z04SMdCqa0WyZKPq6lT_qZNUTbU,2830
8
- decksmith-0.1.0.dist-info/entry_points.txt,sha256=-usRztjj2gnfmPubb8nFYHD22drzThAmSfM6geWI98Y,48
9
- decksmith-0.1.0.dist-info/METADATA,sha256=UWEM7rwIKt-97oZuUz1HFTCQ3nGOELz2U7eIKI4rW5k,1619
10
- decksmith-0.1.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
11
- decksmith-0.1.0.dist-info/RECORD,,
10
+ decksmith-0.1.2.dist-info/entry_points.txt,sha256=-usRztjj2gnfmPubb8nFYHD22drzThAmSfM6geWI98Y,48
11
+ decksmith-0.1.2.dist-info/METADATA,sha256=cNi1g4s1pI9j6wH30IShL1WbjM6-FJRxpWkoNQV6ehQ,1671
12
+ decksmith-0.1.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
13
+ decksmith-0.1.2.dist-info/RECORD,,