This is a Python3 library of functions and classes, mainly for personal use.
NOTE: user action required !! Before trying to use the SQLITE3 functions in this package make sure you have installed the sqlite3 server/client and the default Python package that comes with it.
Development of this package is done in Python 3.9. The package is considered forwards compatible at least upto Python 3.11 and probably also beyond. Backwards compatibility is not guaranteed; if it works on Python 3.7 or before consider yourself lucky. Python versions that are end-of-life are not supported.
python3 -m pip install mausy5043-common
cat(filename)
: Read a file into a variable.
syslog_trace(trace, logerr, out2console)
: Log messages to console and/or system log.
moisture(temperature, relative_humidity, pressure)
: Calculate the moisture content of air given T [degC], RH [%] and P [hPa].
wet_bulb_temperature(temperature, relative_humidity)
: Calculate the wet bulb temperature of the air given T [degC] and RH [%].
GracefulKiller
: A simple version of this one.
SqlDatabase
: A class to interact with SQLite3 databases.