-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
323743b
commit 6ba8cd8
Showing
4 changed files
with
249 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ dist/ | |
python-mingus/ | ||
|
||
data | ||
*_personal.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |