Code Monkey home page Code Monkey logo

cookbook-importer's Introduction

Cookbook Importer

Provides a simple UI for entering a recipe and formatting it into a format acceptable to import into Paprika Recipe Manager.

Usage

Saving a Recipe

To open the UI for entering a single recipe:

$ export FLASK_APP=app.py
$ export FLASK_ENV=development
$ export FLASK_DEBUG=0
$ flask run
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
  • this writes the recipe to a subfolder named ./cookbook

Combining for Import

To aggregate all recipes into a single file for importing into Paprika, run aggregate.py.

Features

  • Numbers the steps under directions.
  • Converts fractional amounts to vulgar fractions (e.g. 1/4 -> ΒΌ).
  • Cleans out any extraneous whitespace in all fields.

Example Output Format

Documented here: https://www.paprikaapp.com/help/mac/#importrecipes

Note: not all fields are actually presented in the UI but can be easily added.

name: My Tasty Recipe
servings: 4-6 servings
source: Food Network
source_url: http://www.google.com
prep_time: 10 min
cook_time: 30 min
on_favorites: yes
categories: [Dinner, Holiday]
nutritional_info: 500 calories
difficulty: Easy
rating: 5
notes: |
  This is delicious!!!
description: |
  This is my tasty recipe, it's delicious!!!
ingredients: |
  1/2 lb meat
  1/2 lb vegetables
  salt
  pepper
  2 tbsp olive oil
  4 cups flour
directions: |
  Mix things together.
  Eat.
  Tasty.
  Yum yum yum.
photo: (base-64 encoded image)

License

MIT

cookbook-importer's People

Contributors

ebridges avatar

Stargazers

 avatar

Watchers

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