Skip to content

Instantly share code, notes, and snippets.

@travishathaway
Created November 24, 2025 14:06
Show Gist options
  • Select an option

  • Save travishathaway/f89c0dd1ebaa349db7f334989c64b2c2 to your computer and use it in GitHub Desktop.

Select an option

Save travishathaway/f89c0dd1ebaa349db7f334989c64b2c2 to your computer and use it in GitHub Desktop.
Thanksgiving Dinner Served with Python and Conda
#!/usr/bin/env python3
"""
πŸ¦ƒ Thanksgiving Dinner Demo πŸ¦ƒ
Because why cook a real Thanksgiving dinner when you can just...
run it with conda or pixi?
How to use?
With conda:
```
$ conda create -n dinner thanksgiving::thanksgiving-dinner conda-forge::python
$ conda activate dinner
$ python thanksgiving_demo.py
```
With pixi:
```
$ pixi exec -c thanksgiving -c conda-forge-sharded -s thanksgiving-dinner python thanksgiving_demo.py
```
"""
from thanksgiving_dinner import ThanksgivingDinner
def main():
# Step 1: Initialize your completely digital, zero-calorie feast
# (Your pants will thank you later)
print("🍽️ Initializing Thanksgiving dinner...")
print("=" * 50)
dinner = ThanksgivingDinner()
# Step 2: Tell the dinner how many imaginary guests you're hosting
# (We won't judge if it's just you and your cat)
guest_message = dinner.set_guest_count(12)
print(f"\nπŸ‘₯ {guest_message}")
# Step 3: Check out what's on the menu
# (Spoiler: Everything. This is America.)
print("\nπŸ“‹ Today's Menu:")
print("-" * 50)
menu = dinner.get_menu()
for category, items in menu.items():
print(f"\n{category}:")
for item in items:
print(f" β€’ {item}")
# Step 4: Time to prepare the turkey!
# (The most stressful part, but at least this one won't dry out)
print("\n" + "=" * 50)
print("\nπŸ¦ƒ PREPARING THE TURKEY...")
turkey_status = dinner.prepare_turkey()
print(f"βœ“ {turkey_status}")
# Step 5: Tackle those side dishes
# (Because what's Thanksgiving without 47 different sides?)
print("\nπŸ₯” PREPARING SIDES...")
sides_status = dinner.prepare_sides()
for status in sides_status:
print(f"βœ“ {status}")
# Step 6: The desserts (the REAL reason we're here)
# (Three types of pie is the minimum legally required for Thanksgiving)
print("\nπŸ₯§ PREPARING DESSERTS...")
dessert_status = dinner.prepare_desserts()
print(f"βœ“ {dessert_status}")
# Step 7: Is everything ready?
# (Please say yes, we're starving)
print("\n" + "=" * 50)
if dinner.is_ready():
print("βœ“ Everything is ready!")
else:
print("⏳ Still cooking... patience, young grasshopper")
# Step 8: DINNER TIME!
# (The moment we've all been waiting for)
print(f"\nπŸŽ‰ {dinner.serve()}")
# Step 9: Give thanks
# (Because your relatives will ask you to at the table)
print(f"\nπŸ™ {dinner.give_thanks()}")
# Step 10: The best part of Thanksgiving...
# (Fight me on this, I dare you)
print(f"\nπŸ₯ͺ {dinner.start_leftovers_mode()}")
print("\n" + "=" * 50)
print("✨ Thanksgiving dinner complete! No dishes to wash! ✨")
print("πŸ’» May your code be bug-free and your turkey be moist! πŸ¦ƒ")
if __name__ == "__main__":
# Let's get this carb party started! πŸŽ‰
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment