put, stands for Python utilities & tools, is a collection of wonderful Python utilities and tools that can make your life easier.
simply use pip or pipenv:
pip install put
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