Created
November 24, 2025 14:06
-
-
Save travishathaway/f89c0dd1ebaa349db7f334989c64b2c2 to your computer and use it in GitHub Desktop.
Thanksgiving Dinner Served with Python and Conda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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