Skip to main content

General functions library

Project description

mh_universal_functions

mh_universal_functions is a Python library currently used in Python programs pir.py and rha.py. (see https://www.makeareadme.com/ for examples of README.md)

Installation

Use the package manager pip to install mh_universal_functions.

sudo /usr/local/bin/python3.7 -m pip install mh-universal-functions==version

Usage

import mh_universal_functions

mh_universal_functions.test() # returns 'Hello world of PyPI'

Included functions:

  • def database_update_universal(mysql_const, row, table, value, id1, id1_value, id2, id2_value)
  • def database_read(mysql_const, row, table, id1, id1_value, id2, id2_value)
  • def read_config(_config_filename, _program_name, _log_filename, _hostname)
  • def exit_critical(_program_name, _log_filename, _hostname)
  • def send_telegram_message(telegram_active, telegram_program, telegram_recipient_dict, telegram_message_address, telegram_message, telegram_picture)
  • def test()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

mh_universal_functions-2020.11.15.4.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

mh_universal_functions-2020.11.15.4-py2-none-any.whl (7.4 kB view details)

Uploaded Python 2

File details

Details for the file mh_universal_functions-2020.11.15.4.tar.gz.

File metadata

  • Download URL: mh_universal_functions-2020.11.15.4.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7

File hashes

Hashes for mh_universal_functions-2020.11.15.4.tar.gz
Algorithm Hash digest
SHA256 9c0d1081733bbb8b2c2959160c7d08ca0c7dda394a1e20fd3f4311df22f7d33f
MD5 3d5c8f6c8d42ba8e91d159aadd88d613
BLAKE2b-256 2333df0bb1a5a4264261da88a53f64e3313c4ba056c37e61d83498713b69e38b

See more details on using hashes here.

File details

Details for the file mh_universal_functions-2020.11.15.4-py2-none-any.whl.

File metadata

  • Download URL: mh_universal_functions-2020.11.15.4-py2-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7

File hashes

Hashes for mh_universal_functions-2020.11.15.4-py2-none-any.whl
Algorithm Hash digest
SHA256 5cd2e40610cab625fc283cf2ce2ae4844df1822e7612c4de652e3e050bcd5341
MD5 36fc6680c046f9f676ed722f3a859d66
BLAKE2b-256 f123726f1ab80758d9eaa22bdcae7953f2597f36b34b9dba7c33925c29805eda

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