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.6.28.5.tar.gz (4.6 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.6.28.5-py2-none-any.whl (6.1 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: mh_universal_functions-2020.6.28.5.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for mh_universal_functions-2020.6.28.5.tar.gz
Algorithm Hash digest
SHA256 4d0c4463abebf1082ba0e143c3a3bba74f244bd6b5f83a9cb81abc2c112c64df
MD5 098cacb4ba47a559840ef803b06713ea
BLAKE2b-256 420e2832b08c4756f42b726f587d31daebc52531d3a1f2846855264d8370ce39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mh_universal_functions-2020.6.28.5-py2-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for mh_universal_functions-2020.6.28.5-py2-none-any.whl
Algorithm Hash digest
SHA256 53547d4aa3a40f4f4de4db0e8c219bc6657787ce94f0e36f885e2505f5b0e4fa
MD5 7243e31a73f29c2853add74f435bbb7f
BLAKE2b-256 afaf0af247109a22305873dd0e71a59acc38f8a5d016f24c46b02c0a560bd2e2

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