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)
  • 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.16.1.tar.gz (6.0 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.16.1-py2-none-any.whl (7.6 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: mh_universal_functions-2020.11.16.1.tar.gz
  • Upload date:
  • Size: 6.0 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.16.1.tar.gz
Algorithm Hash digest
SHA256 3fe561536fff2e4e8acbbb275a03df942939465e293b4d5d8b98cdf1085723f2
MD5 525adea91f67d53ac35be678751fec29
BLAKE2b-256 bc0b8d3e547d297c32d35a6c0d8d60bb10ac1ceb68ef6b895d503c9420de6927

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mh_universal_functions-2020.11.16.1-py2-none-any.whl
  • Upload date:
  • Size: 7.6 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.16.1-py2-none-any.whl
Algorithm Hash digest
SHA256 d13abd0b7a420d7aa433991089bb214d4e88174a2c0768f9f2b93760499584da
MD5 616e9a9cf6ab85c917536c9c34e7929a
BLAKE2b-256 0e8c22bed7fe67eafe0c1699eefd07f01b91db03053eef0053c57e9b7cf06980

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