Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/bioblend/galaxy/config/__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 Contains possible interaction dealing with Galaxy configuration. | |
3 | |
4 """ | |
5 from bioblend.galaxy.client import Client | |
6 | |
7 | |
8 class ConfigClient(Client): | |
9 | |
10 def __init__(self, galaxy_instance): | |
11 self.module = 'configuration' | |
12 super().__init__(galaxy_instance) | |
13 | |
14 def get_config(self): | |
15 """ | |
16 Get a list of attributes about the Galaxy instance. More attributes will | |
17 be present if the user is an admin. | |
18 | |
19 :rtype: list | |
20 :return: A list of attributes. | |
21 For example:: | |
22 | |
23 {'allow_library_path_paste': False, | |
24 'allow_user_creation': True, | |
25 'allow_user_dataset_purge': True, | |
26 'allow_user_deletion': False, | |
27 'enable_unique_workflow_defaults': False, | |
28 'ftp_upload_dir': '/SOMEWHERE/galaxy/ftp_dir', | |
29 'ftp_upload_site': 'galaxy.com', | |
30 'library_import_dir': 'None', | |
31 'logo_url': None, | |
32 'support_url': 'https://galaxyproject.org/support', | |
33 'terms_url': None, | |
34 'user_library_import_dir': None, | |
35 'wiki_url': 'https://galaxyproject.org/'} | |
36 """ | |
37 return self._get() | |
38 | |
39 def get_version(self): | |
40 """ | |
41 Get the current version of the Galaxy instance. | |
42 | |
43 :rtype: dict | |
44 :return: Version of the Galaxy instance | |
45 For example:: | |
46 | |
47 {'extra': {}, 'version_major': '17.01'} | |
48 """ | |
49 url = self.gi.url + '/version' | |
50 return self._get(url=url) |