Skip to content

1set/put

Repository files navigation

put℠

GitHub Action workflow PyPI - Python Version PyPI Project License PyPI - Downloads Codacy Grade Code Climate maintainability Codecov DeepSource

put, stands for Python utilities & tools, is a collection of wonderful Python utilities and tools that can make your life easier.

installation

simply use pip or pipenv:

pip install put

feature

the following helper methods are included:

  • hash utilities:

    • md5: md5str, md5sum, md5base64
    • sha1: sha1str, sha1sum, sha1base64
    • sha256: sha256str, sha256sum, sha256base64
  • file utilities:

    • directory: is_dir_exist, is_dir_empty, make_dir, remove_dir, scan_dir, join_path
    • file: is_file_exist, is_file_empty, save_json, load_json, load_lines, get_file_info
  • string utilities:

    • substring: str_after_first, str_after_last, str_before_first, str_before_last
  • json utilities:

    • dump_json, save_json, load_json