Skip to main content

Commandline tools for the homebrewer

Project description

brew-tools

╔╗ ╦═╗╔═╗╦ ╦  ╔╦╗╔═╗╔═╗╦  ╔═╗
╠╩╗╠╦╝║╣ ║║║───║ ║ ║║ ║║  ╚═╗
╚═╝╩╚═╚═╝╚╩╝   ╩ ╚═╝╚═╝╩═╝╚═╝

Build Status Documentation Status PyPI version

A command line utility that offers a set of calculators for home brewers.

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.

Description

Need to do a quick calculation during your brew day? Don’t fancy digging through a GUI application, or a web based tool? Prefer to do simple things in a terminal?

Then brew-tools is for you.

Currently brew-tools includes:

  • ABV calculator

  • Keg priming calculator

  • Priming sugar calculator

  • Quick infusion calculator

  • Adjust gravity with dme calculator

  • Apparent and Real attenuation calculator

  • Final gravity from a given attenuation percentage

  • Gravity adjustment by boil off/dilution calculator

  • New gravity after volume adjustment

More to come

See the changelog for updates in each version

Installation

Brew-tools is available from PyPI

pip install brew-tools

You can also clone/download this repository and install it using pip

cd <brew-tools-dir>
pip install .

Usage

Brew tools has built in help

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

and also for its commands

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.

If the inputs are not passed via the command line arguments, brew tools will prompt the user for input.

For more information see the documentation

Development

If you want to help develop brew tools you should install it into a virtual environment. The current version of brew-tools uses [Poetry](https://poetry.eustace.io/) to manage virtual environments and such.

In order to start, [install Poetry](https://poetry.eustace.io/docs/#installation) and change into the brew-tools directory. From there you can run

poetry install

which will create a virtual environment and install the dependencies. To run brew_tools in the developmeent environment it’s probably easiest to run

poetry shell

which will spawn a configured shell for the environment.

Tests can be run in this environment, or you can use

poetry run pytest tests

to run the tests without spawning a shell.

In addition to the tests it’s advisable to run a linter of the source as Travis will also check for linting errors. The linter command ignores some errors, so you can use this command to match the command run by Travis

poetry run flake8 src --ignore=E501,W504,W503

Thanks

Thanks to

  • /u/DAMNIT_REZNO - for inspiring me to start this project

  • SlayterDev - DME addition calculator

License

Brew Tools is released under the MIT license.

See LICENSE.txt for more details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brew_tools-0.2.6.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brew_tools-0.2.6-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file brew_tools-0.2.6.tar.gz.

File metadata

  • Download URL: brew_tools-0.2.6.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.16 CPython/3.7.3 Linux/3.10.0-862.2.3.el7.x86_64

File hashes

Hashes for brew_tools-0.2.6.tar.gz
Algorithm Hash digest
SHA256 25d1943674a9eac6f5530c53ede62a369aa0ef7c7789d6d43a2e966444595995
MD5 01efe494d4c6e604007e800a8f86ecc9
BLAKE2b-256 70a148e0cc5ac786aa858fc0214c414923b6345d26fc8435cc5738edb2a2873a

See more details on using hashes here.

File details

Details for the file brew_tools-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: brew_tools-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.16 CPython/3.7.3 Linux/3.10.0-862.2.3.el7.x86_64

File hashes

Hashes for brew_tools-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ed0b1037bfaae0c81ba92a95f1af1183d986e5648867c50fcc668e308ab571e9
MD5 4109adbaaac2510cc2d94ef7008c41d5
BLAKE2b-256 14f5731ecc61f158126a442da1ca9e3ec16810062d24fd17b732d1767da71720

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page