Skip to main content

Easily view and edit the contents of exports from the Paprika app.

Project description

Paprika: Easily read and modify your paprika recipes

Paprika is a lovely recipe app that works a lot better than I was expecting it to, and although its recipe imports are usually fantastic, sometimes things are imported just slightly incorrectly and require manual touch-up. This is a library I built to make that just a little easier to do.

Installation

pip install paprika-recipes

Usage

Modifying via Paprika's API

Modifying one of your existing recipes

You can modify a recipe on your Paprika account by running the following

paprika-recipes edit-recipe your@email.address

You'll be presented with a list of recipes on your account and after you select the recipe you'd like to edit, your editor will be opened to allow you to make the modifications you want to make. Just save and close your editor to upload your updated recipe to Paprika.

If you have decided that you've made a mistake and would like to abort, just delete all of the contents of the file before saving and closing your editor. We won't update your recipe if you do that.

You can also provide search parameters as command-line arguments to limit the list of recipes presented to you, and if your search terms match just one of your recipes, we'll open the editor straight away.

Creating a new recipe on your Paprika account

You can create a new recipe on your Paprika account by running the following

paprika-recipes create-recipe your@email.address

Your editor will be opened to a brand new empty recipe. Just write out your recipe's instructions and whatever other fields you'd like to fill out, then save and close your editor -- we'll upload your recipe to your Paprika account as soon as your editor has closed.

If you have decided that you've made a mistake and would like to abort, just delete all of the contents of the file before saving and closing your editor. We won't update your recipe if you do that.

Downloading your whole recipe collection

If you want to download your whole recipe archive instead of editing or creating a single recipe at a time, you can download your whole recipe collection into a directory on your computer.

The expected workflow for changing your recipes when using this method is a three-step process:

  1. Downloading your paprika recipes from your account.
  2. Modifying the extracted yaml recipe files or creating new ones.
  3. Uploading your changed or new recipes back to your account.

Before beginning, though, you will need to store your paprika account information in your system keyring by running:

paprika-recipes store-password

You'll be asked for your e-mail and password; after that point, this library will fetch your password from your system keyring instead of prompting you for it.

Downloading
paprika-recipes download-recipes your@email.address /path/to/export/your/recipes
Uploading
paprika-recipes upload-recipes your@email.address /path/to/where/you/exported/your/recipes

Modifying via Exported Archives

The expected workflow for changing your recipes is a three-step process:

  1. Extracting your paprikarecipes file to a directory.
  2. Modifying the extracted yaml recipe files.
  3. Compress your recipes back into an archive.

Extracting

paprika-recipes extract-archive /path/to/your/export.paprikarecipes /path/to/extract/recipes/to/

Compressing

paprika-recipes create-archive /path/you/earlier/extracted/recipes/to/ /path/to/a/new/export.paprikarecipes

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-recipes-1.1.1.dev9.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paprika_recipes-1.1.1.dev9-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file paprika-recipes-1.1.1.dev9.tar.gz.

File metadata

  • Download URL: paprika-recipes-1.1.1.dev9.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for paprika-recipes-1.1.1.dev9.tar.gz
Algorithm Hash digest
SHA256 7dfd22e22fba0c9ca225fb8248f490884c6308ae059eac27bc6581fec8231a3b
MD5 2b809b4d81f70e06fab76f87ecb06806
BLAKE2b-256 e6cff09908bd952bff1518123ac482d7f99f53a71f25abf47de0cff4c7f049cc

See more details on using hashes here.

File details

Details for the file paprika_recipes-1.1.1.dev9-py3-none-any.whl.

File metadata

  • Download URL: paprika_recipes-1.1.1.dev9-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for paprika_recipes-1.1.1.dev9-py3-none-any.whl
Algorithm Hash digest
SHA256 980ef4cc130cc8be117cc5b9507940eb37974bccc4d15c01a7c2d2f862abe043
MD5 c6148799180e717aa3ac9deefd5033ce
BLAKE2b-256 417f8fb6e1dc2d6aa92c49fc152440dd5ce65e75017c8d073d98792e0f34a051

See more details on using hashes here.

Supported by

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