๐Ÿ“ฆ joemarshall / refgen

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/joemarshall/refgen.git
HTTPS git clone https://github.com/joemarshall/refgen.git
SSH git clone git@github.com:joemarshall/refgen.git
CLI gh repo clone joemarshall/refgen
Joe Marshall Joe Marshall ui fixes bc8e76c 9 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“„ .gitignore
๐Ÿ“„ pyproject.toml
๐Ÿ“„ README.md
๐Ÿ“„ refgenerator.py
๐Ÿ“„ README.md

Installation

Install with pip, i.e. clone the git to some_dir/refgen and run pip some_dir/refgen

Usage

You need a docx file called reference_template.docx in the current folder, then type refgen.

Add a reference letter, then once you've done that, select it on the main screen and hit enter (or 'generate') and you should have a .docx (whatever platform) and a .pdf (windows only) in the current folder. If anyone wants to submit a PR for mac/linux support you're welcome!

Template format

The template document is a normal word docx file, with tags embedded directly into the text. The tags use Jinja tags which mean you can do things like conditionals depending on whether the student is currently studying or has finished.

Tags are:

tagmeaning
studentnameThe name of the student
refdateThe date on the reference letter
howknownA sentence to say how you know the student
startdateThe start date of the student's studies
enddateThe end date of the student's studies
hasendIf this is false, the student is still studying
recommendation_textThe text recommending the student
targetA target job / university / whatever the student is applying for
I use Jinja rather than word templates because it makes it easier to do e.g. conditionals.

This is to confirm that they {% if has_end %} studied Computer Science
 at the University of Nottingham from {{ start_date }} until {{ end_date }}
{% else %} have been a student of Computer Science at the University of Nottingham
 since {{ start_date }}{% endif %}