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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mh_universal_functions-2022.4.9.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d321c44ee1ba85714b336743670b291a7bb7b45fa971920e7f1696e25ac6068d |
|
MD5 | dae12ab55eaaab9fd08547da7f2969f1 |
|
BLAKE2b-256 | f975bdfeda7df8dd666dc5c8c3031655b3baf739eb1b5b118b2cbbb8bec3f591 |
Close
Hashes for mh_universal_functions-2022.4.9.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ab4b54d920a951d297f381d28eb4189888aa407b263bd573051f1dfc6f92134 |
|
MD5 | ca00e7a9373fba2c0238a4e3155f6a48 |
|
BLAKE2b-256 | c625573cdcf10ace33696ce91334c1b5a0c36179d3ea3d157e4eb821390c22c4 |