Modul Documentation

Constants

boozelib.PA = 0.8

density of alcohol (g/ml)

boozelib.PB = 1.055

density of blood (g/cm^3)

boozelib.W = 0.8

parts of water in blood (%)

Functions

boozelib.get_bac(age, weight, height, sex, volume, percent)[source]

Returns the Blood Alcohol Content (raise) for a person (described by the given attributes) after a drink containing volume ml of alcohol with the given percent (vol/vol).

boozelib.get_degradation(age, weight, height, sex, minutes)[source]

Returns the alcohol degradation (per mill) of a person with the given stats in the given number of minutes.

boozelib.calculate_alcohol(volume, percent)[source]

Return the amount of alcohol (in gramm) contained in a drink

boozelib.calculate_degradation(weight, minutes)[source]

Return the ammount of alcohl (in gramm) that a body with the given weight degenerates in the given minutes

boozelib.calculate_bw(age, weight, height, sex)[source]

Return the amount of water (in liter) in a persons body

boozelib.gramm_to_promille(gramm, age, weight, height, sex)[source]

Return the blood alcohol content (per mill) for a person with the given body stats and amount of alcohol (in gramm) in blood

boozelib.promille_to_gramm(bac, age, weight, height, sex)[source]

Return the amount of alcohol (in gramm) for a person with the given body stats and blood alcohol content (per mill)

Project Versions

Table Of Contents

Previous topic

Install

Next topic

Used Formulas

This Page