Two projects built from the Codédex tutorials, updated to work with today's libraries.
1. Create a GIF with Python 🎞️ — gif-maker/
Combines images into animated GIFs with imageio. Two scripts:
create_gif.py— the tutorial version: loads image files and stitches them intoteam.gifmake_f40_gif.py— the level-up: draws every frame with Pillow (an F40-style car at sunset in the mountains, headlights blinking), then stitches them the same way
Run it:
cd gif-maker
pip install -r requirements.txt
python make_f40_gif.py
2. Generate a Blog with OpenAI 📝 — blog-generator/
A terminal blog generator: you type a topic, the OpenAI API writes a paragraph. Uses the modern OpenAI SDK (the original 2022 tutorial code used text-davinci-002, which was retired), with the API key kept safely in a .env file.
Run it:
cd blog-generator
pip install -r requirements.txt
# create a .env file containing: API_KEY=sk-your-key
python blog_generator.py
The .env file is git-ignored on purpose — never commit your API key.
index.html in this repo is a showcase page of both projects — enable GitHub Pages (Settings → Pages → Deploy from a branch → main → root) and it goes live.
