Skip to main content

Seth Grover's useful Python helpers

Project description

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()
  ⚙️  ask_for_password()
  ⚙️  ask_for_string()
  🧱 AtomicInt
  ⚙️  base64_decode_if_prefixed()
  🧱 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()
  ⚙️  download_to_file()
  ⚙️  dynamic_import()
  ⚙️  eprint()
  ⚙️  escape_ansi()
  ⚙️  escape_for_curl()
  ⚙️  evp_bytes_to_key()
  ⚙️  file_contents()
  ⚙️  flatten()
  ⚙️  get_function_name()
  ⚙️  get_iterable()
  ⚙️  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()
  ⚙️  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()
  🧱 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.

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

mmguero-2.0.3.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mmguero-2.0.3-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file mmguero-2.0.3.tar.gz.

File metadata

  • Download URL: mmguero-2.0.3.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mmguero-2.0.3.tar.gz
Algorithm Hash digest
SHA256 95126dc55ed730692f7fb16ec42b6af2c2cdca7b64ebdc52a2911bac44b0aadb
MD5 4f4073df6879ddb32cd80a5033cc0d3e
BLAKE2b-256 3e6b311a3b60a62b0836f134083e3fcb98345898c340db83d22af9dcf78bafa8

See more details on using hashes here.

File details

Details for the file mmguero-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: mmguero-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mmguero-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a5534809234038f983797d9fac5ae035654aa076794844e76b953d6a80e1dd63
MD5 1c400cdc8f3b12c49951b27f04d140dd
BLAKE2b-256 147336fd9160ea8825649ffa12943108aa43dc3b298a885b28392d013a87cc4b

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