A command-line application to dynamically generate decks of cards from a JSON specification and a CSV data file, inspired by nandeck.
Project description
DeckSmith
A command-line application to dynamically generate decks of cards from a JSON specification and a CSV data file, inspired by nandeck.
DeckSmith is ideal for automating the creation of all kinds of decks, including TCG decks, tarot decks, business cards, and even slides.
Why DeckSmith?
- ✨ Consistent layout and formatting across all cards. Define once, edit anytime, generate as many cards as you need.
- 🍳 Pure python, with easy installation via pip.
- ⚡ Highly performant card generation using parallel processing.
- 📖 Intuitive syntax and extensive documentation with examples to help you get started quickly.
- 🧰 Tons of powerful features such as:
- Start from a sample project and edit it instead of starting from scratch
- Extensive support for images, text, and all kinds of different shapes
- Link any field to a column in the CSV file
- Position elements absolutely or relative to other elements, using anchors to simplify placement
- Powerful image transformations using filters like crop, resize, rotate, or flip
- Export your deck as images or as a PDF for printing
Getting started
-
First, install DeckSmith by running
pip install decksmith. -
Then, run
decksmith initto start from sampledeck.jsonanddeck.csvfiles. -
The
deck.jsonfile defines the layout for the cards in the deck, while thedeck.csvfile holds the data for each card.-
You can find a complete list of all the available elements you can use in the documentation.
-
Any column from the CSV can be referenced anywhere in the JSON as
%column_name%.
-
-
Finally, run
decksmith buildwhen you are ready to generate the deck images, and export them to PDF using thedecksmith exportcommand.
Documentation
Check out the full documentation for more detailed information on how to use DeckSmith.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file decksmith-0.1.14.tar.gz.
File metadata
- Download URL: decksmith-0.1.14.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3b7ec0e0b673d9f52542202d21be5c4c5744187118cd4cd7f3c6a621a7eb028
|
|
| MD5 |
36c175cdfb09642d3a7f9eea6c47ac68
|
|
| BLAKE2b-256 |
e404b507aa65725f708a11061b89e7cf08825f85502cb7380d41194bba3a5bf8
|
File details
Details for the file decksmith-0.1.14-py3-none-any.whl.
File metadata
- Download URL: decksmith-0.1.14-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
888008dc72af73c03d22125f735642a2af5792decfa263444521e735383d36ad
|
|
| MD5 |
a77b6e40553f3cf2835e9ddc15413ebe
|
|
| BLAKE2b-256 |
8a70b754fe621cb8cf86387ff66f5f6da362dcc69e8345100a63401cc31cb214
|