gerrymanoim / paprika-to-sqlite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paprika To SQLite

PyPI version

Takes a paprikarecipe file exported from Paprika and converts it to an sqlite db.

Tables:

  • recipes
  • recipes_to_categories
  • recipes_to_photos
  • categories
  • photos

Useful with Datasette.

Install

pip install paprika-to-sqlite
# or pip install paprika-to-sqlite[datasette]

Usage

paprika-to-sqlite --version
paprika-to-sqlite --help
paprika-to-sqlite my_export.paprikarecipes paprika.db

Usage with datasette

If you have paprika-to-sqlite and datasette installed in the same environment, you can use datasette to look at any recipe. First, launch datasette:

datasette paprika.db

This will add a paprikarecipe link to individual row pages:

Link Image

and a url handler for /-/paprika-recipe/<recipe-id>. This will display the recipe as a simple webpage:

Page Image

About


Languages

Language:Python 93.4%Language:HTML 6.6%