foodlistPython tool to convert YAML shopping list into different formats | |
Download |
foodlist Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Daniel Schauenberg
- Publisher web site:
- http://unwiredcouch.com
foodlist Tags
foodlist Description
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.Dependencies: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 pystacheInstallation:The package itself can be installed via PyPi: pip install foodlistOr if you must: easy_install foodlistThis 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.Usage:Create a yaml list like this::: aisle: - food - more food produce: - tomatoes - spinacheThe 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::: ~/.foodlist/groceries.json ~/.foodlist/groceries.mustacheSimple execution with groceries.app format and the default base_data/template: export_foodlist.py list.yamlTemplate and base data paths given explicitly: export_foodlist.py -b groceries.json -t groceries.mustache list.yamlAdditionally it is possible to pass a name and the format: export_foodlist.py -n "My awesome list" -f "groceries.app" list.yaml Requirements: · Python What's New in This Release: · Add groceries.json as package data
foodlist Related Software