peak-sdk 1.16.0__py3-none-any.whl → 1.16.1__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.
- peak/_version.py +1 -1
- peak/cli/press/apps/deployments.py +13 -0
- peak/press/apps.py +27 -1
- peak/sample_yaml/press/apps/deployments/create_app_deployment.yaml +6 -0
- peak/sample_yaml/press/apps/deployments/create_app_deployment_revision.yaml +7 -0
- {peak_sdk-1.16.0.dist-info → peak_sdk-1.16.1.dist-info}/METADATA +3 -3
- {peak_sdk-1.16.0.dist-info → peak_sdk-1.16.1.dist-info}/RECORD +10 -10
- {peak_sdk-1.16.0.dist-info → peak_sdk-1.16.1.dist-info}/LICENSE +0 -0
- {peak_sdk-1.16.0.dist-info → peak_sdk-1.16.1.dist-info}/WHEEL +0 -0
- {peak_sdk-1.16.0.dist-info → peak_sdk-1.16.1.dist-info}/entry_points.txt +0 -0
peak/_version.py
CHANGED
@@ -79,6 +79,12 @@ def create(
|
|
79
79
|
id (string): ID of the app spec to be deployed.
|
80
80
|
release (map | required: false):
|
81
81
|
version (string): A valid semantic release version of the app spec.
|
82
|
+
includes (list(map) | required: false): List of blocks to include in the deployment. These blocks should not be part of the app spec.
|
83
|
+
- id (string): ID of the block to include.
|
84
|
+
releaseVersion (string): Release version of the block.
|
85
|
+
excludes (list(map) | required: false): List of blocks that are part of the app spec which should be excluded from the deployment.
|
86
|
+
- id (string): ID of the block to exclude.
|
87
|
+
releaseVersion (string): Release version of the block.
|
82
88
|
```
|
83
89
|
|
84
90
|
\b
|
@@ -362,6 +368,13 @@ def create_revision(
|
|
362
368
|
version (string): A valid semantic release version of the app spec.
|
363
369
|
revision (map | required: false):
|
364
370
|
notes (string | required: false): Notes for the deployment revision.
|
371
|
+
blocksConfig (map | required: false):
|
372
|
+
includes (list(map) | required: false): List of blocks to include in the deployment. These blocks should not be part of the app spec.
|
373
|
+
- id (string): ID of the block to include.
|
374
|
+
releaseVersion (string): Release version of the block.
|
375
|
+
excludes (list(map) | required: false): List of blocks that are part of the app spec which should be excluded from the deployment.
|
376
|
+
- id (string): ID of the block to exclude.
|
377
|
+
releaseVersion (string): Release version of the block.
|
365
378
|
|
366
379
|
```
|
367
380
|
|
peak/press/apps.py
CHANGED
@@ -690,7 +690,19 @@ class App(BaseClient):
|
|
690
690
|
"id": "string(required)",
|
691
691
|
"release": {
|
692
692
|
"version": "string(required)",
|
693
|
-
}
|
693
|
+
},
|
694
|
+
"includes": [
|
695
|
+
{
|
696
|
+
"id": "string",
|
697
|
+
"releaseVersion": "string"
|
698
|
+
}
|
699
|
+
],
|
700
|
+
"excludes": [
|
701
|
+
{
|
702
|
+
"id": "string",
|
703
|
+
"releaseVersion": "string"
|
704
|
+
}
|
705
|
+
]
|
694
706
|
}
|
695
707
|
}
|
696
708
|
|
@@ -923,6 +935,20 @@ class App(BaseClient):
|
|
923
935
|
"revision": {
|
924
936
|
"notes": "string",
|
925
937
|
},
|
938
|
+
"blocksConfig": {
|
939
|
+
"includes": [
|
940
|
+
{
|
941
|
+
"id": "string",
|
942
|
+
"releaseVersion": "string"
|
943
|
+
}
|
944
|
+
],
|
945
|
+
"excludes": [
|
946
|
+
{
|
947
|
+
"id": "string",
|
948
|
+
"releaseVersion": "string"
|
949
|
+
}
|
950
|
+
]
|
951
|
+
},
|
926
952
|
"appParameters": {
|
927
953
|
"build": {
|
928
954
|
"param_name": "param_value (string | number | boolean | array)"
|
@@ -53,3 +53,9 @@ body:
|
|
53
53
|
id: 0bddb4c6-40c5-45c3-b477-fceb2c051609
|
54
54
|
release:
|
55
55
|
version: 1.0.0
|
56
|
+
# Block inclusion/exclusion configuration
|
57
|
+
includes:
|
58
|
+
- id: block-1
|
59
|
+
releaseVersion: "1.0.0" # including a block
|
60
|
+
excludes:
|
61
|
+
- id: block-3 # Excluding block-3 from deployment
|
@@ -42,3 +42,10 @@ body:
|
|
42
42
|
notes: This is the initial revision
|
43
43
|
release:
|
44
44
|
version: 2.0.0
|
45
|
+
# Added blocks configuration for revision
|
46
|
+
blocksConfig:
|
47
|
+
includes:
|
48
|
+
- id: block-1
|
49
|
+
releaseVersion: "2.0.0" # including a block
|
50
|
+
excludes:
|
51
|
+
- id: block-3 # Excluding block-3 in this revision
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: peak-sdk
|
3
|
-
Version: 1.16.
|
3
|
+
Version: 1.16.1
|
4
4
|
Summary: Python SDK for interacting with the Peak platform
|
5
5
|
Home-page: https://docs.peak.ai/sdk/latest/
|
6
6
|
License: Apache-2.0
|
@@ -106,7 +106,7 @@ Follow these steps to create a virtual environment using Python's built-in `venv
|
|
106
106
|
This should return a response of the following format
|
107
107
|
|
108
108
|
```bash
|
109
|
-
peak-cli==1.16.
|
109
|
+
peak-cli==1.16.1
|
110
110
|
Python==3.12.3
|
111
111
|
System==Darwin(23.6.0)
|
112
112
|
```
|
@@ -122,7 +122,7 @@ Follow these steps to create a virtual environment using Python's built-in `venv
|
|
122
122
|
This should print the version of the SDK
|
123
123
|
|
124
124
|
```
|
125
|
-
1.16.
|
125
|
+
1.16.1
|
126
126
|
```
|
127
127
|
|
128
128
|
### Using the SDK and CLI
|
@@ -1,6 +1,6 @@
|
|
1
1
|
peak/__init__.py,sha256=UaVwsRIPq0Wuti8j2x4ijGRVYywglfjvZGz6ALBA7Oo,1284
|
2
2
|
peak/_metadata.py,sha256=8w0pXN03pDvh1toM-divY6HNVF8znTqGGG2T9Q4hEl4,30672
|
3
|
-
peak/_version.py,sha256=
|
3
|
+
peak/_version.py,sha256=5wuddV5cIcy1OQhA83t3VXsCuuv4zZcyGjLpYx_yaj8,887
|
4
4
|
peak/auth.py,sha256=A6nM9VGUdPJpFTFmb1zeeHjhKfBIsAyIMmnF9ajZkgs,904
|
5
5
|
peak/base_client.py,sha256=UO25ZViCQfKbBEDEfCdKS-eLXaVzb1aGnYDntBZ77ko,1808
|
6
6
|
peak/callbacks.py,sha256=WRVxSpg0Ur3uzG1aqxX4dQ5YV_Dr4GBrwYddppztcdM,3775
|
@@ -12,7 +12,7 @@ peak/cli/metrics/__init__.py,sha256=O2Nxt8hTbW7E6IdFR5_cuL8WTiEk2Hf9QFNo29bpwfY,
|
|
12
12
|
peak/cli/metrics/metrics.py,sha256=4ipBmGJS5AW4FLjOqA4s92XL7WUjfYoYnVA1G8GEvlA,26301
|
13
13
|
peak/cli/press/__init__.py,sha256=Uiir3EoPCWk_zoEk-RitATS20RxDLqiW8Iz5jybrDts,898
|
14
14
|
peak/cli/press/apps/__init__.py,sha256=Z_-egO6FtdFqAgy5KmUUY-F9ELaGcvJYd5yMbyHoCh4,1459
|
15
|
-
peak/cli/press/apps/deployments.py,sha256=
|
15
|
+
peak/cli/press/apps/deployments.py,sha256=I7RC9YgAJnXBD6PhzjMgqchqGRrQVSDi5EbP3D39yFI,19889
|
16
16
|
peak/cli/press/apps/specs.py,sha256=9veK_CGrOUTpNEMIn1j-xrkcW8giY4E9LuQLpBuH8DQ,19635
|
17
17
|
peak/cli/press/blocks/__init__.py,sha256=gv42qPm2SMBOZ4j3jVYs_02CWZsWaDzNUnGmcLpOKPc,1499
|
18
18
|
peak/cli/press/blocks/deployments.py,sha256=WnTogya42FVyRR_180ZQJ6KmlRUEJDyOL64kppimbdU,21953
|
@@ -42,7 +42,7 @@ peak/metrics/__init__.py,sha256=nW_9D_UHYo52OZ-aKYW0S-t8bouj-W9D9olPmYJYVi4,1057
|
|
42
42
|
peak/metrics/metrics.py,sha256=jtBkeuwAiTgiT2Q_3qh2gKhOM25QUjv2W74Vx8pUPcI,24533
|
43
43
|
peak/output.py,sha256=opIOxagBEXEe-V2Gtx96DuvZ4mdUwjkKt3P5dDY_VME,6971
|
44
44
|
peak/press/__init__.py,sha256=-Okc8-phtD8IGOP1YES3fKA7kRXla1mTLBk0uWVAObo,1112
|
45
|
-
peak/press/apps.py,sha256=
|
45
|
+
peak/press/apps.py,sha256=nnYOYbRtdrkC159wBLpXMaRsZffudZ3jrLagvY_-Z4U,51699
|
46
46
|
peak/press/blocks.py,sha256=9XLt2iiQBFa3ON9BddVZ1vp-kRNjij2JOfn069SAO-g,97610
|
47
47
|
peak/press/deployments.py,sha256=ZUcuUMygIEswGXleZAF8wkjzSXSl21jGERvIXJ__dcw,10969
|
48
48
|
peak/press/specs.py,sha256=SiSQcXXlPXQQ38AuUqfUmAW8tkuOXlSjwsWDrhNwSmQ,10915
|
@@ -59,8 +59,8 @@ peak/resources/workflows.py,sha256=bua9jd_i2foawq9MDb7BsXqPEOi9lfl3R3vCwZZ3qrY,8
|
|
59
59
|
peak/sample_yaml/metrics/create_collection.yaml,sha256=Vai6OWLPp1_ZhDWwN4ziMIFsJRmoqLZIIqC2sMgBSWw,148
|
60
60
|
peak/sample_yaml/metrics/publish.yaml,sha256=yeeRkhED5bawJmcT4Im19Y8e5IWDyQAmXFQ-2SQTNko,65
|
61
61
|
peak/sample_yaml/metrics/query.yaml,sha256=0RKgPjVvDxEHZcB9yj9sKan1vOiIw5_utRn682eYdag,463
|
62
|
-
peak/sample_yaml/press/apps/deployments/create_app_deployment.yaml,sha256=
|
63
|
-
peak/sample_yaml/press/apps/deployments/create_app_deployment_revision.yaml,sha256=
|
62
|
+
peak/sample_yaml/press/apps/deployments/create_app_deployment.yaml,sha256=rjM3Uec4pIFCCS51Fq0kElnxqSqzdV2n2DY6wYlpFlM,1456
|
63
|
+
peak/sample_yaml/press/apps/deployments/create_app_deployment_revision.yaml,sha256=C4lt_gNKECuKonJShtpGCT0KT8HYyzPwNswlqsN8_Ho,1163
|
64
64
|
peak/sample_yaml/press/apps/deployments/update_app_deployment_metadata.yaml,sha256=RBrAnxULPXYTrYY7T6l-L5_Q1E8LJ6RwVwOkw4zn5w0,302
|
65
65
|
peak/sample_yaml/press/apps/specs/create_app_spec.yaml,sha256=s7Wa8a3OEalt6oPc_dDcTXstF7x5PMZ8lBYuNMaFIX4,3263
|
66
66
|
peak/sample_yaml/press/apps/specs/create_app_spec_release.yaml,sha256=8dI4n6LQfbi2LR_8IJOPe7NrMLdEoa2zHTbhemZGBCs,2928
|
@@ -122,8 +122,8 @@ peak/tools/logging/log_level.py,sha256=FVe94CEtow3nfHhNr5oQk0gEt2_5mpfaiV-xTfagX
|
|
122
122
|
peak/tools/logging/logger.py,sha256=5wvQwgwWrHllOmEl_O6q5Obv1-Eb2cW1deXtR8h_IqQ,15679
|
123
123
|
peak/tools/logging/utils.py,sha256=XRQ0nw_lmV_iiRel-o83EE84UTjvrzLTt4H7BHlPbLg,3330
|
124
124
|
peak/validators.py,sha256=mY17UDGKJ879wY3EApqrGVs3hJvRkPhgwftvmvnKAdI,2715
|
125
|
-
peak_sdk-1.16.
|
126
|
-
peak_sdk-1.16.
|
127
|
-
peak_sdk-1.16.
|
128
|
-
peak_sdk-1.16.
|
129
|
-
peak_sdk-1.16.
|
125
|
+
peak_sdk-1.16.1.dist-info/LICENSE,sha256=W0jszenKx7YdFA7BDnyg8xDKXzCP8AperJb_PHh9paQ,11340
|
126
|
+
peak_sdk-1.16.1.dist-info/METADATA,sha256=fTH_c8CpV1hE-fGuvwIeA_QRjmbR2xZuEbhv7vdsn8k,7935
|
127
|
+
peak_sdk-1.16.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
128
|
+
peak_sdk-1.16.1.dist-info/entry_points.txt,sha256=zHCEjuOTjkfmqivgEZQsPGm4zFA4W3Q_vKCjPr7W6lE,47
|
129
|
+
peak_sdk-1.16.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|