Note: You should pass your data in in
directory and your output file will be written to out
directory.
You should follow the template of input and output in the in
and out
directory.
A dockerfile is provided. You can build the container and run with the following instructions:
docker build -t classmates-pdf .
docker run --rm -v $(PWD)/in:/in -v $(PWD)/out:/out classmates-pdf
Prerequisite: python3
(test on python3.8
).
python3 -m pip install -r src/requirements.txt
: install dependency.python3 src/main.py
: run.
We also implement several things to connect with the Classmates projects:
redis
as a message queue.- Retrieve and upload data from MySQL Database.
- Upload pdf to cloud storage.
- Send email to notify users.
Feel free to modify python codes. You may need to pay attention to the licenses of the fonts.
Contact me on [email protected].