pangea-sdk 5.3.0__py3-none-any.whl → 5.4.0__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.
- pangea/__init__.py +1 -1
- pangea/asyncio/services/sanitize.py +1 -1
- pangea/services/sanitize.py +1 -18
- {pangea_sdk-5.3.0.dist-info → pangea_sdk-5.4.0.dist-info}/METADATA +11 -11
- {pangea_sdk-5.3.0.dist-info → pangea_sdk-5.4.0.dist-info}/RECORD +6 -6
- {pangea_sdk-5.3.0.dist-info → pangea_sdk-5.4.0.dist-info}/WHEEL +0 -0
pangea/__init__.py
CHANGED
@@ -97,7 +97,7 @@ class SanitizeAsync(ServiceBaseAsync):
|
|
97
97
|
performed.
|
98
98
|
|
99
99
|
Examples:
|
100
|
-
with open("/path/to/file.
|
100
|
+
with open("/path/to/file.txt", "rb") as f:
|
101
101
|
response = await sanitize.sanitize(
|
102
102
|
file=f,
|
103
103
|
transfer_method=TransferMethod.POST_URL,
|
pangea/services/sanitize.py
CHANGED
@@ -46,12 +46,6 @@ class SanitizeContent(APIRequestModel):
|
|
46
46
|
analysis engine results. Only works if redact is enabled.
|
47
47
|
"""
|
48
48
|
|
49
|
-
remove_attachments: Optional[bool] = None
|
50
|
-
"""Remove file attachments (PDF only)."""
|
51
|
-
|
52
|
-
remove_interactive: Optional[bool] = None
|
53
|
-
"""Remove interactive content (PDF only)."""
|
54
|
-
|
55
49
|
|
56
50
|
class SanitizeShareOutput(APIRequestModel):
|
57
51
|
enabled: Optional[bool] = None
|
@@ -144,14 +138,6 @@ class RedactData(PangeaResponseResult):
|
|
144
138
|
"""The scoring result of a set of rules."""
|
145
139
|
|
146
140
|
|
147
|
-
class CDR(PangeaResponseResult):
|
148
|
-
file_attachments_removed: Optional[int] = None
|
149
|
-
"""Number of file attachments removed."""
|
150
|
-
|
151
|
-
interactive_contents_removed: Optional[int] = None
|
152
|
-
"""Number of interactive content items removed."""
|
153
|
-
|
154
|
-
|
155
141
|
class SanitizeData(PangeaResponseResult):
|
156
142
|
defang: Optional[DefangData] = None
|
157
143
|
"""Defang."""
|
@@ -162,9 +148,6 @@ class SanitizeData(PangeaResponseResult):
|
|
162
148
|
malicious_file: Optional[bool] = None
|
163
149
|
"""If the file scanned was malicious."""
|
164
150
|
|
165
|
-
cdr: Optional[CDR] = None
|
166
|
-
"""Content Disarm and Reconstruction."""
|
167
|
-
|
168
151
|
|
169
152
|
class SanitizeResult(PangeaResponseResult):
|
170
153
|
dest_url: Optional[str] = None
|
@@ -265,7 +248,7 @@ class Sanitize(ServiceBase):
|
|
265
248
|
performed.
|
266
249
|
|
267
250
|
Examples:
|
268
|
-
with open("/path/to/file.
|
251
|
+
with open("/path/to/file.txt", "rb") as f:
|
269
252
|
response = sanitize.sanitize(
|
270
253
|
file=f,
|
271
254
|
transfer_method=TransferMethod.POST_URL,
|
@@ -1,23 +1,23 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: pangea-sdk
|
3
|
-
Version: 5.
|
3
|
+
Version: 5.4.0
|
4
4
|
Summary: Pangea API SDK
|
5
5
|
License: MIT
|
6
6
|
Keywords: Pangea,SDK,Audit
|
7
7
|
Author: Glenn Gallien
|
8
8
|
Author-email: glenn.gallien@pangea.cloud
|
9
|
-
Requires-Python: >=3.9
|
9
|
+
Requires-Python: >=3.9,<4.0.0
|
10
10
|
Classifier: Topic :: Software Development
|
11
11
|
Classifier: Topic :: Software Development :: Libraries
|
12
|
-
Requires-Dist: aiohttp
|
13
|
-
Requires-Dist: cryptography
|
14
|
-
Requires-Dist: deprecated
|
15
|
-
Requires-Dist: google-crc32c
|
16
|
-
Requires-Dist: pydantic
|
17
|
-
Requires-Dist: python-dateutil
|
18
|
-
Requires-Dist: requests
|
19
|
-
Requires-Dist: requests-toolbelt
|
20
|
-
Requires-Dist: typing-extensions
|
12
|
+
Requires-Dist: aiohttp (>=3.11.11,<4.0.0)
|
13
|
+
Requires-Dist: cryptography (>=43.0.3,<44.0.0)
|
14
|
+
Requires-Dist: deprecated (>=1.2.15,<2.0.0)
|
15
|
+
Requires-Dist: google-crc32c (>=1.5.0,<2.0.0)
|
16
|
+
Requires-Dist: pydantic (>=2.10.5,<3.0.0)
|
17
|
+
Requires-Dist: python-dateutil (>=2.9.0,<3.0.0)
|
18
|
+
Requires-Dist: requests (>=2.31.0,<3.0.0)
|
19
|
+
Requires-Dist: requests-toolbelt (>=1.0.0,<2.0.0)
|
20
|
+
Requires-Dist: typing-extensions (>=4.12.2,<5.0.0)
|
21
21
|
Description-Content-Type: text/markdown
|
22
22
|
|
23
23
|
<a href="https://pangea.cloud?utm_source=github&utm_medium=python-sdk" target="_blank" rel="noopener noreferrer">
|
@@ -1,4 +1,4 @@
|
|
1
|
-
pangea/__init__.py,sha256=
|
1
|
+
pangea/__init__.py,sha256=B29PtEg8t_Rt5FD7rRfZZ1HAvsBv0WSHWqH6BxDY10U,246
|
2
2
|
pangea/asyncio/__init__.py,sha256=kjEMkqMQ521LlMSu5jn3_WgweyArwVZ2C-s3x7mR6Pk,45
|
3
3
|
pangea/asyncio/file_uploader.py,sha256=wI7epib7Rc5jtZw4eJ1L1SlmutDG6CPv59C8N2UPhtY,1436
|
4
4
|
pangea/asyncio/request.py,sha256=BREsLY8_MCxGSplHbdKFZTzr4TX5ya0-BsXLffZhsco,17849
|
@@ -11,7 +11,7 @@ pangea/asyncio/services/embargo.py,sha256=ctzj3kip6xos-Eu3JuOskrCGYC8T3JlsgAopZH
|
|
11
11
|
pangea/asyncio/services/file_scan.py,sha256=PLG1O-PL4Yk9uY9D6NbMrZ5LHg70Z311s7bFe46UMZA,7108
|
12
12
|
pangea/asyncio/services/intel.py,sha256=BcxGKSoZ1nJiEHyZM9yOwKSSPJUrB6ibJ19KR27VlgQ,40261
|
13
13
|
pangea/asyncio/services/redact.py,sha256=JPJcmeKFloMZRpkjAHAZbpZJpO993WsTfEwA-S5ov18,7951
|
14
|
-
pangea/asyncio/services/sanitize.py,sha256=
|
14
|
+
pangea/asyncio/services/sanitize.py,sha256=EbSdq_v9yZWce9xEYWvZharE9bJcxw8cg5Pv8LVxdxc,8627
|
15
15
|
pangea/asyncio/services/share.py,sha256=AXXtFtmbXud0dAAom7qqHVOK9zBfX5S10MFS_1DQvio,30767
|
16
16
|
pangea/asyncio/services/vault.py,sha256=VqrJGSEdq6MlZRI6cJpkthhIsqLClSQdgVxwYCbIwEk,77079
|
17
17
|
pangea/audit_logger.py,sha256=gRkCfUUT5LDNaycwxkhZUySgY47jDfn1ZeKOul4XCQI,3842
|
@@ -39,7 +39,7 @@ pangea/services/embargo.py,sha256=9Wfku4td5ORaIENKmnGmS5jxJJIRfWp6Q51L36Jsy0I,38
|
|
39
39
|
pangea/services/file_scan.py,sha256=QiO80uKqB_BnAOiYQKznXfxpa5j40qqETE3-zBRT_QE,7813
|
40
40
|
pangea/services/intel.py,sha256=y1EX2ctYIxQc52lmHp6-Q_UIDM--t3fOpXDssWiRPfo,56474
|
41
41
|
pangea/services/redact.py,sha256=ovIcT0jkXe57O7keGzSClWNCic8y-4NZoemXoSKjjww,12913
|
42
|
-
pangea/services/sanitize.py,sha256=
|
42
|
+
pangea/services/sanitize.py,sha256=eAN1HhObiKqygy6HHcfl0NmxYfPMvqSKepwEAVVIIEE,12936
|
43
43
|
pangea/services/share/file_format.py,sha256=1svO1ee_aenA9zoO_AaU-Rk5Ulp7kcPOc_KwNoluyQE,2797
|
44
44
|
pangea/services/share/share.py,sha256=b1Iuuog0XWXaI6rImoj0OeEx3DXbYqLWsLbCC_Zp6eg,52343
|
45
45
|
pangea/services/vault/models/asymmetric.py,sha256=vspijmEvHm5WXri_fjOWfQc4maYyZfhDkLuaTM8-PZo,4991
|
@@ -51,6 +51,6 @@ pangea/services/vault/vault.py,sha256=ow-Zm7PYzfWIfUcA4UNnpeL2DHfZM4C7inRDmNR3zQ
|
|
51
51
|
pangea/tools.py,sha256=2-Y4SAHWFv6Ocj42J_bWrVy27M5G3wi7a8LJn0dabHc,6427
|
52
52
|
pangea/utils.py,sha256=dZ6MwFVEWXUgXvvDg-k6JnvVfsgslvtaBd7ez7afrqk,4983
|
53
53
|
pangea/verify_audit.py,sha256=nSP17OzoSPdvezRExwfcf45H8ZPZnxZu-CbEp3qFJO0,17354
|
54
|
-
pangea_sdk-5.
|
55
|
-
pangea_sdk-5.
|
56
|
-
pangea_sdk-5.
|
54
|
+
pangea_sdk-5.4.0.dist-info/METADATA,sha256=Tc6nPFcfuzi0DADnc9fPhUrBxEAxhu9v5b3JE-qJtSo,7009
|
55
|
+
pangea_sdk-5.4.0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
56
|
+
pangea_sdk-5.4.0.dist-info/RECORD,,
|
File without changes
|