pangea-sdk 3.8.0b1__py3-none-any.whl → 3.8.0b3__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/__init__.py +2 -0
- pangea/asyncio/services/authz.py +267 -0
- pangea/asyncio/services/sanitize.py +185 -0
- pangea/asyncio/services/share.py +39 -26
- pangea/services/__init__.py +2 -0
- pangea/services/authz.py +377 -0
- pangea/services/file_scan.py +0 -1
- pangea/services/sanitize.py +275 -0
- pangea/services/share/share.py +39 -26
- {pangea_sdk-3.8.0b1.dist-info → pangea_sdk-3.8.0b3.dist-info}/METADATA +28 -3
- {pangea_sdk-3.8.0b1.dist-info → pangea_sdk-3.8.0b3.dist-info}/RECORD +13 -9
- {pangea_sdk-3.8.0b1.dist-info → pangea_sdk-3.8.0b3.dist-info}/WHEEL +0 -0
pangea/services/share/share.py
CHANGED
@@ -345,10 +345,11 @@ class Share(ServiceBase):
|
|
345
345
|
self, id: Optional[str] = None, path: Optional[str] = None, force: Optional[bool] = None
|
346
346
|
) -> PangeaResponse[DeleteResult]:
|
347
347
|
"""
|
348
|
-
Delete
|
348
|
+
Delete (Beta)
|
349
349
|
|
350
350
|
Delete object by ID or path. If both are supplied, the path must match
|
351
|
-
that of the object represented by the ID.
|
351
|
+
that of the object represented by the ID.
|
352
|
+
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
|
352
353
|
|
353
354
|
OperationId: share_post_v1beta_delete
|
354
355
|
|
@@ -375,9 +376,10 @@ class Share(ServiceBase):
|
|
375
376
|
tags: Optional[Tags] = None,
|
376
377
|
) -> PangeaResponse[FolderCreateResult]:
|
377
378
|
"""
|
378
|
-
Create a folder
|
379
|
+
Create a folder (Beta)
|
379
380
|
|
380
|
-
Create a folder, either by name or path and parent_id.
|
381
|
+
Create a folder, either by name or path and parent_id.
|
382
|
+
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
|
381
383
|
|
382
384
|
OperationId: share_post_v1beta_folder_create
|
383
385
|
|
@@ -409,10 +411,11 @@ class Share(ServiceBase):
|
|
409
411
|
self, id: Optional[str] = None, path: Optional[str] = None, transfer_method: Optional[TransferMethod] = None
|
410
412
|
) -> PangeaResponse[GetResult]:
|
411
413
|
"""
|
412
|
-
Get an object
|
414
|
+
Get an object (Beta)
|
413
415
|
|
414
416
|
Get object. If both ID and Path are supplied, the call will fail if the
|
415
|
-
target object doesn't match both properties.
|
417
|
+
target object doesn't match both properties.
|
418
|
+
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
|
416
419
|
|
417
420
|
OperationId: share_post_v1beta_get
|
418
421
|
|
@@ -444,9 +447,10 @@ class Share(ServiceBase):
|
|
444
447
|
transfer_method: Optional[TransferMethod] = None,
|
445
448
|
) -> PangeaResponse[GetArchiveResult]:
|
446
449
|
"""
|
447
|
-
Get archive
|
450
|
+
Get archive (Beta)
|
448
451
|
|
449
|
-
Get an archive file of multiple objects.
|
452
|
+
Get an archive file of multiple objects.
|
453
|
+
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
|
450
454
|
|
451
455
|
OperationId: share_post_v1beta_get_archive
|
452
456
|
|
@@ -482,9 +486,10 @@ class Share(ServiceBase):
|
|
482
486
|
size: Optional[int] = None,
|
483
487
|
) -> PangeaResponse[ListResult]:
|
484
488
|
"""
|
485
|
-
List
|
489
|
+
List (Beta)
|
486
490
|
|
487
|
-
List or filter/search records.
|
491
|
+
List or filter/search records.
|
492
|
+
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
|
488
493
|
|
489
494
|
OperationId: share_post_v1beta_list
|
490
495
|
|
@@ -523,9 +528,10 @@ class Share(ServiceBase):
|
|
523
528
|
size: Optional[int] = None,
|
524
529
|
) -> PangeaResponse[PutResult]:
|
525
530
|
"""
|
526
|
-
Upload a file
|
531
|
+
Upload a file (Beta)
|
527
532
|
|
528
|
-
Upload a file.
|
533
|
+
Upload a file.
|
534
|
+
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
|
529
535
|
|
530
536
|
OperationId: share_post_v1beta_put
|
531
537
|
|
@@ -607,9 +613,10 @@ class Share(ServiceBase):
|
|
607
613
|
size: Optional[int] = None,
|
608
614
|
) -> PangeaResponse[PutResult]:
|
609
615
|
"""
|
610
|
-
Request upload URL
|
616
|
+
Request upload URL (Beta)
|
611
617
|
|
612
|
-
Request an upload URL.
|
618
|
+
Request an upload URL.
|
619
|
+
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
|
613
620
|
|
614
621
|
OperationId: share_post_v1beta_put 2
|
615
622
|
|
@@ -681,9 +688,10 @@ class Share(ServiceBase):
|
|
681
688
|
updated_at: Optional[str] = None,
|
682
689
|
) -> PangeaResponse[UpdateResult]:
|
683
690
|
"""
|
684
|
-
Update a file
|
691
|
+
Update a file (Beta)
|
685
692
|
|
686
|
-
Update a file.
|
693
|
+
Update a file.
|
694
|
+
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
|
687
695
|
|
688
696
|
OperationId: share_post_v1beta_update
|
689
697
|
|
@@ -728,9 +736,10 @@ class Share(ServiceBase):
|
|
728
736
|
|
729
737
|
def share_link_create(self, links: List[ShareLinkCreateItem]) -> PangeaResponse[ShareLinkCreateResult]:
|
730
738
|
"""
|
731
|
-
Create share links
|
739
|
+
Create share links (Beta)
|
732
740
|
|
733
|
-
Create a share link.
|
741
|
+
Create a share link.
|
742
|
+
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
|
734
743
|
|
735
744
|
OperationId: share_post_v1beta_share_link_create
|
736
745
|
|
@@ -761,9 +770,10 @@ class Share(ServiceBase):
|
|
761
770
|
|
762
771
|
def share_link_get(self, id: str) -> PangeaResponse[ShareLinkGetResult]:
|
763
772
|
"""
|
764
|
-
Get share link
|
773
|
+
Get share link (Beta)
|
765
774
|
|
766
|
-
Get a share link.
|
775
|
+
Get a share link.
|
776
|
+
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
|
767
777
|
|
768
778
|
OperationId: share_post_v1beta_share_link_get
|
769
779
|
|
@@ -790,9 +800,10 @@ class Share(ServiceBase):
|
|
790
800
|
size: Optional[int] = None,
|
791
801
|
) -> PangeaResponse[ShareLinkListResult]:
|
792
802
|
"""
|
793
|
-
List share links
|
803
|
+
List share links (Beta)
|
794
804
|
|
795
|
-
Look up share links by filter options.
|
805
|
+
Look up share links by filter options.
|
806
|
+
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
|
796
807
|
|
797
808
|
OperationId: share_post_v1beta_share_link_list
|
798
809
|
|
@@ -814,9 +825,10 @@ class Share(ServiceBase):
|
|
814
825
|
|
815
826
|
def share_link_delete(self, ids: List[str]) -> PangeaResponse[ShareLinkDeleteResult]:
|
816
827
|
"""
|
817
|
-
Delete share links
|
828
|
+
Delete share links (Beta)
|
818
829
|
|
819
|
-
Delete share links.
|
830
|
+
Delete share links.
|
831
|
+
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
|
820
832
|
|
821
833
|
OperationId: share_post_v1beta_share_link_delete
|
822
834
|
|
@@ -838,12 +850,13 @@ class Share(ServiceBase):
|
|
838
850
|
self, links: List[ShareLinkSendItem], sender_email: str, sender_name: Optional[str] = None
|
839
851
|
) -> PangeaResponse[ShareLinkSendResult]:
|
840
852
|
"""
|
841
|
-
Send share links
|
853
|
+
Send share links (Beta)
|
842
854
|
|
843
855
|
Send a secure share-link notification to a set of email addresses. The
|
844
856
|
notification email will contain an Open button that the recipient can
|
845
857
|
use to follow the secured share-link to authenticate and then access the
|
846
|
-
shared content.
|
858
|
+
shared content.
|
859
|
+
How to install a [Beta release](https://pangea.cloud/docs/sdk/python/#beta-releases).
|
847
860
|
|
848
861
|
OperationId: share_post_v1beta_share_link_send
|
849
862
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pangea-sdk
|
3
|
-
Version: 3.8.
|
3
|
+
Version: 3.8.0b3
|
4
4
|
Summary: Pangea API SDK
|
5
5
|
Home-page: https://pangea.cloud/docs/sdk/python/
|
6
6
|
License: MIT
|
@@ -44,6 +44,8 @@ above.
|
|
44
44
|
|
45
45
|
## Installation
|
46
46
|
|
47
|
+
#### GA releases
|
48
|
+
|
47
49
|
Via pip:
|
48
50
|
|
49
51
|
```bash
|
@@ -56,10 +58,32 @@ Via poetry:
|
|
56
58
|
$ poetry add pangea-sdk
|
57
59
|
```
|
58
60
|
|
61
|
+
<a name="beta-releases"></a>
|
62
|
+
|
63
|
+
#### Beta releases
|
64
|
+
|
65
|
+
Pre-release versions may be available with the `b` (beta) denotation in the
|
66
|
+
version number. These releases serve to preview beta services and APIs. Per
|
67
|
+
Semantic Versioning, they are considered unstable and do not carry the same
|
68
|
+
compatibility guarantees as stable releases. [Beta changelog](https://github.com/pangeacyber/pangea-python/blob/beta/CHANGELOG.md).
|
69
|
+
|
70
|
+
Via pip:
|
71
|
+
|
72
|
+
```bash
|
73
|
+
$ pip3 install pangea-sdk==3.8.0b3
|
74
|
+
```
|
75
|
+
|
76
|
+
Via poetry:
|
77
|
+
|
78
|
+
```bash
|
79
|
+
$ poetry add pangea-sdk==3.8.0b3
|
80
|
+
```
|
81
|
+
|
59
82
|
## Usage
|
60
83
|
|
61
84
|
- [Documentation][]
|
62
|
-
- [Examples][]
|
85
|
+
- [GA Examples][]
|
86
|
+
- [Beta Examples][]
|
63
87
|
|
64
88
|
General usage would be to create a token for a service through the
|
65
89
|
[Pangea Console][] and then construct an API client for that respective service.
|
@@ -213,7 +237,8 @@ It accepts multiple file formats:
|
|
213
237
|
|
214
238
|
|
215
239
|
[Documentation]: https://pangea.cloud/docs/sdk/python/
|
216
|
-
[Examples]: https://github.com/pangeacyber/pangea-python/tree/main/examples
|
240
|
+
[GA Examples]: https://github.com/pangeacyber/pangea-python/tree/main/examples
|
241
|
+
[Beta Examples]: https://github.com/pangeacyber/pangea-python/tree/beta/examples
|
217
242
|
[Pangea Console]: https://console.pangea.cloud/
|
218
243
|
[Slack]: https://pangea.cloud/join-slack/
|
219
244
|
[Secure Audit Log]: https://pangea.cloud/docs/audit
|
@@ -1,16 +1,18 @@
|
|
1
|
-
pangea/__init__.py,sha256=
|
1
|
+
pangea/__init__.py,sha256=CmArwx2RgBaktP0hoxzHwv8oVS_WqKkzHmTxzpRPpQk,251
|
2
2
|
pangea/asyncio/__init__.py,sha256=kjEMkqMQ521LlMSu5jn3_WgweyArwVZ2C-s3x7mR6Pk,45
|
3
3
|
pangea/asyncio/file_uploader.py,sha256=nIBDNvZPwl-iA95OdwgEPeqUizvaBVsOc66Wkfux_6A,1462
|
4
4
|
pangea/asyncio/request.py,sha256=ceFLWZ9MONt40PETarh1DSSDhA2rrDGgLrVz7u4xduQ,17272
|
5
|
-
pangea/asyncio/services/__init__.py,sha256=
|
5
|
+
pangea/asyncio/services/__init__.py,sha256=3IkiTqY_RtFndI7aoDTrb1yLv8xos_cKhmGS1TULcmw,386
|
6
6
|
pangea/asyncio/services/audit.py,sha256=FJzSQSRhzQ0MNuhvMvziGyfGhcFb_HHeJ11NkPS_DBU,19594
|
7
7
|
pangea/asyncio/services/authn.py,sha256=njuhg0SMLkke4Bmqe0C75BybjnmsC1ruAv6ariNbFwY,43812
|
8
|
+
pangea/asyncio/services/authz.py,sha256=kflRVbaZISpkRZTdFKf2xr8Oviu6Vo3Rsux8kI1NqmA,9958
|
8
9
|
pangea/asyncio/services/base.py,sha256=4FtKtlq74NmE9myrgIt9HMA6JDnP4mPZ6krafWr286o,2663
|
9
10
|
pangea/asyncio/services/embargo.py,sha256=8WguyWZUaGVwGpNzic5h8QzLueirA9WpBBik4mpCTeA,3056
|
10
11
|
pangea/asyncio/services/file_scan.py,sha256=WIKYjUNCIx6jF0vQ-KnsKYBcZh53Q5rmccTlsTPP_rY,6301
|
11
12
|
pangea/asyncio/services/intel.py,sha256=SSOBkD1vE0laQ2qWIDi5tHuYphQ8gFM_ikxr6VyoEp4,37665
|
12
13
|
pangea/asyncio/services/redact.py,sha256=Crs8fpPG3gMgxR5uRT22qaS85yorUzec-PY1lYK4FzI,5174
|
13
|
-
pangea/asyncio/services/
|
14
|
+
pangea/asyncio/services/sanitize.py,sha256=eW0Vlf8-xjeUdJKgb5NXJGIJCyYjZJBaXcpcujVCfxI,7576
|
15
|
+
pangea/asyncio/services/share.py,sha256=GM8f_WS5nr5sjwVLqmanZn7T0WZzpYggouwPwqdgFzo,24759
|
14
16
|
pangea/asyncio/services/vault.py,sha256=i8LGfZT5MQ_PFcOSA-zM3aRqlwkGHOu1WJ8U0VJaekc,47360
|
15
17
|
pangea/audit_logger.py,sha256=gRkCfUUT5LDNaycwxkhZUySgY47jDfn1ZeKOul4XCQI,3842
|
16
18
|
pangea/config.py,sha256=mQUu8GX_6weIuv3vjNdG5plppXskXYASmxMWtFQh-hc,1662
|
@@ -22,7 +24,7 @@ pangea/file_uploader.py,sha256=4RQ44xt-faApC61nn2PlwHT7XYrJ4GeQA8Ug4tySEAg,1227
|
|
22
24
|
pangea/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
23
25
|
pangea/request.py,sha256=eJBojjqVkIweNgf-MeHU9JqmuRXAZ-jFx2Rk25vKgIA,24346
|
24
26
|
pangea/response.py,sha256=wKHFCZBkv27PvMG5Z5pa4FYqzmMl_Pp8e_nfmNeed3k,7042
|
25
|
-
pangea/services/__init__.py,sha256
|
27
|
+
pangea/services/__init__.py,sha256=-QsZxRzRq_V1x1lmS_mu4310MNm0DkM4r6g6rfVGnOc,340
|
26
28
|
pangea/services/audit/audit.py,sha256=NFpAz_a8JoI89HqGsBTqJgjSbTP0yflNQYY6McU6rek,32834
|
27
29
|
pangea/services/audit/exceptions.py,sha256=bhVuYe4ammacOVxwg98CChxvwZf5FKgR2DcgqILOcwc,471
|
28
30
|
pangea/services/audit/models.py,sha256=zKx-CozUSv0dem4sWxqUs_By0CcQQtNUFtXYg6IAwtI,12644
|
@@ -30,13 +32,15 @@ pangea/services/audit/signing.py,sha256=pOjw60BIYDcg3_5YKDCMWZUaapsEZpCHaFhyFu7T
|
|
30
32
|
pangea/services/audit/util.py,sha256=C6KAdu6qhValmNrIMUPLdAW0SCiLwcDd5euXti_63Og,7596
|
31
33
|
pangea/services/authn/authn.py,sha256=pjx8CybKhkf0Q9jNpcYUwAPL0KYr1ULg-mhdb0TbQbE,43280
|
32
34
|
pangea/services/authn/models.py,sha256=FZ5kRBZQ-Pr2YD3jFZ4HvJI22ObbXaBb6HStjcN7-D0,18104
|
35
|
+
pangea/services/authz.py,sha256=Ds3Tbg8ZpkM31IpeGdAucV3C0e_Jhmj4UiPDY2GWm48,12627
|
33
36
|
pangea/services/base.py,sha256=60FuZkACFGDDQFZfx9vzspPTtZU0pFqNKM_ViatXejc,3012
|
34
37
|
pangea/services/embargo.py,sha256=WFqBreGU1FPgOSabIIkWCrXBvquYN958Un7h9P1aHSI,3885
|
35
|
-
pangea/services/file_scan.py,sha256=
|
38
|
+
pangea/services/file_scan.py,sha256=loceEPhHTG4fKxUXk0Qut-ztGm4N-FaSMl2QBy2x20U,6923
|
36
39
|
pangea/services/intel.py,sha256=r-MRWuyo5wPNi69M2PGb3G2TlA4e77ZR2RlSVSmT8as,51637
|
37
40
|
pangea/services/redact.py,sha256=9LSVDyQsL_RBWioMXVq6-6Hf7Tr2bqBZo3ydbDw92Bg,7772
|
41
|
+
pangea/services/sanitize.py,sha256=sh_wsMDX2v-OWg57RNdmlZs633N8ZsTc2v4IuevZVgQ,10092
|
38
42
|
pangea/services/share/file_format.py,sha256=1svO1ee_aenA9zoO_AaU-Rk5Ulp7kcPOc_KwNoluyQE,2797
|
39
|
-
pangea/services/share/share.py,sha256=
|
43
|
+
pangea/services/share/share.py,sha256=KLWI4RMDUQqZO9-2ovtwL6H4Zmb6VkprKizSpCcejoo,32497
|
40
44
|
pangea/services/vault/models/asymmetric.py,sha256=ac2Exc66elXxO-HxBqtvLPQWNI7y_00kb6SVqBPKecA,1450
|
41
45
|
pangea/services/vault/models/common.py,sha256=Ks6reIlWx3PU1lD0UlorcAlZV8U9T3j711iOsb6qp3o,11120
|
42
46
|
pangea/services/vault/models/secret.py,sha256=cLgEj-_BeGkB4-pmSeTkWVyasFbaJwcEltIEcOyf1U8,481
|
@@ -45,6 +49,6 @@ pangea/services/vault/vault.py,sha256=5islfGG4QLXHaZDwv7dEIPxpmpV8swFIYwCMz6-iBw
|
|
45
49
|
pangea/tools.py,sha256=sa2pSz-L8tB6GcZg6lghsmm8w0qMQAIkzqcv7dilU6Q,6429
|
46
50
|
pangea/utils.py,sha256=LTWkm7AZO95PITY1w7zbt6N3jWK1OPgzwy69FOKljCY,5289
|
47
51
|
pangea/verify_audit.py,sha256=QthhKzFlIQwoEyjBLojcX4uHGaN3EEGomx-IC5e3L0E,10756
|
48
|
-
pangea_sdk-3.8.
|
49
|
-
pangea_sdk-3.8.
|
50
|
-
pangea_sdk-3.8.
|
52
|
+
pangea_sdk-3.8.0b3.dist-info/METADATA,sha256=ZFeMGPhmzJgl7JSVoQR3mwW-0JozKurmeAQHZ_MHnaQ,7735
|
53
|
+
pangea_sdk-3.8.0b3.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
54
|
+
pangea_sdk-3.8.0b3.dist-info/RECORD,,
|
File without changes
|