dnastack-client-library 3.1.125__py3-none-any.whl → 3.1.127__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.
@@ -73,6 +73,9 @@ def init_drs_commands(group: Group):
73
73
  download_urls = []
74
74
  full_output = not quiet and in_interactive_shell
75
75
 
76
+ if not output_dir:
77
+ output_dir = os.getcwd()
78
+
76
79
  if len(id_or_urls) > 0:
77
80
  download_urls = list(id_or_urls)
78
81
  elif input_file:
@@ -271,6 +271,16 @@ class CollectionServiceClient(BaseServiceClient):
271
271
  params=params, trace_context=trace)
272
272
  return None
273
273
 
274
+ def delete_collection(self,
275
+ collection_id: str,
276
+ trace: Optional[Span] = None) -> None:
277
+ trace = trace or Span(origin=self)
278
+ local_logger = trace.create_span_logger(self._logger)
279
+ with self.create_http_session() as session:
280
+ delete_url = self._get_single_collection_url(collection_id)
281
+ session.delete(delete_url, trace_context=trace)
282
+ return None
283
+
274
284
  def data_connect_endpoint(self,
275
285
  collection: Union[str, Collection, None] = None,
276
286
  no_auth: bool = False) -> ServiceEndpoint:
dnastack/constants.py CHANGED
@@ -1,5 +1,5 @@
1
1
  import os
2
2
 
3
- __version__ = "v3.1.125"
3
+ __version__ = "v3.1.127"
4
4
 
5
5
  LOCAL_STORAGE_DIRECTORY = os.path.join(os.path.expanduser("~"), '.dnastack')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dnastack-client-library
3
- Version: 3.1.125
3
+ Version: 3.1.127
4
4
  Summary: "DNAstack's GA4GH library and CLI"
5
5
  Home-page: https://www.dnastack.com
6
6
  Author: DNAstack
@@ -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=3mXW59_7G24in6viogPtdMx1uWRXKdHJNrPYpjgj54M,114
3
+ dnastack/constants.py,sha256=yUyZbtLKCiKU-HBMvi83ZkgkBc97Jzprx8xb7MNkMt4,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
@@ -47,7 +47,7 @@ dnastack/cli/commands/dataconnect/commands.py,sha256=Xeu7FLIgTJj0QRSZ-4H6SabsqEJ
47
47
  dnastack/cli/commands/dataconnect/tables.py,sha256=sP9X4gGWEHDUL_oODYvEe4YUdBIVnjU81BSZhOkQAik,2205
48
48
  dnastack/cli/commands/dataconnect/utils.py,sha256=7psRouHUsg2QEemZAhzHVsjy1rza63n8Cvz4dHasuJ0,2187
49
49
  dnastack/cli/commands/drs/__init__.py,sha256=XGPfCsdOyZyc67ptYmM903US741hDCKaTowVtysC6H8,325
50
- dnastack/cli/commands/drs/commands.py,sha256=9n-f24ODZNCpxgIirdzsIEnZqVRw2jFkvXiCsW4ZnOI,5405
50
+ dnastack/cli/commands/drs/commands.py,sha256=637is2PLyBnER9rjPlYd_QjKO4jEmlR_Uh_vLe_dCLs,5470
51
51
  dnastack/cli/commands/drs/utils.py,sha256=tGogaIlXKnk03GqitzeDfo893JlP7Nc_X28sH-yQUrI,427
52
52
  dnastack/cli/commands/publisher/__init__.py,sha256=G8WNdx1UwanoA4X349ghv8Zyv5YizB8ryeJmwu9px8o,443
53
53
  dnastack/cli/commands/publisher/collections/__init__.py,sha256=KmclN_KY3ctVhtv-i8rxXpWTshPCj1tY6yhud4vrXYQ,636
@@ -113,7 +113,7 @@ 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=5lWBuvewe9FZ5-jLnzHINcnhfO9QFCdEGHclP4mcstk,15832
116
+ dnastack/client/collections/client.py,sha256=sBR0WDCgp4W257iAOFLTRGbOOh8oGUrkpoBlBWWd_FA,16289
117
117
  dnastack/client/collections/model.py,sha256=JO-eC_jc7hY9PBvST3x1vkmJE0LPDAbcUq5VBKcGyLM,3492
118
118
  dnastack/client/datasources/__init__.py,sha256=HxDIHuQX8KMWr3o70ucL3x79pXKaIHbBq7JqmyoRGxM,179
119
119
  dnastack/client/datasources/client.py,sha256=v-qilRqu0glEdzyHxm64Sw_1khHje499LtzxfrXRqas,4766
@@ -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.125.dist-info/licenses/LICENSE,sha256=uwybO-wUbQhxkosgjhJlxmYATMy-AzoULFO9FUedE34,11580
187
- dnastack_client_library-3.1.125.dist-info/METADATA,sha256=5F_jybH7GePz7bzjt2S3UqGw85sOIwlpatKOTlUk2Xw,988
188
- dnastack_client_library-3.1.125.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
189
- dnastack_client_library-3.1.125.dist-info/entry_points.txt,sha256=Y6OeicsiyGn3-8D-SiV4NiKlJgXfkSqK88kFBR6R1rY,89
190
- dnastack_client_library-3.1.125.dist-info/top_level.txt,sha256=P2RgRyqJ7hfNy1wLVRoVLJYEppUVkCX3syGK9zBqkt8,9
191
- dnastack_client_library-3.1.125.dist-info/RECORD,,
186
+ dnastack_client_library-3.1.127.dist-info/licenses/LICENSE,sha256=uwybO-wUbQhxkosgjhJlxmYATMy-AzoULFO9FUedE34,11580
187
+ dnastack_client_library-3.1.127.dist-info/METADATA,sha256=QnsM1daKrqoVMUwsJaUHdZ92yPcisYSUQT5DW0OvJs4,988
188
+ dnastack_client_library-3.1.127.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
189
+ dnastack_client_library-3.1.127.dist-info/entry_points.txt,sha256=Y6OeicsiyGn3-8D-SiV4NiKlJgXfkSqK88kFBR6R1rY,89
190
+ dnastack_client_library-3.1.127.dist-info/top_level.txt,sha256=P2RgRyqJ7hfNy1wLVRoVLJYEppUVkCX3syGK9zBqkt8,9
191
+ dnastack_client_library-3.1.127.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.0.0)
2
+ Generator: setuptools (80.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5