A python script that automates the process of generating card-type graphics in svg format based on svgwrite.
Py-svg-card-gen is a kit for reading csv files and creating card-type graphics on predifined templates. There are two version included, a Cmd type App that has a prompt and can be used to test your settings and a class type script that can be used in your own scripts.
Launch a prompt that has the following commands:
Read csv file and print last item from lines
Read csv file and count items and print sum
Read csv file, define line of source to be used and print last item
Read csv file, define line of source to be used and create type one square 3x3 svg card
Read csv file, define line of source to be used and create type two square 3x3 svg card (text in the middle)
Read csv file, create type one svg cards for every line
Read csv file, create type two svg cards for every line, text in the middle
Quit this app
For this list of commands
build-in Cmd help
A script that has a class named card that gets 3 arguments:
data (csv file to read) data_row (line of csv file to read) filename (svg file output card)
and has 2 methods:
create type one svg cards from data_row
create type two svg cards from data_row
This Project needs Python 2.x and svgwrite installed.