Skip to main content

Common python functions

Project description

PyPI version Supported Python versions PyPI downloads Code style: Black

mausy5043-common

This is a Python3 library of functions and classes, mainly for personal use.

Requirements

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.

Installation

python3 -m pip install mausy5043-common

Functions provided

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 [%].

Classes provided

GracefulKiller : A simple version of this one.
SqlDatabase : A class to interact with SQLite3 databases.

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

mausy5043_common-1.6.5.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

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

mausy5043_common-1.6.5-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file mausy5043_common-1.6.5.tar.gz.

File metadata

  • Download URL: mausy5043_common-1.6.5.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for mausy5043_common-1.6.5.tar.gz
Algorithm Hash digest
SHA256 3aac83024ce74ff1ac8fa2b98be523bd5739cfb353f849d0fe8107986a4a437b
MD5 d0f439d7b0bc33b727c9e9d686a69151
BLAKE2b-256 9b8ca939f2b56103e3310163968c0ec721c0026b8e3dd2edad4a83e9707265c7

See more details on using hashes here.

File details

Details for the file mausy5043_common-1.6.5-py3-none-any.whl.

File metadata

File hashes

Hashes for mausy5043_common-1.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d9f4d1e566da4b2d88bc5ce46fe1d3039b033ff037f19492a3f5ba21ada16564
MD5 91269a1ee2a9d1fe05dda837f1226a49
BLAKE2b-256 3f0be5b2a5f8ea893373a0d486b653695dd69b0bd590b42a55cdb54659cb92d5

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