#!/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()