carpentries / carpentries/learner-certificates

Combining jinja2 method with CSV learner data

Open
#5 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Can you clarify whether (and how) to it's possible to use csv input to create multiple learner certificates from a CSV file from the command line? I can get a single certificate with:
`jinja2 swc-attendance.svg -D name="Learner Name" -D date="August 9, 2022" -D instructor="Instructor Name" > test.svg`

...but that requires specifying each learner individually. I've been unable to successful use the python script directly with cairo2.

If I have a csv specified per line 32 in `certificates.py` is there a way to adapt the command line input above to use that CSV? Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.