an abstraction layer for the stormheron mead-calc API
Project description
Stormheron Mead-Calculator
Installation
This package can be installed with pip: pip install stormheron-mead-calc
Examples
Solve for ABV given Sugar and Final-Gravity
from mead import Sugar, SugarType, Recipe
if __name__ == '__main__':
recipe = Recipe(batch_volume_gal=5,
yan_offset=0,
yeast_gram_per_gal=2,
sna_step_count=3,
nutrition_need=0.9,
yeast_abv_pct=30,
goferm_ppm_per_g=132,
ferm_k_ppm_per_g=177,
dap_ppm_per_g=210,
ferm_o_ppm_per_g=160,
goferm_max_gpl=1.32,
ferm_k_max_gpl=0.5,
dap_max_gpl=0.96,
ferm_o_max_gpl=2,
final_gravity_pct=1.05,
sugar_loads=[
Sugar(sugar_type=SugarType(name="Sugar", sugar_content=1.0), qty_lbs=30.34)
])
results = recipe.calculate()
print(results)
Solve for Sugar given ABV and Final-Gravity
from mead import Sugar, SugarType, Recipe
if __name__ == '__main__':
recipe = Recipe(batch_volume_gal=5,
yan_offset=0,
yeast_gram_per_gal=2,
sna_step_count=3,
nutrition_need=0.9,
yeast_abv_pct=30,
goferm_ppm_per_g=132,
ferm_k_ppm_per_g=177,
dap_ppm_per_g=210,
ferm_o_ppm_per_g=160,
goferm_max_gpl=1.32,
ferm_k_max_gpl=0.5,
dap_max_gpl=0.96,
ferm_o_max_gpl=2,
final_gravity_pct=1.05,
abv_pct=0.87)
results = recipe.calculate()
print(results)
Solve for Final-Gravity given Sugar and ABV
from mead import Sugar, SugarType, Recipe
if __name__ == '__main__':
recipe = Recipe(batch_volume_gal=5,
yan_offset=0,
yeast_gram_per_gal=2,
sna_step_count=3,
nutrition_need=0.9,
yeast_abv_pct=30,
goferm_ppm_per_g=132,
ferm_k_ppm_per_g=177,
dap_ppm_per_g=210,
ferm_o_ppm_per_g=160,
goferm_max_gpl=1.32,
ferm_k_max_gpl=0.5,
dap_max_gpl=0.96,
ferm_o_max_gpl=2,
abv_pct=0.87,
sugar_loads=[
Sugar(sugar_type=SugarType(name="Sugar", sugar_content=1.0), qty_lbs=30.34)
])
results = recipe.calculate()
print(results)
Updating the PyPi package
- make sure you have the latest versions of twine, setuptools, and wheel installed
pip install --upgrade setuptools twine wheel
- !!! Adjust the version in
setup.py
appropriately !!! - build the package by running this command from the same directory where
setup.py
is located
setup.py sdist bdist_wheel
- deploy the package by running this command from the same directory where
setup.py
is locatedtwine upload --repository pypi dist/*
- this step requires a valid PyPi account
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for stormheron_mead_calc-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 379a473ed01f6f2ec2aa8afd65eb1104a0e917090248e2139f301d14be2e1fd2 |
|
MD5 | d67009c9f260736c78ccdd65d9a5a312 |
|
BLAKE2b-256 | db4331fda44b1fb5beee9fbd467cc44585963a94100606270bb0a6292b83037f |