python-backpack

Python Utilities


License
GPL-3.0
Install
pip install python-backpack==1.0.3

Documentation

PyPI Supported Python Versions PyPI version GitHub version codecov Message

Python-Backpack

A collection of personal scripts for JSON, File/Folder Operations, String Validation, Custom Errors, Cache and stuff.

Json

  • json_load()
  • json_save()
  • jsonMetaFile()
  • jsonUserSettings()

Files & Folders

  • browse_folder()
  • create_folders()
  • create_folder()
  • remove_files_in_dir()
  • recursive_dir_copy()
  • replace_strings_in_file()
  • remove_line_from_file()
  • file_is_writeable()

String Validation

  • reformat_input_string()
  • begin_or_end_with_numbers()
  • begin_with_number()
  • has_numbers()
  • camelcase_to_snakecase()

Custom Errors

  • EnvironmentVariableNotFound()
  • ApplicationNotFound()

Cache

  • timed_lru_cache

Test Utils

  • time_function_decorator()
  • random_string()

Others / Patterns

  • Singleton()

pip install

pip install python-backpack