pangea-sdk 3.1.0__py3-none-any.whl → 3.3.0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- pangea/__init__.py +1 -1
- pangea/asyncio/request.py +122 -88
- pangea/asyncio/services/audit.py +82 -3
- pangea/asyncio/services/base.py +20 -3
- pangea/asyncio/services/file_scan.py +75 -5
- pangea/asyncio/services/redact.py +2 -7
- pangea/config.py +2 -2
- pangea/exceptions.py +1 -1
- pangea/request.py +131 -91
- pangea/response.py +10 -4
- pangea/services/audit/audit.py +163 -62
- pangea/services/audit/models.py +32 -0
- pangea/services/authn/authn.py +4 -1
- pangea/services/authn/models.py +2 -1
- pangea/services/base.py +17 -4
- pangea/services/file_scan.py +59 -3
- pangea/services/redact.py +2 -7
- pangea/services/vault/vault.py +2 -2
- pangea/utils.py +9 -2
- {pangea_sdk-3.1.0.dist-info → pangea_sdk-3.3.0.dist-info}/METADATA +13 -13
- {pangea_sdk-3.1.0.dist-info → pangea_sdk-3.3.0.dist-info}/RECORD +22 -22
- {pangea_sdk-3.1.0.dist-info → pangea_sdk-3.3.0.dist-info}/WHEEL +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pangea-sdk
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.3.0
|
4
4
|
Summary: Pangea API SDK
|
5
5
|
License: MIT
|
6
6
|
Keywords: Pangea,SDK,Audit
|
@@ -15,10 +15,10 @@ Classifier: Programming Language :: Python :: 3.10
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
16
16
|
Classifier: Topic :: Software Development
|
17
17
|
Classifier: Topic :: Software Development :: Libraries
|
18
|
-
Requires-Dist: aiohttp (>=3.8.
|
18
|
+
Requires-Dist: aiohttp (>=3.8.6,<4.0.0)
|
19
19
|
Requires-Dist: alive-progress (>=2.4.1,<3.0.0)
|
20
20
|
Requires-Dist: asyncio (>=3.4.3,<4.0.0)
|
21
|
-
Requires-Dist: cryptography (==41.0.
|
21
|
+
Requires-Dist: cryptography (==41.0.5)
|
22
22
|
Requires-Dist: deprecated (>=1.2.13,<2.0.0)
|
23
23
|
Requires-Dist: google-crc32c (>=1.5.0,<2.0.0)
|
24
24
|
Requires-Dist: pydantic (>=1.10.2,<2.0.0)
|
@@ -59,18 +59,18 @@ poetry add pangea-sdk
|
|
59
59
|
|
60
60
|
## Usage
|
61
61
|
|
62
|
-
For
|
62
|
+
For sample apps, look at the [/examples](https://github.com/pangeacyber/pangea-python/tree/main/examples) folder in this repository. There you will find basic sample apps for each of the services supported on this SDK. Each service folder has a README.md with instructions to install, setup, and run the sample app.
|
63
63
|
|
64
64
|
|
65
65
|
## Asyncio support
|
66
66
|
|
67
|
-
We have added support to asyncio library using aiohttp in order to support async/await calls to all our services.
|
67
|
+
We have added support to the asyncio library using aiohttp in order to support async/await calls to all our services.
|
68
68
|
Async services classes are inside [pangea/asyncio](https://github.com/pangeacyber/pangea-python/tree/main/packages/pangea-sdk/pangea/asyncio) folder, and examples about how to use them are in [/examples/asyncio](https://github.com/pangeacyber/pangea-python/tree/main/examples/asyncio).
|
69
69
|
|
70
70
|
|
71
71
|
### Secure Audit Service - Integrity Tools
|
72
72
|
|
73
|
-
Python Pangea SDK
|
73
|
+
The Python Pangea SDK also includes some extra features to validate Audit Service log's integrity. Here we explain how to run them.
|
74
74
|
|
75
75
|
#### Verify audit data
|
76
76
|
|
@@ -101,7 +101,7 @@ curl -H "Authorization: Bearer ${PANGEA_TOKEN}" -X POST -H 'Content-Type: applic
|
|
101
101
|
|
102
102
|
Download all audit logs for a given time range. Start and end date should be provided,
|
103
103
|
a variety of formats is supported, including ISO-8601. The result is stored in a
|
104
|
-
|
104
|
+
json file (one json per line).
|
105
105
|
|
106
106
|
```
|
107
107
|
usage: python -m pangea.dump_audit [-h] [--token TOKEN] [--domain DOMAIN] [--output OUTPUT] start end
|
@@ -126,8 +126,8 @@ options:
|
|
126
126
|
|
127
127
|
#### Perform Exhaustive Verification of Audit Data
|
128
128
|
|
129
|
-
This script performs extensive verification on a range of events of the log stream.
|
130
|
-
and the membership proof, it checks that there
|
129
|
+
This script performs extensive verification on a range of events of the log stream. Apart from verifying the hash
|
130
|
+
and the membership proof, it checks that there are no omissions in the stream, i.e. all the events are present and properly located.
|
131
131
|
|
132
132
|
```
|
133
133
|
usage: python -m pangea.deep_verify [-h] [--token TOKEN] [--domain DOMAIN] --file FILE
|
@@ -153,9 +153,9 @@ It accepts multiple file formats:
|
|
153
153
|
|
154
154
|
## Reporting issues and new features
|
155
155
|
|
156
|
-
If
|
157
|
-
We would need you to provide some basic information
|
158
|
-
Also feel free to contact [Pangea support](mailto:support@pangea.cloud) by email or send us a message on [Slack](https://pangea.cloud/join-slack/)
|
156
|
+
If you run into an issue using or testing this SDK or if you have a new feature request, feel free to open an issue by [clicking here](https://github.com/pangeacyber/pangea-python/issues).
|
157
|
+
We would need you to provide some basic information, such as what SDK version you are using, the stack trace if you got it, the framework used, and steps to reproduce the issue.
|
158
|
+
Also, feel free to contact [Pangea support](mailto:support@pangea.cloud) by email or send us a message on [Slack](https://pangea.cloud/join-slack/).
|
159
159
|
|
160
160
|
|
161
161
|
## Contributing
|
@@ -168,5 +168,5 @@ These linters will run on every `git commit` operation.
|
|
168
168
|
|
169
169
|
### Send a PR
|
170
170
|
|
171
|
-
If you would like to [send a PR](https://github.com/pangeacyber/pangea-python/pulls) including a new feature or fixing a bug in code or an error in documents we
|
171
|
+
If you would like to [send a PR](https://github.com/pangeacyber/pangea-python/pulls) including a new feature or fixing a bug in the code or an error in documents, we really appreciate it and after review and approval, you will be included in our [contributors list](https://github.com/pangeacyber/pangea-python/blob/main/packages/pangea-sdk/CONTRIBUTING.md).
|
172
172
|
|
@@ -1,43 +1,43 @@
|
|
1
|
-
pangea/__init__.py,sha256=
|
2
|
-
pangea/asyncio/request.py,sha256=
|
1
|
+
pangea/__init__.py,sha256=GgLmx-eZWNCnGMva8AGtHJ4JesBsSPfw8YdDVyuKXOo,200
|
2
|
+
pangea/asyncio/request.py,sha256=akSpGTjC8j8Jr6uK40Zu8v9HQXX_QOf7dKgweq5K6DM,12642
|
3
3
|
pangea/asyncio/services/__init__.py,sha256=_CEDza6E9VmEs6d_vubWetfeqTogH7UxT7XrTVRw4Mo,290
|
4
|
-
pangea/asyncio/services/audit.py,sha256=
|
4
|
+
pangea/asyncio/services/audit.py,sha256=xHvz5ReJpmk_StK3mr_uDqCI80J6Aj7-EglEBWS0Qqc,16480
|
5
5
|
pangea/asyncio/services/authn.py,sha256=HssvrZ3fr2oP5sgYBj1Rr5Yf-fKiHhrWTue5LOAeyOk,43288
|
6
|
-
pangea/asyncio/services/base.py,sha256=
|
6
|
+
pangea/asyncio/services/base.py,sha256=hmdY5-IS_H2WGMeVfzotn11Z1c2B2iJTHi4USBbmptA,2304
|
7
7
|
pangea/asyncio/services/embargo.py,sha256=8WguyWZUaGVwGpNzic5h8QzLueirA9WpBBik4mpCTeA,3056
|
8
|
-
pangea/asyncio/services/file_scan.py,sha256=
|
8
|
+
pangea/asyncio/services/file_scan.py,sha256=DnysLA0oEsxkHPdt4Pal6oWKiYdl7TZz8eX20Bs_Zl8,6280
|
9
9
|
pangea/asyncio/services/intel.py,sha256=LdJSxCohXsI4Vk8bG74jXTBYAL9N45lb5LIX7nBXqLI,22248
|
10
|
-
pangea/asyncio/services/redact.py,sha256=
|
10
|
+
pangea/asyncio/services/redact.py,sha256=W9eKMw1XyY6tgRudRrtuCpyQYhgttvmsYngoiMld0C4,5152
|
11
11
|
pangea/asyncio/services/vault.py,sha256=JhxUdmPNYZzp3eiAQFR6vsfyS9L3ddKWes-Cv7rj2ow,43425
|
12
12
|
pangea/audit_logger.py,sha256=zCSsq0kvw4Pb_aIBb7APfaYsTqd9dmohYLFld2ir5lc,3778
|
13
|
-
pangea/config.py,sha256=
|
13
|
+
pangea/config.py,sha256=kFu9mLMkFpkM7wdT8Ymvskx6DGLfRZKeKfQRVZTgbyA,1670
|
14
14
|
pangea/deep_verify.py,sha256=WiA_2gqtrSCQYoTMKX9ILlNgnknsH4UxZpJXLVG2uyc,8343
|
15
15
|
pangea/deprecated.py,sha256=IjFYEVvY1E0ld0SMkEYC1o62MAleX3nnT1If2dFVbHo,608
|
16
16
|
pangea/dump_audit.py,sha256=Ws0KuZyHoaySsQ2lq9EKK2iw65O8x4zL1Mii0ChDh0k,6511
|
17
|
-
pangea/exceptions.py,sha256=
|
18
|
-
pangea/request.py,sha256=
|
19
|
-
pangea/response.py,sha256=
|
17
|
+
pangea/exceptions.py,sha256=JMx_Dym7W2cgcPSHN4bz9Rlrm-3BZGNpIYu3VBXZLBU,5277
|
18
|
+
pangea/request.py,sha256=5BP-wFI6x7lfJ41-6bTcpcg3pyviMgrX_4nX_M9yyXg,18640
|
19
|
+
pangea/response.py,sha256=mOgeFqafEH_MdDILSo-ju5cWicXlvSd1CXzbsHObiJo,5363
|
20
20
|
pangea/services/__init__.py,sha256=auqKaEAOLiazHCzOQVwrUwd2ABFw_bF-ptoOq1bpa68,253
|
21
|
-
pangea/services/audit/audit.py,sha256
|
21
|
+
pangea/services/audit/audit.py,sha256=50zkQE2HQ0cQtFroFSVjUxX1M4RQsf6pBUeMidSkEHI,30295
|
22
22
|
pangea/services/audit/exceptions.py,sha256=CVdaQZCvQKx1n-iIjWz5wnStUGU6cXDwKqe7MoijAXk,451
|
23
|
-
pangea/services/audit/models.py,sha256=
|
23
|
+
pangea/services/audit/models.py,sha256=ztLcB7XNRudn3GquyW8gp_TlCrH3va32Tw0nMpO7g6k,12244
|
24
24
|
pangea/services/audit/signing.py,sha256=JWYutDNV5XZZzLASwdUJ-9gMHlGd8-h4IjIbKz7JMJM,5261
|
25
25
|
pangea/services/audit/util.py,sha256=2EM3K9R-T9FBKegklmLLoWa1IDm84uGjmJZVO3mYEhk,7568
|
26
|
-
pangea/services/authn/authn.py,sha256=
|
27
|
-
pangea/services/authn/models.py,sha256=
|
28
|
-
pangea/services/base.py,sha256=
|
26
|
+
pangea/services/authn/authn.py,sha256=sGQUPQ8VLEMtu8AkEhWPyY6Q6AxCsfrX-XNUzkC-o1M,42774
|
27
|
+
pangea/services/authn/models.py,sha256=V-hj1KfbSuaWJMVgd-Q3fWTsnbj3EdPumnzXtjHOR8g,18150
|
28
|
+
pangea/services/base.py,sha256=bRSuuhLv6iQrPVjhasOjTBqOgxTRRhCD204v3tNjVOE,2731
|
29
29
|
pangea/services/embargo.py,sha256=F3jx7SbElnjhbDEUR3oHfWsQ8G8zf_kfp6_q1_vmOIc,3871
|
30
|
-
pangea/services/file_scan.py,sha256=
|
30
|
+
pangea/services/file_scan.py,sha256=K4zDhZtY-Co622QgSOueGfkCaAJVy04mO6sqQ22TBS4,6999
|
31
31
|
pangea/services/intel.py,sha256=oTvTxCtdnoaZRlt0anUKnkRT2FVfc9LG8ftDIX09jHk,30399
|
32
|
-
pangea/services/redact.py,sha256=
|
32
|
+
pangea/services/redact.py,sha256=vH4sg_t8MnoSjSY-F42JZhe8EfRmVCclslDN7U1hNP4,7756
|
33
33
|
pangea/services/vault/models/asymmetric.py,sha256=ac2Exc66elXxO-HxBqtvLPQWNI7y_00kb6SVqBPKecA,1450
|
34
34
|
pangea/services/vault/models/common.py,sha256=D_xZlqjEc0XO9G_aoed3YuPNTNYB5S2DoZJRIJVoliQ,9095
|
35
35
|
pangea/services/vault/models/secret.py,sha256=cLgEj-_BeGkB4-pmSeTkWVyasFbaJwcEltIEcOyf1U8,481
|
36
36
|
pangea/services/vault/models/symmetric.py,sha256=5N2n6FDStB1CLPfpd4p-6Ig__Nt-EyurhjCWfEyws2k,1330
|
37
|
-
pangea/services/vault/vault.py,sha256=
|
37
|
+
pangea/services/vault/vault.py,sha256=t3KU59FjUfVawbMZt7A51cDQoyapftChdihTqllVrTw,43160
|
38
38
|
pangea/tools.py,sha256=A9gkHpAkECwqnUKA-O09vG-n6Gmq2g_LYr61BUs-n54,6403
|
39
|
-
pangea/utils.py,sha256=
|
39
|
+
pangea/utils.py,sha256=09dHX9CKmyKNWccSF2z7LyCYYYduZ9AWP6D5Ylnfty8,3360
|
40
40
|
pangea/verify_audit.py,sha256=gWhde7gETKSWfBaMm5gEckAO2xmYB_vmgcZ_4FvvyfU,10616
|
41
|
-
pangea_sdk-3.
|
42
|
-
pangea_sdk-3.
|
43
|
-
pangea_sdk-3.
|
41
|
+
pangea_sdk-3.3.0.dist-info/METADATA,sha256=7xobhjV_WaLEGoK4-jsG9YZG_PqDEhYlXD3c6CnnxS0,6934
|
42
|
+
pangea_sdk-3.3.0.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
43
|
+
pangea_sdk-3.3.0.dist-info/RECORD,,
|
File without changes
|