foodlist 0.1.1

Python tool to convert YAML shopping list into different formats
foodlist is a Python tool to export YAML shopping lists into different formats.

foodlist converts simple yaml shopping lists into different formats. This can be done in order to get a better layout or make them importable for other applications. Originally I built this to be able to write simple grocery lists on my computer and import them into Groceries.app_, a wonderful iPhone application for shopping lists.


pyyaml for input parsing and pystache for filling the output template. If pystache is not available or no template was given, the context object is simply printed onto the screen.


    pip install pyyaml
    pip install pystache


The package itself can be installed via PyPi:

    pip install foodlist

Or if you must:

    easy_install foodlist

This does not install the example data from the data folder, however. They are working examples, but I don't think they are useful enough to be bundled. If you want to use or modify these examples, feel free to do this.


Create a yaml list like this:


    - food
    - more food
    - tomatoes
    - spinache

The executable can be given optional paths for base data needed to convert the list and a mustache template for output generation.

You can also put your files in the default search location:



Simple execution with format and the default base_data/template: list.yaml

Template and base data paths given explicitly: -b groceries.json -t groceries.mustache list.yaml

Additionally it is possible to pass a name and the format: -n "My awesome list" -f "" list.yaml

last updated on:
June 2nd, 2010, 0:04 GMT
license type:
MIT/X Consortium License 
developed by:
Daniel Schauenberg
ROOT \ Utilities
Download Button

In a hurry? Add it to your Download Basket!

user rating



Rate it!
What's New in This Release:
  • Add groceries.json as package data
read full changelog

Add your review!