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.

✨ 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.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.5.0-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snacktime-0.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 c06f9c391c060cbff85ce6e07cbda594fe1d02b65891687da9d4495541d1660d
MD5 a17d0bec04fd1a69b7d71b9f0aefb3a8
BLAKE2b-256 82593d55827c3ff97fc89e92bf3e323d3fe45dbef1839e59c99d0ecf41017951

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snacktime-0.5.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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 387b034763fe030b009ed342715e598242509e4d6dac04ad052921e46dd86dc2
MD5 d1bf3c0cc4aafc11bb59443657330b8b
BLAKE2b-256 16c374b0fa8598cb5355dafbd026052d4c3179e0f403bfdba51028eb8489d3b5

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