dcicutils 8.9.0.1b7__py3-none-any.whl → 8.9.0.1b8__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.
dcicutils/portal_utils.py CHANGED
@@ -17,7 +17,7 @@ from uuid import uuid4 as uuid
17
17
  from webtest.app import TestApp, TestResponse
18
18
  from wsgiref.simple_server import make_server as wsgi_make_server
19
19
  from dcicutils.common import APP_SMAHT, OrchestratedApp, ORCHESTRATED_APPS
20
- from dcicutils.ff_utils import delete_metadata, get_metadata, get_schema, patch_metadata, post_metadata, purge_metadata
20
+ from dcicutils.ff_utils import get_metadata, get_schema, patch_metadata, post_metadata
21
21
  from dcicutils.misc_utils import to_camel_case, VirtualApp
22
22
  from dcicutils.schema_utils import get_identifying_properties
23
23
  from dcicutils.tmpfile_utils import temporary_file
@@ -280,20 +280,6 @@ class Portal:
280
280
  add_on="check_only=True" if check_only else "")
281
281
  return self.post(f"/{object_type}{'?check_only=True' if check_only else ''}", data).json()
282
282
 
283
- def delete_metadata(self, object_id: str) -> Optional[dict]:
284
- if isinstance(object_id, str) and object_id:
285
- if self.key:
286
- return delete_metadata(obj_id=object_id, key=self.key)
287
- else:
288
- return self.patch_metadata(object_id, {"status": "deleted"})
289
- return None
290
-
291
- def purge_metadata(self, object_id: str) -> Optional[dict]:
292
- if isinstance(object_id, str) and object_id:
293
- if self.key:
294
- return purge_metadata(obj_id=object_id, key=self.key)
295
- return None
296
-
297
283
  def get_health(self) -> OptionalResponse:
298
284
  return self.get("/health")
299
285
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dcicutils
3
- Version: 8.9.0.1b7
3
+ Version: 8.9.0.1b8
4
4
  Summary: Utility package for interacting with the 4DN Data Portal and other 4DN resources
5
5
  Home-page: https://github.com/4dn-dcic/utils
6
6
  License: MIT
@@ -48,7 +48,7 @@ dcicutils/misc_utils.py,sha256=-syqTAj8DESiiP_KHoyBv9VvfboFYB03QbBlmXnBZXw,10942
48
48
  dcicutils/obfuscation_utils.py,sha256=fo2jOmDRC6xWpYX49u80bVNisqRRoPskFNX3ymFAmjw,5963
49
49
  dcicutils/opensearch_utils.py,sha256=V2exmFYW8Xl2_pGFixF4I2Cc549Opwe4PhFi5twC0M8,1017
50
50
  dcicutils/portal_object_utils.py,sha256=Az3n1aL-PQkN5gOFE6ZqC2XkYsqiwKlq7-tZggs1QN4,11062
51
- dcicutils/portal_utils.py,sha256=TDGmJqxqWfuqdJZ-ARqbOxPXNuzlqNxPD49jMEY4VQA,45217
51
+ dcicutils/portal_utils.py,sha256=cDMaqEW3aSDwhjJlsaVS4yEpYsmWo6yVXnLA9f4J_JY,44621
52
52
  dcicutils/progress_bar.py,sha256=UT7lxb-rVF_gp4yjY2Tg4eun1naaH__hB4_v3O85bcE,19468
53
53
  dcicutils/project_utils.py,sha256=qPdCaFmWUVBJw4rw342iUytwdQC0P-XKpK4mhyIulMM,31250
54
54
  dcicutils/qa_checkers.py,sha256=cdXjeL0jCDFDLT8VR8Px78aS10hwNISOO5G_Zv2TZ6M,20534
@@ -73,8 +73,8 @@ dcicutils/trace_utils.py,sha256=g8kwV4ebEy5kXW6oOrEAUsurBcCROvwtZqz9fczsGRE,1769
73
73
  dcicutils/validation_utils.py,sha256=cMZIU2cY98FYtzK52z5WUYck7urH6JcqOuz9jkXpqzg,14797
74
74
  dcicutils/variant_utils.py,sha256=2H9azNx3xAj-MySg-uZ2SFqbWs4kZvf61JnK6b-h4Qw,4343
75
75
  dcicutils/zip_utils.py,sha256=_Y9EmL3D2dUZhxucxHvrtmmlbZmK4FpSsHEb7rGSJLU,3265
76
- dcicutils-8.9.0.1b7.dist-info/LICENSE.txt,sha256=qnwSmfnEWMl5l78VPDEzAmEbLVrRqQvfUQiHT0ehrOo,1102
77
- dcicutils-8.9.0.1b7.dist-info/METADATA,sha256=CHyWwBw107Kz6DB32vhpHvVNXDeW2HjNsP_TMMruyWk,3439
78
- dcicutils-8.9.0.1b7.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
79
- dcicutils-8.9.0.1b7.dist-info/entry_points.txt,sha256=51Q4F_2V10L0282W7HFjP4jdzW4K8lnWDARJQVFy_hw,270
80
- dcicutils-8.9.0.1b7.dist-info/RECORD,,
76
+ dcicutils-8.9.0.1b8.dist-info/LICENSE.txt,sha256=qnwSmfnEWMl5l78VPDEzAmEbLVrRqQvfUQiHT0ehrOo,1102
77
+ dcicutils-8.9.0.1b8.dist-info/METADATA,sha256=fjU4SZWAmAycoQtk3BLsCDFM0ZpwcYDI7BSxo7ISo6A,3439
78
+ dcicutils-8.9.0.1b8.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
79
+ dcicutils-8.9.0.1b8.dist-info/entry_points.txt,sha256=51Q4F_2V10L0282W7HFjP4jdzW4K8lnWDARJQVFy_hw,270
80
+ dcicutils-8.9.0.1b8.dist-info/RECORD,,