tooluniverse.restful_tool module

class tooluniverse.restful_tool.GraphQLTool(tool_config, endpoint_url)[source][source]

Bases: BaseTool

__init__(tool_config, endpoint_url)[source][source]
run(arguments)[source][source]

Execute the tool.

The default BaseTool implementation accepts an optional arguments mapping to align with most concrete tool implementations which expect a dictionary of inputs.

tooluniverse.restful_tool.register_tool(tool_type_name=None, config=None)[source][source]

Decorator to automatically register tool classes and their configs.

Usage:

@register_tool(‘CustomToolName’, config={…}) class MyTool:

pass

tooluniverse.restful_tool.execute_RESTful_query(endpoint_url, variables=None)[source][source]
class tooluniverse.restful_tool.RESTfulTool(tool_config, endpoint_url)[source][source]

Bases: GraphQLTool

__init__(tool_config, endpoint_url)[source][source]
run(arguments)[source][source]

Execute the tool.

The default BaseTool implementation accepts an optional arguments mapping to align with most concrete tool implementations which expect a dictionary of inputs.

class tooluniverse.restful_tool.MonarchTool(tool_config)[source][source]

Bases: RESTfulTool

__init__(tool_config)[source][source]
run(arguments)[source][source]

Execute the tool.

The default BaseTool implementation accepts an optional arguments mapping to align with most concrete tool implementations which expect a dictionary of inputs.

class tooluniverse.restful_tool.MonarchDiseasesForMultiplePhenoTool(tool_config)[source][source]

Bases: MonarchTool

__init__(tool_config)[source][source]
run(arguments)[source][source]

Execute the tool.

The default BaseTool implementation accepts an optional arguments mapping to align with most concrete tool implementations which expect a dictionary of inputs.