pytower.tool_lib

class pytower.tool_lib.ParameterDict[source]
__getattr__(key)[source]
Parameters:

key (str)

class pytower.tool_lib.ToolMetadata(tool_name, params, version, author, url, info, hidden=False, nowrite=False)[source]
Parameters:
T = ~T[source]
__init__(tool_name, params, version, author, url, info, hidden=False, nowrite=False)[source]
Parameters:
static attr_or_default(module, attr, default)[source]
Return type:

TypeVar(T)

Parameters:
static from_dict(data)[source]
Return type:

ToolMetadata

Parameters:

data (dict[str, Any])

get_info()[source]
Return type:

str

static strattr_or_default(module, attr, default)[source]
Return type:

str | None

Parameters:
to_dict()[source]
Return type:

dict[str, Any]

class pytower.tool_lib.ToolParameterInfo(dtype=<class 'str'>, description='', default=None)[source]
Parameters:
__init__(dtype=<class 'str'>, description='', default=None)[source]
Parameters:
static from_dict(data)[source]
Return type:

ToolParameterInfo

Parameters:

data (dict[str, Any])

to_dict()[source]
Return type:

dict[str, Any]

pytower.tool_lib.get_indexed_tools()[source]
Return type:

list[tuple[ModuleType | str, ToolMetadata]] | None

pytower.tool_lib.get_tool_scripts()[source]
Return type:

list[str]

pytower.tool_lib.load_tool(script_path)[source]
Return type:

tuple[ModuleType, ToolMetadata] | None

Parameters:

script_path (str)

pytower.tool_lib.load_tools()[source]
Return type:

list[tuple[ModuleType | str, ToolMetadata]]

pytower.tool_lib.make_tools_index(tools)[source]
Parameters:

tools (list[tuple[ModuleType | str, ToolMetadata]])