crouton_backup-decoder is a Python tool that extracts and converts recipe data from Crouton backup files into formatted PDF documents. It allows users to extract recipes from ZIP archives containing Crouton recipe files, parse the recipe information, and generate beautiful, printable PDF documents for each recipe.
This project is perfect for users who want to preserve their Crouton recipe collections in a portable, offline format.
- ZIP Archive Extraction
- Recipe Data Parsing
- PDF Generation
- Recipe images
- Ingredient lists with quantities
- Detailed cooking instructions
- Multi-page support for longer recipes
- Python 3.7+
-
Clone the repository:
git clone <repository-url> cd crouton_backup-decoder
-
Install dependencies:
pip install -r requirements.txt
-
Prepare your Crouton backup file:
- Place your Crouton Recipes backup ZIP file in the project directory
- Update the
FILEPATHvariable inconvert.pywith your backup file path
Run the conversion script:
python convert.pyThe script will:
- Extract recipes from your Crouton backup ZIP file
- Parse each recipe's metadata, ingredients, and instructions
- Generate PDF files for each recipe in the
output/directory
convert.py- Main script that orchestrates the extraction and conversion processzip_class.py- Handles ZIP file extraction and iterationcrouton_decode_class.py- Parses Crouton recipe JSON formatpdf_class.py- Generates formatted PDF documentsrequirements.txt- Python package dependencies