Skip to content

Commit

Permalink
Add recipes from The Brew Shop
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgilmerproj committed Sep 23, 2017
1 parent 323743b commit 6ba8cd8
Show file tree
Hide file tree
Showing 4 changed files with 249 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ dist/
python-mingus/

data
*_personal.py
81 changes: 81 additions & 0 deletions examples/the_brew_shop/irish_red.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-

"""
The Brew Shop
Lunar Eclipse Red
Used by permission of The Brew Shop. All rights reserved.
You can purchase this kit at their store:
- http://thebrewshopbend.com/
Original Stats:
OG:
FG:
ADF:
IBU:
Color:
Alcohol:
Boil: 60 min
Pre-Boil Volume:
Pre-Boil Gravity:
""" # noqa

import os

from brew.parsers import JSONDataLoader
from brew.parsers import parse_recipe


def main():

recipe = {
u'name': u"Lunar Eclipse Red (Extract)",
u'start_volume': 4.0,
u'final_volume': 5.0,
u'grains': [
{u'name': u'Pale Liquid Extract',
u'weight': 7.0,
u'grain_type': u'lme'},
{u'name': u'Munich Malt',
u'weight': 1.0,
u'grain_type': u'specialty'},
{u'name': u'Caramel Crystal Malt 10l',
u'weight': 1.0,
u'grain_type': u'specialty'},
{u'name': u'Caramel Crystal Malt 60l',
u'weight': 1.0,
u'grain_type': u'specialty'},
{u'name': u'Caramel Crystal Malt 80l',
u'weight': 1.0,
u'grain_type': u'specialty'},
],
u'hops': [
{u'name': u'Chinook',
u'weight': 1.0,
u'boil_time': 60.0},
{u'name': u'Chinook',
u'weight': 1.0,
u'boil_time': 15.0},
],
u'yeast': {
u'name': u'Wyeast 1084',
},
u'data': {
u'brew_house_yield': 0.7,
u'units': u'imperial',
},
}

data_dir = os.path.abspath(os.path.join(os.getcwd(), 'data/'))
loader = JSONDataLoader(data_dir)
beer = parse_recipe(recipe, loader)
print(beer.format())


if __name__ == "__main__":
main()
82 changes: 82 additions & 0 deletions examples/the_brew_shop/scottish_amber.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-

"""
The Brew Shop
Scottish Amber
Used by permission of The Brew Shop. All rights reserved.
You can purchase this kit at their store:
- http://thebrewshopbend.com/
Original Stats:
OG:
FG:
ADF:
IBU:
Color:
Alcohol:
Boil: 60 min
Pre-Boil Volume:
Pre-Boil Gravity:
""" # noqa

import os

from brew.parsers import JSONDataLoader
from brew.parsers import parse_recipe
from brew.utilities.efficiency import calculate_brew_house_yield # noqa


def main():

recipe = {
u'name': u"Scottish Amber (Extract)",
u'start_volume': 5.0,
u'final_volume': 5.0,
u'grains': [
{u'name': u'Pale Liquid Extract',
u'weight': 7.0,
u'grain_type': u'lme'},
{u'name': u'Caramel Crystal Malt 80l',
u'weight': 1.0,
u'grain_type': u'specialty'},
{u'name': u'Smoked Malt',
# Rausch means "Smoked"
u'weight': 1.0,
u'data': {
u'color': 6.0},
u'grain_type': u'specialty'},
{u'name': u'Victory Malt',
u'weight': 1.0,
u'grain_type': u'specialty'},
],
u'hops': [
{u'name': u'Perle',
u'weight': 1.0,
u'boil_time': 60.0},
{u'name': u'Perle',
u'weight': 1.0,
u'boil_time': 30.0},
],
u'yeast': {
u'name': u'Wyeast 1728',
},
u'data': {
u'brew_house_yield': 0.458,
u'units': u'imperial',
},
}

data_dir = os.path.abspath(os.path.join(os.getcwd(), 'data/'))
loader = JSONDataLoader(data_dir)
beer = parse_recipe(recipe, loader)
print(beer.format())


if __name__ == "__main__":
main()
85 changes: 85 additions & 0 deletions examples/the_brew_shop/yellow_moon_ipa.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-

"""
The Brew Shop
Yellow Moon IPA
Used by permission of The Brew Shop. All rights reserved.
You can purchase this kit at their store:
- http://thebrewshopbend.com/
Original Stats:
OG:
FG:
ADF:
IBU:
Color:
Alcohol:
Boil: 60 min
Pre-Boil Volume:
Pre-Boil Gravity:
""" # noqa

import os

from brew.parsers import JSONDataLoader
from brew.parsers import parse_recipe
from brew.utilities.efficiency import calculate_brew_house_yield # noqa


def main():

recipe = {
u'name': u"Yellow Moon IPA (Extract)",
u'start_volume': 4.0,
u'final_volume': 5.0,
u'grains': [
{u'name': u'Pale Liquid Extract',
u'weight': 7.0,
u'grain_type': u'lme'},
{u'name': u'Caramel Crystal Malt 20l',
u'weight': 1.0,
u'grain_type': u'specialty'},
{u'name': u'Munich Malt',
u'weight': 0.5,
u'grain_type': u'specialty'},
{u'name': u'Cara Pils Dextrine',
u'weight': 0.5,
u'grain_type': u'specialty'},
],
u'hops': [
{u'name': u'Centennial',
u'weight': 1.0,
u'boil_time': 60.0},
{u'name': u'Centennial',
u'weight': 1.0,
u'boil_time': 30.0},
{u'name': u'Cascade US',
u'weight': 1.0,
u'boil_time': 10.0},
{u'name': u'Cascade US',
u'weight': 1.0,
u'boil_time': 0.0},
],
u'yeast': {
u'name': u'Wyeast 1056',
},
u'data': {
u'brew_house_yield': 0.425,
u'units': u'imperial',
},
}

data_dir = os.path.abspath(os.path.join(os.getcwd(), 'data/'))
loader = JSONDataLoader(data_dir)
beer = parse_recipe(recipe, loader)
print(beer.format())


if __name__ == "__main__":
main()

0 comments on commit 6ba8cd8

Please sign in to comment.