A set of calculations used in beer-making and wine-making hobbies
Project description
Library description
Library contains functions for calculations that can be used in alcohol making. Most of the functions are related to wine or beer making, but there might be a small part of code related to stronger alcohols.
Command-Line interface
Library exposes command line interface, which can be run by runing cli script inside pybrewlib folder. This has been done for manual testing at the start, but then I have started using it as interface hence, its left and documented, however not all API functions have been documented.
Current API
Name | Type | Description |
---|---|---|
alcohol_mass | function | return alcohol mass (volume in liters) |
alcohol_units | function | return alcohol units in drink (irish) |
blood_alcohol_content | function | return estimated bac |
build_sg | function | builds starting gravity from a list of sugar additions expects a list of tuples/list in format: [(gravity before addition, gravity after addition)] |
build_sg_interactive | function | build starting gravity for wine (if there was extra sugar added) (interactively) |
calculations | module | calculations exposed by library and used by the cli |
cli | function | command-line interface for the library |
dillution_approx_outcome | function | return total quantity of alcohol at given strenght and water required |
dilution_approx_calc | function | calculate abv of diluted drink |
dilution_approx_proportions | function | return proportions to get requested strength and quantity of alcohol |
e_bac | function | estimate blood alcohol content |
estimate_mixed_abv | function | Estimate abv of a drink mixed from other drinks expects a list in format [(abv of 1st drink, volume)] |
estimate_mixed_abv_interactive | function | Estimate abv of a drink mixed from other drinks (interractive) |
sg_for_abv | function | calculate sg for wanted abv |
sg_strength_calc | function | calculate abv content |
spirit_dilution_spirit | function | acurate formula for diluting spirit with other spirit returns amount of other spirit required |
spirit_dilution_water | function | acurate formula for diluting spirit with water returns required amount of water |
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
File details
Details for the file pybrewlib-1.0.tar.gz
.
File metadata
- Download URL: pybrewlib-1.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4adef978c2117eee4ad97c7430f24a94a6753246a2a5abdee83b5e7c5ddae14 |
|
MD5 | 868022519dce3c176dcc917a1a8edcaa |
|
BLAKE2b-256 | 14e221c1e28a7075142104de3230fea12ad425ab79732a90f60216b6dc9b1fe6 |
File details
Details for the file pybrewlib-1.0-py3-none-any.whl
.
File metadata
- Download URL: pybrewlib-1.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e933bd3518f522cda0b167d124718e17504599bae732b1d8e4803a060adc405b |
|
MD5 | 9f04124a31575196abed1697a3657dbc |
|
BLAKE2b-256 | 8ba582686b857ddb662bf81aa2b37bf5033e48a6c46d8c3ac7d9f0d465bda59a |