Warning

This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

Source code for galaxy.util.tool_version

from typing import Union


[docs] def remove_version_from_guid(guid: str) -> Union[str, None]: """ Removes version from toolshed-derived tool_id(=guid). """ if "/" not in guid: return None last_slash = guid.rfind("/") return guid[:last_slash]