HomeBrewer的命令行工具
brew-tools的Python项目详细描述
brew工具
╔╗ ╦═╗╔═╗╦ ╦ ╔╦╗╔═╗╔═╗╦ ╔═╗ ╠╩╗╠╦╝║╣ ║║║───║ ║ ║║ ║║ ╚═╗ ╚═╝╩╚═╚═╝╚╩╝ ╩ ╚═╝╚═╝╩═╝╚═╝
一种命令行实用程序,为家庭提供一组计算器 酿酒师。
NOTE: All values and calculations are provided as guidelines only. Brew-tools should not be used for professional brewing. No warranty or guarantee of accuracy is provided on the information provided by this calculator.
说明
在您的酿酒日需要快速计算吗?不喜欢挖 通过一个gui应用程序,还是一个基于web的工具?喜欢做简单的事 航站楼里的东西?
那么brew tools就适合您了。
当前的brew工具包括:
- ABV计算器
- 桶启动计算器
- 启动糖计算器
- 快速输液计算器
- 使用DME计算器调整重力
- 视在和实际衰减计算器
- 给定衰减百分比的最终重力
- 通过蒸发/稀释计算器进行重力调整
- 体积调整后的新重力
更多信息
有关每个版本的更新,请参见changelog。
安装
从pypi可以获得brew工具
pip install brew-tools
您还可以克隆/下载此存储库并使用pip安装它
cd <brew-tools-dir> pip install .
用法
brew工具已内置帮助
Usage: brew-tools [OPTIONS] COMMAND [ARGS]... Options: --version Show the version and exit. -imperial Use imperial units. Metric by default. --help Show this message and exit. Commands: abv infuse kegpsi prime dme
以及它的命令
brew-tools infuse --help Usage: brew-tools infuse [OPTIONS] Options: -temp FLOAT Current temperature of mash -target FLOAT Target temperature of mash -ratio FLOAT Grist/water ratio -grain FLOAT Weight of grain in mash -water FLOAT Temp of infusion water --help Show this message and exit.
如果输入未通过命令行参数传递,则使用brew工具 将提示用户输入。
有关详细信息,请参见 documentation
开发
如果您想帮助开发brew工具,应该将其安装到 虚拟环境。当前版本的brew工具使用[诗歌](https://poetry.eustace.io/) 管理虚拟环境等等。
为了启动,[安装诗歌](https://poetry.eustace.io/docs/#installation) 并切换到brew工具目录。从那里您可以运行
poetry install
它将创建一个虚拟环境并安装依赖项。 要在开发环境中运行brew工具,可能最容易运行
poetry shell
它将为环境生成一个配置的shell。
测试可以在此环境中运行,也可以使用
poetry run pytest tests
在不生成外壳的情况下运行测试。
除了测试之外,最好用travis运行一个源的linter 还将检查是否有绒线错误。linter命令忽略了一些错误,因此 可以使用此命令匹配travis运行的命令
poetry run flake8 src --ignore=E501,W504,W503
谢谢
感谢
- /u/damnit_rezno-鼓励我开始这个项目
- slayterdev-二甲醚添加计算器
许可证
brew工具是根据mit许可证发布的。
有关详细信息,请参见LICENSE.txt。