Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gerrymanoim/paprika-to-sqlite
https://github.com/gerrymanoim/paprika-to-sqlite
datasette datasette-io dogsheep paprika sqlite
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/gerrymanoim/paprika-to-sqlite
- Owner: gerrymanoim
- Created: 2020-10-15T03:23:02.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-13T22:00:58.000Z (almost 2 years ago)
- Last Synced: 2024-09-30T02:04:58.917Z (about 2 months ago)
- Topics: datasette, datasette-io, dogsheep, paprika, sqlite
- Language: Python
- Homepage:
- Size: 483 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Paprika To SQLite
[![PyPI version](https://badge.fury.io/py/paprika-to-sqlite.svg)](https://badge.fury.io/py/paprika-to-sqlite)
Takes a `paprikarecipe` file exported from [Paprika](https://www.paprikaapp.com/) and converts it to an sqlite db.
Tables:
- `recipes`
- `recipes_to_categories`
- `recipes_to_photos`
- `categories`
- `photos`Useful with [Datasette](https://datasette.io/).
## 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](https://github.com/gerrymanoim/paprika-to-sqlite/raw/master/img/link.png)
and a url handler for `/-/paprika-recipe/`. This will display the recipe as a simple webpage:
![Page Image](https://github.com/gerrymanoim/paprika-to-sqlite/raw/master/img/page.png)