Skip to main content

CLI that gives a random snack, a simple salad recipe, a random vegetable, or a sweet treat.

Project description

🥗 snacktime

Build & Tests
Python 3.09 Python 3.09
Python 3.10 Python 3.10
Python 3.11 Python 3.11

A lightweight and fun Python package that helps you pick a random snack, vegetable, sweet treat, or even generate a simple salad recipe.
Originally created as part of the Software Engineering Fall 2025 team project — this package demonstrates Python packaging, publishing, and CI automation.


📦 PyPI Project

🔗 Link: https://pypi.org/project/snacktime/0.3.0/
📦 Latest version: 0.3.0


🚀 Installation

You can install directly from PyPI using pip:

pip install snacktime==0.3.0

🧩 Usage

Once installed, simply import and call any of the available functions:

import snacktime

print(snacktime.random_snack())
print(snacktime.random_vegetable())
print(snacktime.random_treat())
print(snacktime.recipe_salad(serves=2, dressing="balsamic"))

🧾 Example Output

granola bar
spinach
cupcake

Simple Green Salad
Serves: 2

Ingredients
-----------
- 4 cups mixed greens
- 2 cups chopped vegetables (e.g., cucumber, tomato, carrot)
- 4 tbsp nuts or seeds (optional)
- Salt & pepper to taste
- Dressing: 4 tbsp olive oil, 2 tbsp balsamic vinegar, pinch of salt

Steps
-----
1) Toss greens and chopped veggies in a bowl.
2) Whisk dressing separately, then drizzle over salad.
3) Sprinkle nuts/seeds. Season with salt & pepper. Toss and serve.

✨ Features

  • 🍎 random_snack() — pick a random healthy or quick snack
  • 🥦 random_vegetable() — choose a random vegetable
  • 🍩 random_treat() — get a random dessert idea
  • 🥗 recipe_salad() — generate a simple, customizable salad recipe

👥 Team Solace


🧠 Notes

  • Tested with Python 3.9+ on macOS.
  • All random functions can be made deterministic with a seed argument.
    snacktime.random_snack(seed=42)
    
  • Supports CLI and programmatic use.

🧑‍💻 Project Details

Field Description
Package Name snacktime
Version 0.3.0
Author Team Solace
License GPL 3.0
Language Python 3.9+
PyPI Page https://pypi.org/project/snacktime/0.3.0/

🥳 Credits

Developed by Team Solace for Software Engineering (Fall 2025)
as part of the Python Package exercise.
This project demonstrates collaboration, testing, automation, and packaging best practices.


Enjoy your snacks and code responsibly,thank you! 🍪🥗🍫

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snacktime-0.4.0.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snacktime-0.4.0-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file snacktime-0.4.0.tar.gz.

File metadata

  • Download URL: snacktime-0.4.0.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for snacktime-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b200c47e92332e3e9307e34e1e96e5ebbb8a2b8c3f4cd528f348571f9b1dfb07
MD5 edf263eb0604e637ba6db0a3c1bbe511
BLAKE2b-256 5eff619ba5c4d4314b9693a9a89b59af33f5c424963b02d219d87c25744c6308

See more details on using hashes here.

File details

Details for the file snacktime-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: snacktime-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for snacktime-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4a333eec6a11bd9f8001ccd18c47862741c39e0c1daacaeba327bb8b48dd867
MD5 bc19a96a82886cc3435829f2a75fb627
BLAKE2b-256 8fc479d6f749cf79a00c04fb9202881fed8ecca9f7b2dbedb48bd10515121ea6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page