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/


🚀 Installation

You can install directly from PyPI using pip:

pip install snacktime

🧩 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.

Or, if preferred, snacktime can be called from the command line once installed:

$ pipenv run snacktime snack
pretzels
$ pipenv run snacktime treat
churro
$ pipenv run snacktime vegetable
spinach
$ pipenv run snacktime recipe
Simple Green Salad
Serves: 2

Ingredients
----------
- 4 cups mixed greens
- 2 cup 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.

Make sure not to snack too much!


✨ 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 and Linux.
  • 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
Author Team Solace
License GPL 3.0
Language Python 3.9+
PyPI Page https://pypi.org/project/snacktime/

🥳 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.5.1.tar.gz (45.1 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.5.1-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for snacktime-0.5.1.tar.gz
Algorithm Hash digest
SHA256 8d79a99202b87fa56ada8ccd20a0124df462da567ae3a92d986a428489024dac
MD5 1a4cb9a789d592bf28f87fca9f1f8562
BLAKE2b-256 89237838287a290c0c181a0c601200017fe02223444dc13853a8c49274b1ba0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snacktime-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 30.3 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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 259838bd586b2950fbd856e9ecfe623d023b0fa6243f1328afd2d95261480ba3
MD5 518e1dae02bd29f2574c10f1f787a363
BLAKE2b-256 ebb477cf49fa04171f4958746b6c325a12a9e71f28d5a359e643a3e92d789ffc

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