decksmith 0.1.0__tar.gz → 0.1.2__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.0 → decksmith-0.1.2}/PKG-INFO +2 -2
- {decksmith-0.1.0 → decksmith-0.1.2}/decksmith/main.py +2 -2
- decksmith-0.1.2/decksmith/templates/deck.csv +5 -0
- decksmith-0.1.2/decksmith/templates/deck.json +31 -0
- {decksmith-0.1.0 → decksmith-0.1.2}/docs/README.md +1 -1
- {decksmith-0.1.0 → decksmith-0.1.2}/pyproject.toml +5 -5
- {decksmith-0.1.0 → decksmith-0.1.2}/decksmith/__init__.py +0 -0
- {decksmith-0.1.0 → decksmith-0.1.2}/decksmith/card_builder.py +0 -0
- {decksmith-0.1.0 → decksmith-0.1.2}/decksmith/deck_builder.py +0 -0
- {decksmith-0.1.0 → decksmith-0.1.2}/decksmith/export.py +0 -0
- {decksmith-0.1.0 → decksmith-0.1.2}/decksmith/utils.py +0 -0
- {decksmith-0.1.0 → decksmith-0.1.2}/decksmith/validate.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: decksmith
|
|
3
|
-
Version: 0.1.
|
|
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
|
|
|
@@ -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
|
+
}
|
|
@@ -20,4 +20,4 @@ DeckSmith is ideal for automating the creation of all kinds of decks, including
|
|
|
20
20
|
|
|
21
21
|
## Getting started
|
|
22
22
|
|
|
23
|
-
To start creating decks, check out [Getting Started](DOCS.md/#getting-started).
|
|
23
|
+
To start creating decks, check out [Getting Started]([https://github.com/Julynx/decksmith/blob/main/docs/DOCS.md/#getting-started).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "decksmith"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.2"
|
|
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,12 +24,15 @@ dev = [
|
|
|
24
24
|
|
|
25
25
|
[tool.poetry]
|
|
26
26
|
name = "decksmith"
|
|
27
|
-
version = "0.1.
|
|
27
|
+
version = "0.1.2"
|
|
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"
|
|
31
31
|
readme = "docs/README.md"
|
|
32
32
|
homepage = "https://github.com/Julynx/decksmith"
|
|
33
|
+
packages = [
|
|
34
|
+
{ include = "decksmith" },
|
|
35
|
+
]
|
|
33
36
|
|
|
34
37
|
[tool.poetry.dependencies]
|
|
35
38
|
python = ">=3.13"
|
|
@@ -47,9 +50,6 @@ where = ["."]
|
|
|
47
50
|
include = ["decksmith*", "test*"]
|
|
48
51
|
namespaces = false
|
|
49
52
|
|
|
50
|
-
[tool.setuptools.package-data]
|
|
51
|
-
decksmith = ["../templates/*"]
|
|
52
|
-
|
|
53
53
|
[project.scripts]
|
|
54
54
|
decksmith = "decksmith.main:cli"
|
|
55
55
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|