Metadata-Version: 2.1
Name: pybeerxml
Version: 1.0.8
Summary: A BeerXML Parser
Home-page: https://github.com/hotzenklotz/pybeerxml
Author: Tom Herold
Author-email: heroldtom@gmail.com
License: MIT
Download-URL: https://github.com/hotzenklotz/pybeerxml/tarball/1.0.8
Description: # pybeerxml
        
        A simple BeerXML parser for Python
        
        [![CircleCI](https://circleci.com/gh/hotzenklotz/pybeerxml/tree/master.svg?style=svg)](https://circleci.com/gh/hotzenklotz/pybeerxml/tree/master)
        [![PyPi Version](https://img.shields.io/pypi/v/pybeerxml.svg?style=flat-square)](https://pypi.python.org/pypi?:action=display&name=pybeerxml)
        
        Parses all recipes within a BeerXML file and returns `Recipe` objects containing all ingredients,
        style information and metadata. OG, FG, ABV and IBU are calculated from the ingredient list. (your
        milage may vary)
        
        ## Installation
        
        ```
        pip install pybeerxml
        ```
        
        ## Usage
        
        ```
        from pybeerxml import Parser
        
        path_to_beerxml_file = "/tmp/SimcoeIPA.beerxml"
        
        parser = Parser()
        recipes = parser.parse(path_to_beerxml_file)
        
        for recipe in recipes:
        
            # some general recipe properties
            print(recipe.name)
            print(recipe.brewer)
        
            # calculated properties
            print(recipe.og)
            print(recipe.fg)
            print(recipe.ibu)
            print(recipe.abv)
        
            # iterate over the ingredients
            for hop in recipe.hops:
                print(hop.name)
        
            for fermentable in recipe.fermentables:
                print(fermentable.name)
        
            for yeast in recipe.yeasts:
                print(yeast.name)
                
            for misc in recipe.miscs:
                print(misc.name)
        ```
        
        ## Testing
        
        Unit test can be run with PyTest:
        
        ```
        python setup.py test
        ```
        
        ## License
        
        MIT
        
Keywords: beerxml,beer,xml,brewing
Platform: any
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
Provides-Extra: testing
