galaxy.tool_shed.galaxy_install.metadata package

Submodules

galaxy.tool_shed.galaxy_install.metadata.installed_repository_metadata_manager module

class galaxy.tool_shed.galaxy_install.metadata.installed_repository_metadata_manager.InstalledRepositoryMetadataManager(app: InstallationTarget, tpm: ToolPanelManager | None = None, repository: ToolShedRepository | None = None, changeset_revision: str | None = None, repository_clone_url: str | None = None, shed_config_dict: Dict[str, Any] | None = None, relative_install_dir: str | None = None, repository_files_dir: str | None = None, resetting_all_metadata_on_repository: bool = False, updating_installed_repository: bool = False, persist: bool = False, metadata_dict: Dict[str, Any] | None = None)[source]

Bases: GalaxyMetadataGenerator

app: InstallationTarget
__init__(app: InstallationTarget, tpm: ToolPanelManager | None = None, repository: ToolShedRepository | None = None, changeset_revision: str | None = None, repository_clone_url: str | None = None, shed_config_dict: Dict[str, Any] | None = None, relative_install_dir: str | None = None, repository_files_dir: str | None = None, resetting_all_metadata_on_repository: bool = False, updating_installed_repository: bool = False, persist: bool = False, metadata_dict: Dict[str, Any] | None = None)[source]
build_repository_ids_select_field(name='repository_ids', multiple=True, display='checkboxes')[source]

Generate the current list of repositories for resetting metadata.

get_query_for_setting_metadata_on_repositories(order=True)[source]

Return a query containing repositories for resetting metadata. The order parameter is used for displaying the list of repositories ordered alphabetically for display on a page. When called from the Galaxy API, order is False.

get_repository_tools_tups()[source]

Return a list of tuples of the form (relative_path, guid, tool) for each tool defined in the received tool shed repository metadata.

reset_all_metadata_on_installed_repository()[source]

Reset all metadata on a single tool shed repository installed into a Galaxy instance.

reset_metadata_on_selected_repositories(user, **kwd)[source]

Inspect the repository changelog to reset metadata for all appropriate changeset revisions. This method is called from both Galaxy and the Tool Shed.

set_repository(repository)[source]
tool_shed_from_repository_clone_url() str[source]

Given a repository clone URL, return the tool shed that contains the repository.

update_in_shed_tool_config()[source]

A tool shed repository is being updated so change the shed_tool_conf file. Parse the config file to generate the entire list of config_elems instead of using the in-memory list.