comparison env/lib/python3.9/site-packages/bioblend/toolshed/categories/__init__.py @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4f3585e2f14b
1 """
2 Interaction with a Tool Shed instance categories
3 """
4 from bioblend.galaxy.client import Client
5
6
7 class ToolShedCategoryClient(Client):
8
9 def __init__(self, toolshed_instance):
10 self.module = 'categories'
11 super().__init__(toolshed_instance)
12
13 def get_categories(self, deleted=False):
14 """
15 Returns a list of dictionaries that contain descriptions of the
16 repository categories found on the given Tool Shed instance.
17
18 :type deleted: bool
19 :param deleted: whether to show deleted categories
20
21 :rtype: list
22 :return: A list of dictionaries containing information about
23 repository categories present in the Tool Shed.
24 For example::
25
26 [{'deleted': False,
27 'description': 'Tools for manipulating data',
28 'id': '175812cd7caaf439',
29 'model_class': 'Category',
30 'name': 'Text Manipulation',
31 'url': '/api/categories/175812cd7caaf439'}]
32
33 .. versionadded:: 0.5.2
34 """
35 return self._get(deleted=deleted)
36
37 def show_category(self, category_id):
38 """
39 Get details of a given category.
40
41 :type category_id: str
42 :param category_id: Encoded category ID
43
44 :rtype: dict
45 :return: details of the given category
46 """
47 return self._get(id=category_id)