Giter Site home page Giter Site logo

randomrecipepicker's Introduction

RandomRecipePicker

display random recipe using a GUI Tkinter application, SQLite3 and RecipeDB

thumbnail_Tkinter2

Watch on YouTube

This repository was created for my Tkinter GUI YouTube tutorial:
https://youtu.be/5qOnzF7RsNA

author: Mariya Sha

dependencies:
  • Tkinter
  • Pillow (PIL)
  • NumPy
  • Pyglet (optional: used for Windows custom fonts)

database webscraped from:
https://cosylab.iiitd.edu.in/recipedb/
using MechanicalSoup and SQLite

find out how you can webscrape your own database with those libraries
by following this tutorial of mine: https://youtu.be/MkGQmZoMuRM

Project Directories

the following directories require a detailed overview:

starter_files

this directory contains the starter files required to follow my YouTube tutorial.

  • 2 logos inside the assets folder
  • 2 .ttf fonts inside the fonts folder (downloaded from Google Fonts)
  • 1 database file inside the data folder
  • 1 .png wireframe inside the root folder.
  • 1 .py file inside the root folder containing the most basic commands to run a Tkinter window.

complete_project_WINDOWS

this directory contains the complete application, created by following the YouTube tutorial.
as this app uses custom fonts, it's suitable for Windows users only.
an non-OS-dependant version of this project will be uploaded shortly.
in addition to all the files specified in starter_files, this directory contains:

  • requirements.txt generated by "pip freeze"
  • requirements_conda.txt generated by "conda list" especially for Anaconda users

please note! I've added some horizontal padding with padx=25 both for the title and ingredients.
everything else is a 100% match to the code presented in the tutorial (+ helpful comments)

relationalDB_complete_project_WINDOWS

this directory contains the updated application (January, 2023)
designed with a relational database rather than the database that was shown in the YouTube tutorial.
recipes.db now contains 2 tables:

  • recipes (includes a primary_key column)
  • ingredients (foreign key: recipe_key)

as a result, 2 functions were slightly modified:

  • fetch_db()
  • pre_process(recipe_name, table_records)

app

randomrecipepicker's People

Contributors

mariyasha avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.