Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codédex Python Projects 🐍

Two projects built from the Codédex tutorials, updated to work with today's libraries.

Ferrari F40 GIF

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 into team.gif
  • make_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.

Live demo

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages