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.pyappropriately !!! - build the package by running this command from the same directory where
setup.pyis located
setup.py sdist bdist_wheel - deploy the package by running this command from the same directory where
setup.pyis 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stormheron-mead-calc-0.2.tar.gz.
File metadata
- Download URL: stormheron-mead-calc-0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72c7f6c60923976e66fa9b371c8169d523a99c13b8f1ff18609b8ec6b44855a4
|
|
| MD5 |
6cf5942836ec262118690c6fbe985057
|
|
| BLAKE2b-256 |
e243dc730abc7e3de77c4608fcbaf61ea035066fc3339dddc48bb4fe483aa0bd
|
File details
Details for the file stormheron_mead_calc-0.2-py3-none-any.whl.
File metadata
- Download URL: stormheron_mead_calc-0.2-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
379a473ed01f6f2ec2aa8afd65eb1104a0e917090248e2139f301d14be2e1fd2
|
|
| MD5 |
d67009c9f260736c78ccdd65d9a5a312
|
|
| BLAKE2b-256 |
db4331fda44b1fb5beee9fbd467cc44585963a94100606270bb0a6292b83037f
|