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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mmguero-2.2.3.tar.gz
(28.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mmguero-2.2.3-py3-none-any.whl
(34.4 kB
view details)
File details
Details for the file mmguero-2.2.3.tar.gz.
File metadata
- Download URL: mmguero-2.2.3.tar.gz
- Upload date:
- Size: 28.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fce0a84958ead3dee636fd645435142d483cc63b031bc100f0117e813728258e
|
|
| MD5 |
d4146c62fb4e0347e0d4c8fd587767d5
|
|
| BLAKE2b-256 |
def626ef732792ba945ff68b8eb01300ad3022118e3b29ea2c4ff894996204cb
|
File details
Details for the file mmguero-2.2.3-py3-none-any.whl.
File metadata
- Download URL: mmguero-2.2.3-py3-none-any.whl
- Upload date:
- Size: 34.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40d5f388e81437d124ad715a32404f19a968e4ef0f212251dbbd8eb9ff97409e
|
|
| MD5 |
b7ed2c85f0a412f2ad3f1e4eb2e161e9
|
|
| BLAKE2b-256 |
ba001f93dd96bd1206c3eb2852ce972c4cb4e9ab22bb9886b2a837efac328e39
|