Shorthand for logger initialization, recording worst called loglevel and handling nice console output
Project description
ofunctions
Collection of useful python functions
ofunctions is a set of various recurrent functions amongst
- bisection: bisection algorithm for any function with any number of arguments, works LtoR and RtoL
- checksums: various SHA256 tools for checking and creating checksum files
- csv: CSV file reader with various enhancements over generic reader
- delayed_keyboardinterrupt: just a nifty tool to catch CTRL+C signals
- file_utils: file handling functions of which get_files_recursive is the most advanced
- json_sanitize: make sure json does not contain unsupported chars, yes I look at you Windows eventlog
- logger_utils: basic no brain console + file log creation
- mailer: send emails regardless of ssl/tls protocols, in batch or as single mail, with attachments
- network: various tools like ping, internet check, MTU probing and public IP discovery
- platform: nothing special here, just check what arch we are running on
- process: simple kill-them-all function to terminate subprocesses
- random: basic random string & password generator
- service_control: control Windows / Linux service start / stop / status
- string_handling: remove accents / special chars from strings
- threading: threading decorator for functions
It is compatible with Python 3.5+ and is tested on both Linux and Windows.
Setup
pip install ofunctions.<subpackage>
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
Built Distribution
Close
Hashes for ofunctions.logger_utils-2.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25b295410aafb35c37a118d2b05f7acda4b18a514b8bd6b61cd02b781fee365c |
|
MD5 | 56c65a87b83de2af001cffe3cd0228df |
|
BLAKE2b-256 | 9fb2d74efa51dcce0eb49af14b12d4d5357efdfb9d8482e9685d5bd238f55812 |
Close
Hashes for ofunctions.logger_utils-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 214446294056425fa9d88ae5ab6b25d6756d74949f6de33b52c1baa5317e720f |
|
MD5 | f63136f14b669cd8c9aeb999bcbaaae2 |
|
BLAKE2b-256 | 0f07aeafe0c37c30464c8e482d7e79e9e2c73856487712aadcb9fac94b35dff1 |