pyPreservica 2.9.3__py3-none-any.whl → 3.3.3__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 pyPreservica might be problematic. Click here for more details.
- pyPreservica/__init__.py +15 -3
- pyPreservica/adminAPI.py +29 -22
- pyPreservica/authorityAPI.py +6 -7
- pyPreservica/common.py +85 -14
- pyPreservica/contentAPI.py +56 -5
- pyPreservica/entityAPI.py +652 -215
- pyPreservica/mdformsAPI.py +87 -6
- pyPreservica/monitorAPI.py +2 -2
- pyPreservica/parAPI.py +1 -37
- pyPreservica/retentionAPI.py +5 -4
- pyPreservica/settingsAPI.py +295 -0
- pyPreservica/uploadAPI.py +163 -398
- pyPreservica/webHooksAPI.py +1 -1
- pyPreservica/workflowAPI.py +8 -8
- {pyPreservica-2.9.3.dist-info → pypreservica-3.3.3.dist-info}/METADATA +18 -5
- pypreservica-3.3.3.dist-info/RECORD +20 -0
- {pyPreservica-2.9.3.dist-info → pypreservica-3.3.3.dist-info}/WHEEL +1 -1
- pyPreservica-2.9.3.dist-info/RECORD +0 -19
- {pyPreservica-2.9.3.dist-info → pypreservica-3.3.3.dist-info/licenses}/LICENSE.txt +0 -0
- {pyPreservica-2.9.3.dist-info → pypreservica-3.3.3.dist-info}/top_level.txt +0 -0
pyPreservica/webHooksAPI.py
CHANGED
|
@@ -8,7 +8,6 @@ author: James Carr
|
|
|
8
8
|
licence: Apache License 2.0
|
|
9
9
|
|
|
10
10
|
"""
|
|
11
|
-
import json
|
|
12
11
|
from http.server import BaseHTTPRequestHandler
|
|
13
12
|
from urllib.parse import urlparse, parse_qs
|
|
14
13
|
import hmac
|
|
@@ -75,6 +74,7 @@ class TriggerType(Enum):
|
|
|
75
74
|
INDEXED = "FULL_TEXT_INDEXED"
|
|
76
75
|
SECURITY_CHANGED = "CHANGED_SECURITY_DESCRIPTOR"
|
|
77
76
|
INGEST_FAILED = "INGEST_FAILED"
|
|
77
|
+
CHANGE_ASSET_VISIBILITY = "CHANGE_ASSET_VISIBILITY"
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
class WebHooksAPI(AuthenticatedAPI):
|
pyPreservica/workflowAPI.py
CHANGED
|
@@ -81,10 +81,10 @@ class WorkflowAPI(AuthenticatedAPI):
|
|
|
81
81
|
|
|
82
82
|
def __init__(self, username: str = None, password: str = None, tenant: str = None, server: str = None,
|
|
83
83
|
use_shared_secret: bool = False, two_fa_secret_key: str = None,
|
|
84
|
-
protocol: str = "https", request_hook: Callable = None):
|
|
84
|
+
protocol: str = "https", request_hook: Callable = None, credentials_path: str = 'credentials.properties'):
|
|
85
85
|
|
|
86
86
|
super().__init__(username, password, tenant, server, use_shared_secret, two_fa_secret_key,
|
|
87
|
-
protocol, request_hook)
|
|
87
|
+
protocol, request_hook, credentials_path)
|
|
88
88
|
self.base_url = "sdb/rest/workflow"
|
|
89
89
|
|
|
90
90
|
def get_workflow_contexts_by_type(self, workflow_type: str):
|
|
@@ -332,13 +332,13 @@ class WorkflowAPI(AuthenticatedAPI):
|
|
|
332
332
|
creator = kwargs.get("creator")
|
|
333
333
|
params["creator"] = creator
|
|
334
334
|
|
|
335
|
-
if "
|
|
336
|
-
from_date = kwargs.get("
|
|
337
|
-
params["from"] = from_date
|
|
335
|
+
if "from_date" in kwargs:
|
|
336
|
+
from_date = kwargs.get("from_date")
|
|
337
|
+
params["from"] = parse_date_to_iso(from_date)
|
|
338
338
|
|
|
339
|
-
if "
|
|
340
|
-
to_date = kwargs.get("
|
|
341
|
-
params["to"] = to_date
|
|
339
|
+
if "to_date" in kwargs:
|
|
340
|
+
to_date = kwargs.get("to_date")
|
|
341
|
+
params["to"] = parse_date_to_iso(to_date)
|
|
342
342
|
|
|
343
343
|
params["start"] = int(start_value)
|
|
344
344
|
params["max"] = int(maximum)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pyPreservica
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.3.3
|
|
4
4
|
Summary: Python library for the Preservica API
|
|
5
5
|
Home-page: https://pypreservica.readthedocs.io/
|
|
6
6
|
Author: James Carr
|
|
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
-
Classifier:
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
20
|
Classifier: Operating System :: OS Independent
|
|
21
21
|
Classifier: Topic :: System :: Archiving
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
@@ -24,12 +24,25 @@ License-File: LICENSE.txt
|
|
|
24
24
|
Requires-Dist: requests
|
|
25
25
|
Requires-Dist: urllib3
|
|
26
26
|
Requires-Dist: certifi
|
|
27
|
-
Requires-Dist: boto3
|
|
28
|
-
Requires-Dist: botocore
|
|
27
|
+
Requires-Dist: boto3>=1.38.0
|
|
28
|
+
Requires-Dist: botocore>=1.38.0
|
|
29
29
|
Requires-Dist: s3transfer
|
|
30
30
|
Requires-Dist: azure-storage-blob
|
|
31
31
|
Requires-Dist: tqdm
|
|
32
32
|
Requires-Dist: pyotp
|
|
33
|
+
Requires-Dist: python-dateutil
|
|
34
|
+
Dynamic: author
|
|
35
|
+
Dynamic: author-email
|
|
36
|
+
Dynamic: classifier
|
|
37
|
+
Dynamic: description
|
|
38
|
+
Dynamic: description-content-type
|
|
39
|
+
Dynamic: home-page
|
|
40
|
+
Dynamic: keywords
|
|
41
|
+
Dynamic: license
|
|
42
|
+
Dynamic: license-file
|
|
43
|
+
Dynamic: project-url
|
|
44
|
+
Dynamic: requires-dist
|
|
45
|
+
Dynamic: summary
|
|
33
46
|
|
|
34
47
|
|
|
35
48
|
# pyPreservica
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
pyPreservica/__init__.py,sha256=KIbmVi2I4p8xCxvtnzU-liKWrg0zJG-qOhw9YLFZORU,1250
|
|
2
|
+
pyPreservica/adminAPI.py,sha256=_ZTb8T708loYn8UdFgZ4G5RTef9Hd2HHtjKnnrzBAtY,38041
|
|
3
|
+
pyPreservica/authorityAPI.py,sha256=A52sFiAK4E4mlend_dknNIOW2BEwKXcLFI02anZBt3U,9211
|
|
4
|
+
pyPreservica/common.py,sha256=TV4VgO4QI5YDdPYvm9ue1lxqSIf2E2j0_tQbFmwMf0U,39922
|
|
5
|
+
pyPreservica/contentAPI.py,sha256=nnWImPoS7yt47yfohbtG1wWi1dNS_XdellWaPCE9iUk,25041
|
|
6
|
+
pyPreservica/entityAPI.py,sha256=kyw03RnxKEveViQvdDy6MdscXOcAZxs9LC7hpKe3B3g,140235
|
|
7
|
+
pyPreservica/mdformsAPI.py,sha256=A2YTT5uh6j1k_kg_33492cplwZc_jYv6zmiIt5Rvx6c,23259
|
|
8
|
+
pyPreservica/monitorAPI.py,sha256=LJOUrynBOWKlNiYpZ1iH8qB1oIIuKX1Ms1SRBcuXohA,6274
|
|
9
|
+
pyPreservica/opex.py,sha256=ccra1S4ojUXS3PlbU8WfxajOkJrwG4OykBnNrYP_jus,4875
|
|
10
|
+
pyPreservica/parAPI.py,sha256=f0ZUxLd0U-BW6kBx5K7W2Pv7NjG3MkTNydmxQ3U1ZVE,9296
|
|
11
|
+
pyPreservica/retentionAPI.py,sha256=QUTCbN4P3IpqmrebU_wd3n5ZVcyxVLTFAli8Y_GxOW4,24843
|
|
12
|
+
pyPreservica/settingsAPI.py,sha256=jXnMOCq3mimta6E-Os3J1I1if2pYsjLpOazAx8L-ZQI,10721
|
|
13
|
+
pyPreservica/uploadAPI.py,sha256=UVRFcLDH4s0Tik0vWmkQ6WkJX2h5Yk1MnJZX83HtcpQ,82084
|
|
14
|
+
pyPreservica/webHooksAPI.py,sha256=KMObsdHp_0K0HjJUl5oaFh-vs21GCAQZo2ZTKkY38R8,6872
|
|
15
|
+
pyPreservica/workflowAPI.py,sha256=bIoXNlr8uBQJ9Nkd1EdpN0uVt_UwtELa_YXpX1PEJh4,17619
|
|
16
|
+
pypreservica-3.3.3.dist-info/licenses/LICENSE.txt,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
|
17
|
+
pypreservica-3.3.3.dist-info/METADATA,sha256=IwjGyIEvGOgcN3yzo9LIFd9jZirLt0r4lJtTIyhjaHA,3077
|
|
18
|
+
pypreservica-3.3.3.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
19
|
+
pypreservica-3.3.3.dist-info/top_level.txt,sha256=iIBh6NAznYQHOV8mv_y_kGKSDITek9rANyFDwJsbU-c,13
|
|
20
|
+
pypreservica-3.3.3.dist-info/RECORD,,
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
pyPreservica/__init__.py,sha256=SagdxY9UObrweDhxkcVBjGxip8X0jaZIxO6dbJN5QBk,1177
|
|
2
|
-
pyPreservica/adminAPI.py,sha256=511bc5KtrCAXbDyBk39dmDnxUVDaOu6xaiyu0jYhxa4,37781
|
|
3
|
-
pyPreservica/authorityAPI.py,sha256=Eule8g6LXr8c8SFcJgpRah4lH1FgevUItO5HhHDEaZE,9172
|
|
4
|
-
pyPreservica/common.py,sha256=qVmH5xazlxX02pZaYAX1GT-k0fDuzF8JmEIrYBGiTtw,37648
|
|
5
|
-
pyPreservica/contentAPI.py,sha256=6L7z5KZZDuBBLTm9GQ9RLOhugAawPnuQIgv1NZf0vIU,22060
|
|
6
|
-
pyPreservica/entityAPI.py,sha256=BxrJ-irL0-ohZGVd5uduvFgDgMvrB3Xf2pzTaZ00-Cg,118999
|
|
7
|
-
pyPreservica/mdformsAPI.py,sha256=v_PKjddWHr2-Lo3zqHXikupq4PJvyrwZEEhPHeKDdGY,19126
|
|
8
|
-
pyPreservica/monitorAPI.py,sha256=HD-PUPdSI9wGAa07e2_2_-FLINH8PoWUwpFogz7F-j4,6269
|
|
9
|
-
pyPreservica/opex.py,sha256=ccra1S4ojUXS3PlbU8WfxajOkJrwG4OykBnNrYP_jus,4875
|
|
10
|
-
pyPreservica/parAPI.py,sha256=bgaQvYfWNnzdD7ibKMV3ZV85pNkEdSoLsgVigoiFFfw,10771
|
|
11
|
-
pyPreservica/retentionAPI.py,sha256=31yKHbatxj9kt5vbqyTeg98nrMotd2iL4jsiNhcOLg4,24770
|
|
12
|
-
pyPreservica/uploadAPI.py,sha256=3XV3_i7mwp0IPcnx1sW4U01rkphtAzq5Se3G_l28wIM,96469
|
|
13
|
-
pyPreservica/webHooksAPI.py,sha256=_K3KUOsmwYf8qMa-mD47sAmNUW7Pzb9oKVpS0VoSbC0,6827
|
|
14
|
-
pyPreservica/workflowAPI.py,sha256=wDDR5_CsJ3dhX79E5mJaziAtgYb830J0ZpNJppzgvqk,17493
|
|
15
|
-
pyPreservica-2.9.3.dist-info/LICENSE.txt,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
|
16
|
-
pyPreservica-2.9.3.dist-info/METADATA,sha256=iZYf9PgiA9A1MrvRTLRhJu3pb63eMuJSKZhnUmge3-U,2779
|
|
17
|
-
pyPreservica-2.9.3.dist-info/WHEEL,sha256=YiKiUUeZQGmGJoR_0N1Y933DOBowq4AIvDe2-UIy8E4,91
|
|
18
|
-
pyPreservica-2.9.3.dist-info/top_level.txt,sha256=iIBh6NAznYQHOV8mv_y_kGKSDITek9rANyFDwJsbU-c,13
|
|
19
|
-
pyPreservica-2.9.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|