repo_splitter.gui package

Submodules

repo_splitter.gui.config module

repo_splitter.gui.error module

repo_splitter.gui.error.error_window(exc)[source]

repo_splitter.gui.loading module

class repo_splitter.gui.loading.Result(success=None, value=None, exception=None)[source]

Bases: object

__init__(success=None, value=None, exception=None)
Return type

None

property empty
Return type

bool

exception = None
success = None
value = None
property was_successful
Return type

bool

repo_splitter.gui.loading.loading_gui(func, message, *args, **kwargs)[source]
Parameters
  • func (Callable) – Function to run while loading

  • message (str) – Message to display while loading

  • args – args to pass to func

  • func_kwargs – kwargs to pass to func

repo_splitter.gui.loading.run_put_result_in_queue(func, gui_queue, *args, **kwargs)[source]

A worker thread that communicates with the GUI through a queue This thread can block for as long as it wants and the GUI will not be affected :type _sphinx_paramlinks_repo_splitter.gui.loading.run_put_result_in_queue.func: Callable :param _sphinx_paramlinks_repo_splitter.gui.loading.run_put_result_in_queue.func: Function to run :type _sphinx_paramlinks_repo_splitter.gui.loading.run_put_result_in_queue.gui_queue: Queue :param _sphinx_paramlinks_repo_splitter.gui.loading.run_put_result_in_queue.gui_queue: (queue.Queue) Queue to communicate back to GUI that task is completed :return:

repo_splitter.gui.main module

exception repo_splitter.gui.main.MustDoSomethingException[source]

Bases: Exception

exception repo_splitter.gui.main.MustProvideInputException(*args, input_name=None, **kwargs)[source]

Bases: Exception

__init__(*args, input_name=None, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

exception repo_splitter.gui.main.MustProvideOnlyOneRepoException[source]

Bases: Exception

exception repo_splitter.gui.main.MustProvideRepoException(*args, input_name=None, **kwargs)[source]

Bases: repo_splitter.gui.main.MustProvideInputException

class repo_splitter.gui.main.SelectRepoConfig(new_repo_name, gh_token, repo_url=None, repo_local_path=None, all_branches=False, include_tags=False, remove_files_from_old_repo=True, create_new_repo=True, store_gh_token=True)[source]

Bases: object

__init__(new_repo_name, gh_token, repo_url=None, repo_local_path=None, all_branches=False, include_tags=False, remove_files_from_old_repo=True, create_new_repo=True, store_gh_token=True)
Return type

None

all_branches = False
create_new_repo = True
include_tags = False
remove_files_from_old_repo = True
property repo_loc
Return type

str

repo_local_path = None
repo_url = None
store_gh_token = True
repo_splitter.gui.main.dismiss_message_gui(message, title='Notice')[source]
repo_splitter.gui.main.repo_select_gui(defaults=None)[source]
Return type

Optional[SelectRepoConfig]

repo_splitter.gui.main.repo_splitter_gui(**defaults)[source]
repo_splitter.gui.main.select_files_gui(files, repo)[source]
Return type

List[str]

repo_splitter.gui.main.should_push_old_repo_gui(temp_repo_dest)[source]
Return type

bool

repo_splitter.gui.main.show_created_repo_gui(gh_repo)[source]

Module contents