dnastack-client-library 3.1.120a0__py3-none-any.whl → 3.1.124__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.
@@ -17,7 +17,7 @@ def init_datasources_commands(group: Group):
17
17
  ArgumentSpec(
18
18
  name='type',
19
19
  arg_names=['--type'],
20
- help='Filter datasources by type (e.g., "AWS")',
20
+ help='Filter datasources by type (e.g., "Amazon AWS S3, postgresql")',
21
21
  required=False
22
22
  ),
23
23
  ]
@@ -21,6 +21,10 @@ from dnastack.http.session import ClientError, HttpSession, HttpError
21
21
  STANDARD_COLLECTION_SERVICE_TYPE_V1_0 = ServiceType(group='com.dnastack',
22
22
  artifact='collection-service',
23
23
  version='1.0.0')
24
+ STANDARD_DATASOURCE_SERVICE_TYPE_V1_0 = ServiceType(group='com.dnastack',
25
+ artifact='collection-service',
26
+ version='1.0.0')
27
+
24
28
 
25
29
  # Feature: No support for service registry integration
26
30
  # Feature: Only using "plural" per-collection data connect endpoint
@@ -29,6 +33,11 @@ EXPLORER_COLLECTION_SERVICE_TYPE_V1_0 = ServiceType(group='com.dnastack.explorer
29
33
  version='1.0.0')
30
34
 
31
35
 
36
+ STANDARD_DATA_SOURCE_SERVICE_TYPE_V1_0 = ServiceType(group='com.dnastack',
37
+ artifact='collection-service',
38
+ version='1.0.0')
39
+
40
+
32
41
  class InvalidApiResponse(RuntimeError):
33
42
  pass
34
43
 
@@ -5,7 +5,8 @@ from dnastack.client.base_client import BaseServiceClient
5
5
  from dnastack.client.base_exceptions import (
6
6
  UnauthenticatedApiAccessError, UnauthorizedApiAccessError
7
7
  )
8
- from dnastack.client.collections.client import STANDARD_COLLECTION_SERVICE_TYPE_V1_0
8
+ from dnastack.client.collections.client import STANDARD_COLLECTION_SERVICE_TYPE_V1_0, \
9
+ STANDARD_DATASOURCE_SERVICE_TYPE_V1_0
9
10
  from dnastack.client.collections.model import PageableApiError
10
11
  from dnastack.client.datasources.model import DataSource, DataSourceListOptions
11
12
  from dnastack.client.result_iterator import ResultLoader, InactiveLoaderError, ResultIterator
@@ -96,14 +97,14 @@ class DataSourceServiceClient(BaseServiceClient):
96
97
 
97
98
  @staticmethod
98
99
  def get_adapter_type() -> str:
99
- return 'collections'
100
+ return 'dataousrces'
100
101
 
101
102
  @classmethod
102
103
  def get_supported_service_types(cls) -> List[str]:
103
104
  """
104
105
  Returns supported service types.
105
106
  """
106
- return [ STANDARD_COLLECTION_SERVICE_TYPE_V1_0,]
107
+ return [ STANDARD_DATASOURCE_SERVICE_TYPE_V1_0,]
107
108
 
108
109
  def list_datasources(self, type: Optional[str] = None, trace: Optional[Span] = None,
109
110
  max_results: Optional[int] = None) -> DataSourcesResponse:
@@ -114,7 +115,7 @@ class DataSourceServiceClient(BaseServiceClient):
114
115
 
115
116
  trace = trace or Span(origin=self)
116
117
  loader = DataSourceListResultLoader(
117
- service_url=f"{self.url}/connections/data-sources",
118
+ service_url=f"{self.url}data-sources",
118
119
  http_session=self.create_http_session(),
119
120
  trace=trace,
120
121
  list_options=list_options,
@@ -113,6 +113,7 @@ class EventType(str, Enum):
113
113
 
114
114
  class RunEventMetadata(BaseModel):
115
115
  message: Optional[str]
116
+ state: Optional[State]
116
117
  old_state: Optional[State]
117
118
  new_state: Optional[State]
118
119
 
dnastack/constants.py CHANGED
@@ -1,5 +1,5 @@
1
1
  import os
2
2
 
3
- __version__ = "v3.1.120a"
3
+ __version__ = "v3.1.124"
4
4
 
5
5
  LOCAL_STORAGE_DIRECTORY = os.path.join(os.path.expanduser("~"), '.dnastack')
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: dnastack-client-library
3
- Version: 3.1.120a0
3
+ Version: 3.1.124
4
4
  Summary: "DNAstack's GA4GH library and CLI"
5
5
  Home-page: https://www.dnastack.com
6
6
  Author: DNAstack
@@ -23,5 +23,6 @@ Provides-Extra: test
23
23
  Requires-Dist: selenium>=3.141.0; extra == "test"
24
24
  Requires-Dist: pyjwt>=2.1.0; extra == "test"
25
25
  Requires-Dist: jsonpath-ng>=1.5.3; extra == "test"
26
+ Dynamic: license-file
26
27
 
27
28
  "GA4GH API client and command line tool. Please check out [the documentation](https://docs.omics.ai/products/analysis/python-library) for more details."
@@ -1,6 +1,6 @@
1
1
  dnastack/__init__.py,sha256=Bpfm77MeoZNmZHSgDK9wlgVPkcdE73ur6_7Zihorb4o,263
2
2
  dnastack/__main__.py,sha256=3rydT8oj5G1IN0asiqv9oaQw2xmyIlVge8c8wUjo0HA,3532
3
- dnastack/constants.py,sha256=emInQGO_r53MWwHbI63wDj3e9qlVQaEQ5oP5zP86Qx0,115
3
+ dnastack/constants.py,sha256=SeL_e6zU1ITEcTndBvJJpkTvNcFJHIUIENlLyva-uTc,114
4
4
  dnastack/feature_flags.py,sha256=RK_V_Ovncoe6NeTheAA_frP-kYkZC1fDlTbbup2KYG4,1419
5
5
  dnastack/json_path.py,sha256=TyghhDf7nGQmnsUWBhenU_fKsE_Ez-HLVER6HgH5-hU,2700
6
6
  dnastack/omics_cli.py,sha256=ZppKZTHv_XjUUZyRIzSkx0Ug5ODAYrCOTsU0ezCOVrA,3694
@@ -56,7 +56,7 @@ dnastack/cli/commands/publisher/collections/items.py,sha256=gmSCaXXqxk4lElZnqkU6
56
56
  dnastack/cli/commands/publisher/collections/tables.py,sha256=N348MU_p-OKweJwKYtNbpvCD3ZmGGbS-quz7gnsAc1c,2130
57
57
  dnastack/cli/commands/publisher/collections/utils.py,sha256=GNgGv29z7eumQqbw1IFFasJeDyxH2KQGQl0q6UPooVU,6244
58
58
  dnastack/cli/commands/publisher/datasources/__init__.py,sha256=90suC61lfFF1WzIU9f8lO0_DiLWIQF2Dy46_Yad3CD8,327
59
- dnastack/cli/commands/publisher/datasources/commands.py,sha256=TdR55CxqlpN62GiHeWIfPfRsorfrzDj7GwZlmBqseA0,1298
59
+ dnastack/cli/commands/publisher/datasources/commands.py,sha256=nG_h44zWA061J5UZCofNhYGpBY-rJhAQuvPEdaGS8LY,1320
60
60
  dnastack/cli/commands/publisher/datasources/utils.py,sha256=DGVZY6e0Faa0sNRXxqu50z7kGACX4YYkF-cgtMLaUQc,745
61
61
  dnastack/cli/commands/workbench/__init__.py,sha256=H4CGbc31-21mRZqJMtzi2Cg4e_D9a9ibqFjwXQTcXNY,1092
62
62
  dnastack/cli/commands/workbench/utils.py,sha256=V2I192k4XAg2h-DrsdatqIZfguflh6WR7q5pSBojUX0,4354
@@ -113,10 +113,10 @@ dnastack/client/factory.py,sha256=PQGYUGhKeqyJtEtc-bZM5OlEup9K7lB-qwmNiII_4HU,62
113
113
  dnastack/client/models.py,sha256=qkk06k12UZ-kG8x2fT198CX9TFJ8Svt3BjfzuTitqBA,2888
114
114
  dnastack/client/result_iterator.py,sha256=00zEs7YbPJyt8d-6j7eHnmSVurP8hIOarj4FwsiR7xc,1908
115
115
  dnastack/client/collections/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
116
- dnastack/client/collections/client.py,sha256=ea7N7fDP5jdyPT3_gwd3WVm_wsGZ4ApTm6qdUr3X70k,15376
116
+ dnastack/client/collections/client.py,sha256=5lWBuvewe9FZ5-jLnzHINcnhfO9QFCdEGHclP4mcstk,15832
117
117
  dnastack/client/collections/model.py,sha256=JO-eC_jc7hY9PBvST3x1vkmJE0LPDAbcUq5VBKcGyLM,3492
118
118
  dnastack/client/datasources/__init__.py,sha256=HxDIHuQX8KMWr3o70ucL3x79pXKaIHbBq7JqmyoRGxM,179
119
- dnastack/client/datasources/client.py,sha256=AfYxu18QRLh3tNe6uwS_Z00VwZCZNw7fUYMsEDDMe40,4734
119
+ dnastack/client/datasources/client.py,sha256=v-qilRqu0glEdzyHxm64Sw_1khHje499LtzxfrXRqas,4766
120
120
  dnastack/client/datasources/model.py,sha256=dV9Sf05ivIq0ubwIIYK3kSv1xJ_TtjxvVp_ddI9aHEk,214
121
121
  dnastack/client/service_registry/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
122
122
  dnastack/client/service_registry/client.py,sha256=r7D8CnPJLbNkc03g2PYHt880Ba1oPW2d8B0ShP0p4Eo,1131
@@ -129,7 +129,7 @@ dnastack/client/workbench/base_client.py,sha256=3Efiu-r8YZwExUQV2W1rkRVD-I-h4y51
129
129
  dnastack/client/workbench/models.py,sha256=RBo7wmWMSDkgiFZHaWh2ehKeTM8ERywug1bMGKDOm0k,446
130
130
  dnastack/client/workbench/ewes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
131
131
  dnastack/client/workbench/ewes/client.py,sha256=yIqjwyyY9q0NrxpTX6LrnlnjavHoa6Fo073O3Lokkaw,15637
132
- dnastack/client/workbench/ewes/models.py,sha256=LUhXKkmCZmxNkcaIdyiKdGWrdtTI51cRw4JZ7WZHF6A,8187
132
+ dnastack/client/workbench/ewes/models.py,sha256=wnzthvBjzG_Zq1lyVJBTN5gWgT9gO1sZ0-Q91isy7FA,8214
133
133
  dnastack/client/workbench/samples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
134
134
  dnastack/client/workbench/samples/client.py,sha256=2X34SYTjV6n4yZz0q7Kaa4NPWDHRi2ut0uJWL3zXZWA,5901
135
135
  dnastack/client/workbench/samples/models.py,sha256=qGR--2b-Z71PlNXZt8Sg5LbrDNICFV54l3IWetwCTw8,1504
@@ -183,9 +183,9 @@ dnastack/http/authenticators/oauth2_adapter/client_credential.py,sha256=cCVZa4B1
183
183
  dnastack/http/authenticators/oauth2_adapter/device_code_flow.py,sha256=_OMHPf7qekPn_oSCBb41iYg9100sQMVzfJiKZHdh26w,6529
184
184
  dnastack/http/authenticators/oauth2_adapter/factory.py,sha256=r8K6swt5zhraP74KhTL2K4sQ71HWAMLM0oHg8qQT4BA,965
185
185
  dnastack/http/authenticators/oauth2_adapter/models.py,sha256=U11r8DZsWvjIRNCJE1mmQMuprZw3fpFwFBg7vmI5w48,660
186
- dnastack_client_library-3.1.120a0.dist-info/LICENSE,sha256=uwybO-wUbQhxkosgjhJlxmYATMy-AzoULFO9FUedE34,11580
187
- dnastack_client_library-3.1.120a0.dist-info/METADATA,sha256=6fbWkDqg_o_lE-mKC7oDKWMkqeqKlHl3s8dDDdsKBeU,968
188
- dnastack_client_library-3.1.120a0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
189
- dnastack_client_library-3.1.120a0.dist-info/entry_points.txt,sha256=Y6OeicsiyGn3-8D-SiV4NiKlJgXfkSqK88kFBR6R1rY,89
190
- dnastack_client_library-3.1.120a0.dist-info/top_level.txt,sha256=P2RgRyqJ7hfNy1wLVRoVLJYEppUVkCX3syGK9zBqkt8,9
191
- dnastack_client_library-3.1.120a0.dist-info/RECORD,,
186
+ dnastack_client_library-3.1.124.dist-info/licenses/LICENSE,sha256=uwybO-wUbQhxkosgjhJlxmYATMy-AzoULFO9FUedE34,11580
187
+ dnastack_client_library-3.1.124.dist-info/METADATA,sha256=a59tF6ZpgSCU5doxUe4keDNLvCfojlvECIFiYNDIw4o,988
188
+ dnastack_client_library-3.1.124.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
189
+ dnastack_client_library-3.1.124.dist-info/entry_points.txt,sha256=Y6OeicsiyGn3-8D-SiV4NiKlJgXfkSqK88kFBR6R1rY,89
190
+ dnastack_client_library-3.1.124.dist-info/top_level.txt,sha256=P2RgRyqJ7hfNy1wLVRoVLJYEppUVkCX3syGK9zBqkt8,9
191
+ dnastack_client_library-3.1.124.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.0.0)
2
+ Generator: setuptools (79.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5