1.3 KiB
1.3 KiB
Meme Generator Project
Overview
The goal of this project is to build a "meme generator" – a multimedia application to dynamically generate memes, including an image with an overlaid quote.
Set up environment
$ sudo apt-get install -y xpdf
$ pip install -r requirements.txt
Run program
Python test
Usage: python3 meme.py --path [image_path] --body [quote_body] --author [quote_author]
$ mkdir tmp
$ python3 meme.py
Flask test
$ mkdir static
$ python3 app.py
Open link http://127.0.0.1:5000 in web browser
Primary modules
QuoteEngine: Meme engine module for handling the generation of meme images.
MemeEngine: QuoteModel module for representing a quote with its body and author.
Sub modules
CSVIngestor: Module for ingesting CSV files containing quotes.
DocxIngestor: Module for ingesting Docx files containing quotes.
TextIngestor: Module for ingesting text files containing quotes.
PDFIngestor: Module for ingesting PDF files containing quotes.
Format checking
$ pip install docformatter
$ pip install autopep8
$ pip install black
$ pip install flake8
$ docformatter -i -r --wrap-summaries 79 --wrap-descriptions 79 .
$ autopep8 --in-place --recursive --aggressive .
$ black .
$ flake8 .