mmguero
mmguero is my personal collection of miscellaneous helper functions for Python.
Contents
Run mmguero to get a list of the exported functions and classes, e.g.:
🧰 mmguero v#.#.#
Seth Grover's useful Python helpers
🌐 Project URLs:
Homepage, https://github.com/mmguero/python-mmguero
Issues, https://github.com/mmguero/python-mmguero/issues
Repository, https://github.com/mmguero/python-mmguero.git
📦 Public functions and classes:
⚙️ aggressive_url_encode()
⚙️ append_to_file()
🧱 ArchiveBombError
⚙️ ask_for_password()
⚙️ ask_for_string()
🧱 AtomicInt
⚙️ base64_decode_files_to_dir()
⚙️ base64_decode_if_prefixed()
⚙️ base64_encode_files_in_dir()
🧱 BoolOrExtra
🧱 CaselessDictionary
⚙️ check_output_input()
⚙️ choose_multiple()
⚙️ choose_one()
⚙️ chown_recursive()
⚙️ clear_screen()
⚙️ contains_whitespace()
🧱 ContextLockedOrderedDict
⚙️ count_lines_mmap()
⚙️ custom_make_translation()
⚙️ deep_get()
⚙️ deep_merge()
⚙️ deep_merge_in_place()
⚙️ deep_set()
⚙️ dict_search()
⚙️ display_message()
⚙️ display_program_box()
⚙️ distro_info()
⚙️ download_to_file()
⚙️ dynamic_import()
⚙️ eprint()
⚙️ escape_ansi()
⚙️ escape_for_curl()
⚙️ evp_bytes_to_key()
⚙️ file_contents()
⚙️ flatten()
⚙️ get_function_name()
⚙️ get_iterable()
⚙️ get_main_script_dir()
⚙️ get_main_script_path()
⚙️ get_primary_ip()
⚙️ get_verbosity_env_var_count()
⚙️ git_clone()
⚙️ json_obj_serializer()
⚙️ load_file_if_json()
⚙️ load_str_if_json()
⚙️ main()
⚙️ max_hash_value_by_key()
⚙️ max_hash_value_by_value()
⚙️ min_hash_value_by_key()
⚙️ min_hash_value_by_value()
⚙️ parse_curl_file()
⚙️ pop_line()
⚙️ pushd()
⚙️ remove_empty_folders()
⚙️ remove_falsy()
⚙️ remove_prefix()
⚙️ remove_suffix()
⚙️ rmtree_except()
⚙️ run_process()
⚙️ run_sub_process()
⚙️ safe_extract()
⚙️ same_file_or_dir()
⚙️ set_logging()
⚙️ sha256_sum()
⚙️ shakey_sum()
⚙️ size_human_format()
⚙️ str2bool()
⚙️ str2bool_or_extra()
⚙️ tablify()
⚙️ temporary_filename()
⚙️ test_socket()
⚙️ touch()
⚙️ unescape_for_curl()
⚙️ unwrap_method()
🧱 UserInputDefaultsBehavior
🧱 UserInterfaceMode
⚙️ val2bool()
⚙️ which()
⚙️ yes_or_no()
Installation
Using pip, to install the latest release from PyPI:
python3 -m pip install -U mmguero
Or to install directly from GitHub:
python3 -m pip install -U 'git+https://github.com/mmguero/python-mmguero'
Authors
- Seth Grover - Initial work - mmguero
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for mmguero 2.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mmguero-2.2.4.tar.gz | 28.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mmguero-2.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 63.2 kB
Release files / mmguero-2.2.4.tar.gz
| Download URL | mmguero-2.2.4.tar.gz |
|---|---|
| Size | 28.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe6e8f1d54f7c5e10cf2f757d1143216c0473817500b9af10697180a74939755
|
|
BLAKE2b-256 checksum How to use checksums |
06ad9e41be3b7b8113ad74de7316adb50a6d0197f99a6b9fc9b38690f056a431
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / mmguero-2.2.4-py3-none-any.whl
| Download URL | mmguero-2.2.4-py3-none-any.whl |
|---|---|
| Size | 34.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e256d9bed13ddf7103498a342b716c5195deac1695f009340629d8e9c11f0b3
|
|
BLAKE2b-256 checksum How to use checksums |
5223b15face1a1dea5bb20159c24b7fa6a3d0420ab16ef1dc2d98bb1a644956a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|