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_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()
  ⚙️  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.

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.4.tar.gz (19.5 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.4-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mmguero-2.0.4.tar.gz
  • Upload date:
  • Size: 19.5 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.4.tar.gz
Algorithm Hash digest
SHA256 0789c0549f06c2dcd49ab325631d1f5edbf5aed253d25af23e375b8d8370692d
MD5 895c71a3e6112699fbe393b77e95ed03
BLAKE2b-256 5f3cd6d0ad598e3fb071fd7ebaf111b748385e7edc2a88abdc2a2741d73d60f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mmguero-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 20.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cccde60565d7dc73cef9bdabdc4535358e526493808127d28d4e9845013eeb95
MD5 414ab3fe54d578103bec2f4f6af23ee2
BLAKE2b-256 625b95a25ffa6c860cedc4f0c109ded9a61c436df588f82b87a86903ae5df423

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