pyxetabase 3.1.0.dev25__py3-none-any.whl → 3.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pyxetabase might be problematic. Click here for more details.
- pyxetabase/rest_clients/file_client.py +1 -1
- pyxetabase/rest_clients/variant_operation_client.py +1 -2
- {pyxetabase-3.1.0.dev25.dist-info → pyxetabase-3.1.1.dist-info}/METADATA +1 -1
- pyxetabase-3.1.1.dist-info/RECORD +35 -0
- pyopencga/__init__.py +0 -0
- pyopencga/commons.py +0 -347
- pyopencga/exceptions.py +0 -8
- pyopencga/opencga_client.py +0 -334
- pyopencga/opencga_config.py +0 -211
- pyopencga/rest_clients/__init__.py +0 -0
- pyopencga/rest_clients/_parent_rest_clients.py +0 -110
- pyopencga/rest_clients/admin_client.py +0 -172
- pyopencga/rest_clients/alignment_client.py +0 -373
- pyopencga/rest_clients/clinical_analysis_client.py +0 -1279
- pyopencga/rest_clients/cohort_client.py +0 -338
- pyopencga/rest_clients/disease_panel_client.py +0 -352
- pyopencga/rest_clients/family_client.py +0 -355
- pyopencga/rest_clients/file_client.py +0 -698
- pyopencga/rest_clients/ga4gh_client.py +0 -86
- pyopencga/rest_clients/individual_client.py +0 -435
- pyopencga/rest_clients/job_client.py +0 -415
- pyopencga/rest_clients/meta_client.py +0 -85
- pyopencga/rest_clients/organization_client.py +0 -216
- pyopencga/rest_clients/project_client.py +0 -128
- pyopencga/rest_clients/sample_client.py +0 -446
- pyopencga/rest_clients/study_client.py +0 -461
- pyopencga/rest_clients/user_client.py +0 -192
- pyopencga/rest_clients/variant_client.py +0 -1378
- pyopencga/rest_clients/variant_operation_client.py +0 -746
- pyopencga/rest_clients/workflow_client.py +0 -263
- pyopencga/rest_response.py +0 -220
- pyopencga/retry.py +0 -57
- pyxetabase-3.1.0.dev25.dist-info/RECORD +0 -63
- {pyxetabase-3.1.0.dev25.dist-info → pyxetabase-3.1.1.dist-info}/WHEEL +0 -0
- {pyxetabase-3.1.0.dev25.dist-info → pyxetabase-3.1.1.dist-info}/licenses/LICENSE +0 -0
- {pyxetabase-3.1.0.dev25.dist-info → pyxetabase-3.1.1.dist-info}/top_level.txt +0 -0
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
WARNING: AUTOGENERATED CODE
|
|
3
|
-
|
|
4
|
-
This code was generated by a tool.
|
|
5
|
-
|
|
6
|
-
Manual changes to this file may cause unexpected behavior in your application.
|
|
7
|
-
Manual changes to this file will be overwritten if the code is regenerated.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
from pyopencga.rest_clients._parent_rest_clients import _ParentRestClient
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class Organization(_ParentRestClient):
|
|
14
|
-
"""
|
|
15
|
-
This class contains methods for the 'Organizations' webservices
|
|
16
|
-
PATH: /{apiVersion}/organizations
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
def __init__(self, configuration, token=None, login_handler=None, *args, **kwargs):
|
|
20
|
-
super(Organization, self).__init__(configuration, token, login_handler, *args, **kwargs)
|
|
21
|
-
|
|
22
|
-
def create(self, data=None, **options):
|
|
23
|
-
"""
|
|
24
|
-
Create a new organization.
|
|
25
|
-
PATH: /{apiVersion}/organizations/create
|
|
26
|
-
|
|
27
|
-
:param dict data: JSON containing the organization to be created.
|
|
28
|
-
(REQUIRED)
|
|
29
|
-
:param str include: Fields included in the response, whole JSON path
|
|
30
|
-
must be provided.
|
|
31
|
-
:param str exclude: Fields excluded in the response, whole JSON path
|
|
32
|
-
must be provided.
|
|
33
|
-
:param bool include_result: Flag indicating to include the created or
|
|
34
|
-
updated document result in the response.
|
|
35
|
-
"""
|
|
36
|
-
|
|
37
|
-
return self._post(category='organizations', resource='create', data=data, **options)
|
|
38
|
-
|
|
39
|
-
def create_notes(self, data=None, **options):
|
|
40
|
-
"""
|
|
41
|
-
Create a new note.
|
|
42
|
-
PATH: /{apiVersion}/organizations/notes/create
|
|
43
|
-
|
|
44
|
-
:param dict data: JSON containing the Note to be added. (REQUIRED)
|
|
45
|
-
:param str include: Fields included in the response, whole JSON path
|
|
46
|
-
must be provided.
|
|
47
|
-
:param str exclude: Fields excluded in the response, whole JSON path
|
|
48
|
-
must be provided.
|
|
49
|
-
:param bool include_result: Flag indicating to include the created or
|
|
50
|
-
updated document result in the response.
|
|
51
|
-
"""
|
|
52
|
-
|
|
53
|
-
return self._post(category='organizations', resource='create', subcategory='notes', data=data, **options)
|
|
54
|
-
|
|
55
|
-
def search_notes(self, **options):
|
|
56
|
-
"""
|
|
57
|
-
Search for notes of scope ORGANIZATION.
|
|
58
|
-
PATH: /{apiVersion}/organizations/notes/search
|
|
59
|
-
|
|
60
|
-
:param str include: Fields included in the response, whole JSON path
|
|
61
|
-
must be provided.
|
|
62
|
-
:param str exclude: Fields excluded in the response, whole JSON path
|
|
63
|
-
must be provided.
|
|
64
|
-
:param str creation_date: Creation date. Format: yyyyMMddHHmmss.
|
|
65
|
-
Examples: >2018, 2017-2018, <201805.
|
|
66
|
-
:param str modification_date: Modification date. Format:
|
|
67
|
-
yyyyMMddHHmmss. Examples: >2018, 2017-2018, <201805.
|
|
68
|
-
:param str id: Note unique identifier.
|
|
69
|
-
:param str type: Note type.
|
|
70
|
-
:param str scope: Scope of the Note.
|
|
71
|
-
:param str visibility: Visibility of the Note.
|
|
72
|
-
:param str uuid: Unique 32-character identifier assigned automatically
|
|
73
|
-
by OpenCGA.
|
|
74
|
-
:param str user_id: User that wrote that Note.
|
|
75
|
-
:param str tags: Note tags.
|
|
76
|
-
:param str version: Autoincremental version assigned to the registered
|
|
77
|
-
entry. By default, updates does not create new versions. To enable
|
|
78
|
-
versioning, users must set the `incVersion` flag from the /update
|
|
79
|
-
web service when updating the document.
|
|
80
|
-
"""
|
|
81
|
-
|
|
82
|
-
return self._get(category='organizations', resource='search', subcategory='notes', **options)
|
|
83
|
-
|
|
84
|
-
def delete_notes(self, id, **options):
|
|
85
|
-
"""
|
|
86
|
-
Delete note.
|
|
87
|
-
PATH: /{apiVersion}/organizations/notes/{id}/delete
|
|
88
|
-
|
|
89
|
-
:param str id: Note unique identifier. (REQUIRED)
|
|
90
|
-
:param bool include_result: Flag indicating to include the created or
|
|
91
|
-
updated document result in the response.
|
|
92
|
-
"""
|
|
93
|
-
|
|
94
|
-
return self._delete(category='organizations', resource='delete', subcategory='notes', second_query_id=id, **options)
|
|
95
|
-
|
|
96
|
-
def update_notes(self, id, data=None, **options):
|
|
97
|
-
"""
|
|
98
|
-
Update a note.
|
|
99
|
-
PATH: /{apiVersion}/organizations/notes/{id}/update
|
|
100
|
-
|
|
101
|
-
:param dict data: JSON containing the Note fields to be updated.
|
|
102
|
-
(REQUIRED)
|
|
103
|
-
:param str id: Note unique identifier. (REQUIRED)
|
|
104
|
-
:param str include: Fields included in the response, whole JSON path
|
|
105
|
-
must be provided.
|
|
106
|
-
:param str exclude: Fields excluded in the response, whole JSON path
|
|
107
|
-
must be provided.
|
|
108
|
-
:param str tags_action: Action to be performed if the array of tags is
|
|
109
|
-
being updated. Allowed values: ['ADD SET REMOVE']
|
|
110
|
-
:param bool include_result: Flag indicating to include the created or
|
|
111
|
-
updated document result in the response.
|
|
112
|
-
"""
|
|
113
|
-
|
|
114
|
-
return self._post(category='organizations', resource='update', subcategory='notes', second_query_id=id, data=data, **options)
|
|
115
|
-
|
|
116
|
-
def reset_user_password(self, **options):
|
|
117
|
-
"""
|
|
118
|
-
Reset user's password.
|
|
119
|
-
PATH: /{apiVersion}/organizations/user/password/reset
|
|
120
|
-
|
|
121
|
-
:param str user_id: User whose password needs to be reset.
|
|
122
|
-
"""
|
|
123
|
-
|
|
124
|
-
return self._post(category='organizations', resource='reset', subcategory='user/password', **options)
|
|
125
|
-
|
|
126
|
-
def user_update_status(self, user, data=None, **options):
|
|
127
|
-
"""
|
|
128
|
-
Update the user status.
|
|
129
|
-
PATH: /{apiVersion}/organizations/user/{user}/status/update
|
|
130
|
-
|
|
131
|
-
:param dict data: JSON containing the User fields to be updated.
|
|
132
|
-
(REQUIRED)
|
|
133
|
-
:param str user: User ID. (REQUIRED)
|
|
134
|
-
:param str include: Fields included in the response, whole JSON path
|
|
135
|
-
must be provided.
|
|
136
|
-
:param str exclude: Fields excluded in the response, whole JSON path
|
|
137
|
-
must be provided.
|
|
138
|
-
:param str organization: Organization id.
|
|
139
|
-
:param bool include_result: Flag indicating to include the created or
|
|
140
|
-
updated document result in the response.
|
|
141
|
-
"""
|
|
142
|
-
|
|
143
|
-
return self._post(category='organizations/user', resource='update', query_id=user, subcategory='status', data=data, **options)
|
|
144
|
-
|
|
145
|
-
def update_user(self, user, data=None, **options):
|
|
146
|
-
"""
|
|
147
|
-
Update the user information.
|
|
148
|
-
PATH: /{apiVersion}/organizations/user/{user}/update
|
|
149
|
-
|
|
150
|
-
:param dict data: JSON containing the User fields to be updated.
|
|
151
|
-
(REQUIRED)
|
|
152
|
-
:param str user: User ID. (REQUIRED)
|
|
153
|
-
:param str include: Fields included in the response, whole JSON path
|
|
154
|
-
must be provided.
|
|
155
|
-
:param str exclude: Fields excluded in the response, whole JSON path
|
|
156
|
-
must be provided.
|
|
157
|
-
:param str organization: Organization id.
|
|
158
|
-
:param bool include_result: Flag indicating to include the created or
|
|
159
|
-
updated document result in the response.
|
|
160
|
-
"""
|
|
161
|
-
|
|
162
|
-
return self._post(category='organizations', resource='update', subcategory='user', second_query_id=user, data=data, **options)
|
|
163
|
-
|
|
164
|
-
def update_configuration(self, organization, data=None, **options):
|
|
165
|
-
"""
|
|
166
|
-
Update the Organization configuration attributes.
|
|
167
|
-
PATH: /{apiVersion}/organizations/{organization}/configuration/update
|
|
168
|
-
|
|
169
|
-
:param dict data: JSON containing the params to be updated. (REQUIRED)
|
|
170
|
-
:param str organization: Organization id. (REQUIRED)
|
|
171
|
-
:param str include: Fields included in the response, whole JSON path
|
|
172
|
-
must be provided.
|
|
173
|
-
:param str exclude: Fields excluded in the response, whole JSON path
|
|
174
|
-
must be provided.
|
|
175
|
-
:param bool include_result: Flag indicating to include the created or
|
|
176
|
-
updated document result in the response.
|
|
177
|
-
:param str authentication_origins_action: Action to be performed if
|
|
178
|
-
the array of authenticationOrigins is being updated. Allowed
|
|
179
|
-
values: ['ADD SET REMOVE REPLACE']
|
|
180
|
-
"""
|
|
181
|
-
|
|
182
|
-
return self._post(category='organizations', resource='update', query_id=organization, subcategory='configuration', data=data, **options)
|
|
183
|
-
|
|
184
|
-
def info(self, organization, **options):
|
|
185
|
-
"""
|
|
186
|
-
Return the organization information.
|
|
187
|
-
PATH: /{apiVersion}/organizations/{organization}/info
|
|
188
|
-
|
|
189
|
-
:param str organization: Organization id. (REQUIRED)
|
|
190
|
-
:param str include: Fields included in the response, whole JSON path
|
|
191
|
-
must be provided.
|
|
192
|
-
:param str exclude: Fields excluded in the response, whole JSON path
|
|
193
|
-
must be provided.
|
|
194
|
-
"""
|
|
195
|
-
|
|
196
|
-
return self._get(category='organizations', resource='info', query_id=organization, **options)
|
|
197
|
-
|
|
198
|
-
def update(self, organization, data=None, **options):
|
|
199
|
-
"""
|
|
200
|
-
Update some organization attributes.
|
|
201
|
-
PATH: /{apiVersion}/organizations/{organization}/update
|
|
202
|
-
|
|
203
|
-
:param dict data: JSON containing the params to be updated. (REQUIRED)
|
|
204
|
-
:param str organization: Organization id. (REQUIRED)
|
|
205
|
-
:param str include: Fields included in the response, whole JSON path
|
|
206
|
-
must be provided.
|
|
207
|
-
:param str exclude: Fields excluded in the response, whole JSON path
|
|
208
|
-
must be provided.
|
|
209
|
-
:param bool include_result: Flag indicating to include the created or
|
|
210
|
-
updated document result in the response.
|
|
211
|
-
:param str admins_action: Action to be performed if the array of
|
|
212
|
-
admins is being updated. Allowed values: ['ADD REMOVE']
|
|
213
|
-
"""
|
|
214
|
-
|
|
215
|
-
return self._post(category='organizations', resource='update', query_id=organization, data=data, **options)
|
|
216
|
-
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
WARNING: AUTOGENERATED CODE
|
|
3
|
-
|
|
4
|
-
This code was generated by a tool.
|
|
5
|
-
|
|
6
|
-
Manual changes to this file may cause unexpected behavior in your application.
|
|
7
|
-
Manual changes to this file will be overwritten if the code is regenerated.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
from pyopencga.rest_clients._parent_rest_clients import _ParentRestClient
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class Project(_ParentRestClient):
|
|
14
|
-
"""
|
|
15
|
-
This class contains methods for the 'Projects' webservices
|
|
16
|
-
PATH: /{apiVersion}/projects
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
def __init__(self, configuration, token=None, login_handler=None, *args, **kwargs):
|
|
20
|
-
super(Project, self).__init__(configuration, token, login_handler, *args, **kwargs)
|
|
21
|
-
|
|
22
|
-
def create(self, data=None, **options):
|
|
23
|
-
"""
|
|
24
|
-
Create a new project.
|
|
25
|
-
PATH: /{apiVersion}/projects/create
|
|
26
|
-
|
|
27
|
-
:param dict data: JSON containing the mandatory parameters. (REQUIRED)
|
|
28
|
-
:param str include: Fields included in the response, whole JSON path
|
|
29
|
-
must be provided.
|
|
30
|
-
:param str exclude: Fields excluded in the response, whole JSON path
|
|
31
|
-
must be provided.
|
|
32
|
-
:param bool include_result: Flag indicating to include the created or
|
|
33
|
-
updated document result in the response.
|
|
34
|
-
"""
|
|
35
|
-
|
|
36
|
-
return self._post(category='projects', resource='create', data=data, **options)
|
|
37
|
-
|
|
38
|
-
def search(self, **options):
|
|
39
|
-
"""
|
|
40
|
-
Search projects.
|
|
41
|
-
PATH: /{apiVersion}/projects/search
|
|
42
|
-
|
|
43
|
-
:param str include: Fields included in the response, whole JSON path
|
|
44
|
-
must be provided.
|
|
45
|
-
:param str exclude: Fields excluded in the response, whole JSON path
|
|
46
|
-
must be provided.
|
|
47
|
-
:param int limit: Number of results to be returned.
|
|
48
|
-
:param int skip: Number of results to skip.
|
|
49
|
-
:param str organization: Project organization.
|
|
50
|
-
:param str id: Project [organization@]project where project can be
|
|
51
|
-
either the ID or the alias.
|
|
52
|
-
:param str name: Project name.
|
|
53
|
-
:param str fqn: Project fqn.
|
|
54
|
-
:param str description: Project description.
|
|
55
|
-
:param str study: Study id.
|
|
56
|
-
:param str creation_date: Creation date. Format: yyyyMMddHHmmss.
|
|
57
|
-
Examples: >2018, 2017-2018, <201805.
|
|
58
|
-
:param str modification_date: Modification date. Format:
|
|
59
|
-
yyyyMMddHHmmss. Examples: >2018, 2017-2018, <201805.
|
|
60
|
-
:param str internal_status: Filter by internal status.
|
|
61
|
-
:param str attributes: Attributes.
|
|
62
|
-
"""
|
|
63
|
-
|
|
64
|
-
return self._get(category='projects', resource='search', **options)
|
|
65
|
-
|
|
66
|
-
def info(self, projects, **options):
|
|
67
|
-
"""
|
|
68
|
-
Fetch project information.
|
|
69
|
-
PATH: /{apiVersion}/projects/{projects}/info
|
|
70
|
-
|
|
71
|
-
:param str projects: Comma separated list of projects
|
|
72
|
-
[organization@]project up to a maximum of 100. (REQUIRED)
|
|
73
|
-
:param str include: Fields included in the response, whole JSON path
|
|
74
|
-
must be provided.
|
|
75
|
-
:param str exclude: Fields excluded in the response, whole JSON path
|
|
76
|
-
must be provided.
|
|
77
|
-
"""
|
|
78
|
-
|
|
79
|
-
return self._get(category='projects', resource='info', query_id=projects, **options)
|
|
80
|
-
|
|
81
|
-
def inc_release(self, project, **options):
|
|
82
|
-
"""
|
|
83
|
-
Increment current release number in the project.
|
|
84
|
-
PATH: /{apiVersion}/projects/{project}/incRelease
|
|
85
|
-
|
|
86
|
-
:param str project: Project [organization@]project where project can
|
|
87
|
-
be either the ID or the alias. (REQUIRED)
|
|
88
|
-
"""
|
|
89
|
-
|
|
90
|
-
return self._post(category='projects', resource='incRelease', query_id=project, **options)
|
|
91
|
-
|
|
92
|
-
def studies(self, project, **options):
|
|
93
|
-
"""
|
|
94
|
-
Fetch all the studies contained in the project.
|
|
95
|
-
PATH: /{apiVersion}/projects/{project}/studies
|
|
96
|
-
|
|
97
|
-
:param str project: Project [organization@]project where project can
|
|
98
|
-
be either the ID or the alias. (REQUIRED)
|
|
99
|
-
:param str include: Fields included in the response, whole JSON path
|
|
100
|
-
must be provided.
|
|
101
|
-
:param str exclude: Fields excluded in the response, whole JSON path
|
|
102
|
-
must be provided.
|
|
103
|
-
:param int limit: Number of results to be returned.
|
|
104
|
-
:param int skip: Number of results to skip.
|
|
105
|
-
"""
|
|
106
|
-
|
|
107
|
-
return self._get(category='projects', resource='studies', query_id=project, **options)
|
|
108
|
-
|
|
109
|
-
def update(self, project, data=None, **options):
|
|
110
|
-
"""
|
|
111
|
-
Update some project attributes.
|
|
112
|
-
PATH: /{apiVersion}/projects/{project}/update
|
|
113
|
-
|
|
114
|
-
:param dict data: JSON containing the params to be updated. It will be
|
|
115
|
-
only possible to update organism fields not previously defined.
|
|
116
|
-
(REQUIRED)
|
|
117
|
-
:param str project: Project [organization@]project where project can
|
|
118
|
-
be either the ID or the alias. (REQUIRED)
|
|
119
|
-
:param str include: Fields included in the response, whole JSON path
|
|
120
|
-
must be provided.
|
|
121
|
-
:param str exclude: Fields excluded in the response, whole JSON path
|
|
122
|
-
must be provided.
|
|
123
|
-
:param bool include_result: Flag indicating to include the created or
|
|
124
|
-
updated document result in the response.
|
|
125
|
-
"""
|
|
126
|
-
|
|
127
|
-
return self._post(category='projects', resource='update', query_id=project, data=data, **options)
|
|
128
|
-
|