Skip to main content

A simple exporter for the paprika app.

Project description

Paprika Exporter

Export Paprika data using the API to yaml

Introduction

This tool statically generates a list of Paprika recipes in YAML format, with a related folder of images.

Installation

pip3 install papexp

Issues

Make sure to delete recipes from the trash in the app because it can cause errors.

This code places the recipes yaml file in the _data/ directory, and creates it if it does not exist.

This code puts image files into assets/images/recipes, and creates that folder if it does not exist. This is not compatible with the original sstarcher code which used "images/recipes". You may need to relocate these files after retreval if it does not match your required file path.

Example python code

import papexp from papexp import core papexp.core.checkandrun()

Examples on the web

You can see this live on chrisfnicholson.com

@datapolitical/chrisfnicholson.github.io runs this code in its build_jekyll.yml workflow to routinely pull new recipes. An edited version is available as a workflow in this repository.

This code is almost entirely the work of Shane Starcher. I’m deeply grateful to him for building this.

My goal with this package is to make implementation of his code on your website dead simple.

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

papexp-0.4.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

papexp-0.4.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file papexp-0.4.1.tar.gz.

File metadata

  • Download URL: papexp-0.4.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.12

File hashes

Hashes for papexp-0.4.1.tar.gz
Algorithm Hash digest
SHA256 1631d77fadcddf8f744e47494add35c58ac2c0f95aa6ee379860606754c51095
MD5 f2fbadbc74623b1fc9bcef747ce47603
BLAKE2b-256 9095f1e4fb46fd0ed88d573fcfc4101d93de2665b2e1634d0a5db9f1e5c97ceb

See more details on using hashes here.

File details

Details for the file papexp-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: papexp-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.12

File hashes

Hashes for papexp-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3bd037159c8dfae19d774af4dd9b303267aa13321c535b8629fe241c53d7dcc4
MD5 c9044a5eadfe511b2d5e37994dc43228
BLAKE2b-256 28dd45892c881f35a3e3ce1a56cccaa6691e51fc816e028b6174243a2ad8eb18

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