Neckbeard is a lightweight and easy to use GIF meme generator built for Python3 application implementation.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Python 3.7+ is required to run this application and the Imagemagick application, other than that there are no other prerequisites for the project, as the dependencies are included in the repository.
To install the library is as simple as cloning the repository and running
pip install -e .
It is recommended to create an virtual environment prior to installing this library. Alternatively, you can also install this library via Pip:
pip install anonfile
Run unit tests locally:
pytest --verbosity=2 -s [--token "REDACTED"]
Add the -k test_*
option if you want to test only a single function.
Import the module and instantiate the Neckbeard()
constructor with the image path as
a parameter. Set your meme text, positioning, and color. Then call the process method
to generate your new meme!
from neckbeard import Neckbeard
# create meme from existing GIF
nb = Neckbeard('/home/ghost/Pictures/olaf.gif')
nb.top("tfw you have something important to do")
nb.bottom("but you don't care")
# process the new meme
nb.tip_fedora()
# create GIF meme from mp4
nb = Neckbeard(path='/home/ghost/Videos/wACDCVwsgGSS.mp4', start_time=(8, 52.0), end_time=(9, 15.0))
nb.top("tfw you have something important to do")
nb.bottom("but you don't care")
# process the new meme
nb.tip_fedora()
# get help
neckbeard --help
# simple generate a meme
neckbeard --top "tfw you have something important to do" --bottom "but you just dgaf" --file /home/ghost/olaf_playing_nose.gif
- moviepy - Python module for video editing
Navigate to tags on this repository to see all available versions.
Name | Mail Address | GitHub Profile |
---|---|---|
Nicholas Strydom | nstrydom@gmail.com | nstrydom2 |
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for more details.
- Joseph Marie Jacquard
- Charles Babbage
- Ada Lovelace
- My Dad
- Hat tip to anyone whose code was used
- Inspiration
- etc