pangea-sdk 5.3.0__tar.gz → 5.4.0__tar.gz

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.
Files changed (56) hide show
  1. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/PKG-INFO +11 -11
  2. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/__init__.py +1 -1
  3. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/services/sanitize.py +1 -1
  4. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/sanitize.py +1 -18
  5. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pyproject.toml +12 -24
  6. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/README.md +0 -0
  7. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/__init__.py +0 -0
  8. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/file_uploader.py +0 -0
  9. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/request.py +0 -0
  10. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/services/__init__.py +0 -0
  11. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/services/audit.py +0 -0
  12. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/services/authn.py +0 -0
  13. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/services/authz.py +0 -0
  14. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/services/base.py +0 -0
  15. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/services/embargo.py +0 -0
  16. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/services/file_scan.py +0 -0
  17. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/services/intel.py +0 -0
  18. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/services/redact.py +0 -0
  19. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/services/share.py +0 -0
  20. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/asyncio/services/vault.py +0 -0
  21. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/audit_logger.py +0 -0
  22. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/config.py +0 -0
  23. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/crypto/rsa.py +0 -0
  24. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/deep_verify.py +0 -0
  25. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/deprecated.py +0 -0
  26. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/dump_audit.py +0 -0
  27. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/exceptions.py +0 -0
  28. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/file_uploader.py +0 -0
  29. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/py.typed +0 -0
  30. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/request.py +0 -0
  31. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/response.py +0 -0
  32. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/__init__.py +0 -0
  33. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/audit/audit.py +0 -0
  34. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/audit/exceptions.py +0 -0
  35. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/audit/models.py +0 -0
  36. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/audit/signing.py +0 -0
  37. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/audit/util.py +0 -0
  38. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/authn/authn.py +0 -0
  39. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/authn/models.py +0 -0
  40. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/authz.py +0 -0
  41. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/base.py +0 -0
  42. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/embargo.py +0 -0
  43. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/file_scan.py +0 -0
  44. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/intel.py +0 -0
  45. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/redact.py +0 -0
  46. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/share/file_format.py +0 -0
  47. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/share/share.py +0 -0
  48. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/vault/models/asymmetric.py +0 -0
  49. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/vault/models/common.py +0 -0
  50. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/vault/models/keys.py +0 -0
  51. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/vault/models/secret.py +0 -0
  52. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/vault/models/symmetric.py +0 -0
  53. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/services/vault/vault.py +0 -0
  54. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/tools.py +0 -0
  55. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/utils.py +0 -0
  56. {pangea_sdk-5.3.0 → pangea_sdk-5.4.0}/pangea/verify_audit.py +0 -0
@@ -1,23 +1,23 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pangea-sdk
3
- Version: 5.3.0
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
- __version__ = "5.3.0"
1
+ __version__ = "5.4.0"
2
2
 
3
3
  from pangea.asyncio.request import PangeaRequestAsync
4
4
  from pangea.config import PangeaConfig
@@ -97,7 +97,7 @@ class SanitizeAsync(ServiceBaseAsync):
97
97
  performed.
98
98
 
99
99
  Examples:
100
- with open("/path/to/file.pdf", "rb") as f:
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,
@@ -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.pdf", "rb") as f:
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,6 +1,6 @@
1
1
  [project]
2
2
  name = "pangea-sdk"
3
- version = "5.3.0"
3
+ version = "5.4.0"
4
4
  description = "Pangea API SDK"
5
5
  authors = [
6
6
  {name = "Glenn Gallien", email = "glenn.gallien@pangea.cloud"}
@@ -14,17 +14,17 @@ classifiers = [
14
14
  "Topic :: Software Development",
15
15
  "Topic :: Software Development :: Libraries",
16
16
  ]
17
- requires-python = ">=3.9"
17
+ requires-python = ">=3.9,<4.0.0"
18
18
  dependencies = [
19
- "aiohttp",
20
- "cryptography",
21
- "deprecated",
22
- "google-crc32c",
23
- "pydantic",
24
- "python-dateutil",
25
- "requests-toolbelt",
26
- "requests",
27
- "typing-extensions"
19
+ "aiohttp (>=3.11.11,<4.0.0)",
20
+ "cryptography (>=43.0.3,<44.0.0)",
21
+ "deprecated (>=1.2.15,<2.0.0)",
22
+ "google-crc32c (>=1.5.0,<2.0.0)",
23
+ "pydantic (>=2.10.5,<3.0.0)",
24
+ "python-dateutil (>=2.9.0,<3.0.0)",
25
+ "requests (>=2.31.0,<3.0.0)",
26
+ "requests-toolbelt (>=1.0.0,<2.0.0)",
27
+ "typing-extensions (>=4.12.2,<5.0.0)"
28
28
  ]
29
29
 
30
30
  [tool.poetry]
@@ -32,18 +32,6 @@ packages = [
32
32
  { include = "pangea" }
33
33
  ]
34
34
 
35
- [tool.poetry.dependencies]
36
- python = "^3.9.0"
37
- aiohttp = "^3.11.11"
38
- cryptography = "^43.0.3"
39
- deprecated = "^1.2.15"
40
- google-crc32c = "^1.5.0"
41
- pydantic = "^2.10.5"
42
- python-dateutil = "^2.9.0"
43
- requests = "^2.31.0"
44
- requests-toolbelt = "^1.0.0"
45
- typing-extensions = "^4.12.2"
46
-
47
35
  [tool.poetry.group.dev.dependencies]
48
36
  black = "^24.10.0"
49
37
  docstring-parser = "^0.15"
@@ -71,5 +59,5 @@ show_column_numbers = true
71
59
  warn_unused_ignores = true
72
60
 
73
61
  [build-system]
74
- requires = ["poetry-core>=2.0.0"]
62
+ requires = ["poetry-core>=2.0.1"]
75
63
  build-backend = "poetry.core.masonry.api"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes