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 get_mobile_device_presence(_wifi_devices_dict, _router_ip_address, _router_password, _bluetooth_devices_dict, _scan_for_device_type, _calling_software)
  • 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-2021.6.6.2.tar.gz (6.3 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-2021.6.6.2-py2-none-any.whl (7.9 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: mh_universal_functions-2021.6.6.2.tar.gz
  • Upload date:
  • Size: 6.3 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.60.0 CPython/3.7.7

File hashes

Hashes for mh_universal_functions-2021.6.6.2.tar.gz
Algorithm Hash digest
SHA256 ee4f36d510e8ad1ce541917b1581a193bf40be1c4f51a29c8a5b759816288467
MD5 c875b1b6fd094a3c75e0dcf52e2dbfef
BLAKE2b-256 8e6830e519528285c849a36a8f093ae07ec7435ffb6e48a02f4d4ef48fdcfcdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mh_universal_functions-2021.6.6.2-py2-none-any.whl
  • Upload date:
  • Size: 7.9 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.60.0 CPython/3.7.7

File hashes

Hashes for mh_universal_functions-2021.6.6.2-py2-none-any.whl
Algorithm Hash digest
SHA256 3a15f715ea9db036b6ef88f71cceaf6c742b0f2117f09b69e8ebc5ddf63be85e
MD5 c427251a23ee4e49d22ac616f7ad9ddd
BLAKE2b-256 686b6f3c488d2d7b85262545f90b32cde6df7e738c205465dddecc04e831bd0c

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