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.1.tar.gz (17.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.1-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mmguero-2.0.1.tar.gz
  • Upload date:
  • Size: 17.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.1.tar.gz
Algorithm Hash digest
SHA256 668a70f6117a3f049bd14d1989abcf119fd101b3ba90c84ec2083d1a4656abde
MD5 6b94a5fb19c644263e19157be09c37bc
BLAKE2b-256 bce1795a7a57e1f652ee2a536af22ca5408807001d6a371c9ac72234f360274d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mmguero-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 63eecbe4420e50d20762c2d622e163364c05052facc251c37b2c9d298dfc7a25
MD5 3d9a9c1626d2d868fd8d6695e6dfcc87
BLAKE2b-256 d97ef11b4890a9539ba61427f7ace3a1123f44845a57fe1f2c690691e56f12d5

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