Skip to main content

Convert Paprika Recipes files into a SQLite database

Project description

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

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

paprika_to_sqlite-0.2.0.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file paprika_to_sqlite-0.2.0.tar.gz.

File metadata

  • Download URL: paprika_to_sqlite-0.2.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for paprika_to_sqlite-0.2.0.tar.gz
Algorithm Hash digest
SHA256 90aa271fd76d0a71451153e2befedfac88746fadbe865ba2652f7514cb0388a0
MD5 555f1643f227a38be902f9455aaf4474
BLAKE2b-256 594aee08480883e3ceab5e89731b25ec79228770a2b118f004fbeb48ea4a99ab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page