The seedbox.common.tools Module

Holds a group of tools useful by all modules.

seedbox.common.tools.format_file_ext(filetypes)

Format file extensions

Verifies that each item in the list of filetypes is a string and starts with a ‘.’

Parameters:filetypes (list) – a list of extensions representing types of files
seedbox.common.tools.make_opt_list(opts, group)

Generate a list of tuple containing group, options

Parameters:
  • opts (list) – option lists associated with a group
  • group (str) – name of an option group
Returns:

a list of (group_name, opts) tuples

Return type:

list

seedbox.common.tools.verify_path(path_entry)

Verify a path

if it exists make sure it is an absolute path and return. else None

Parameters:path_entry – path to file or directory on host