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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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