- Make sure you run
git init
to initialize an empty repo, or all the git commands from Python will fail - Use Paint or Photoshop or whatever to draw a design that fits into a 52x7 image, template provided in
template.png
- Update
main.py
to take the path of the image as an argument - Run
pip install -r requirements.txt
, or make sure you havepillow
installed - Run
main.py
- Add your git remote
git remote add <your_remote_link>
and pushgit push --set-upstream origin master
- Begin levitating a few inches of the ground due to your now overwhelming intellectual superiority
The script should handle generating the right number of commits on the right days, based on how dark each pixel in the original image is. I gotta be honest I didn't test this very extensively with anything other than black and white images (no gray values really) so it remains to be seen if those work very well.
Also you might run into trouble if it's a leap year. See the comment in main.py
. Good luck!