digitalhub 0.14.0b7__py3-none-any.whl → 0.14.1b0__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.
Potentially problematic release.
This version of digitalhub might be problematic. Click here for more details.
- digitalhub/__init__.py +2 -2
- digitalhub/context/api.py +42 -1
- digitalhub/context/context.py +3 -6
- digitalhub/entities/_base/context/entity.py +0 -3
- digitalhub/entities/_base/material/entity.py +2 -2
- digitalhub/entities/_processors/base/crud.py +14 -23
- digitalhub/entities/_processors/base/import_export.py +0 -5
- digitalhub/entities/_processors/base/processor.py +1 -4
- digitalhub/entities/_processors/base/special_ops.py +4 -8
- digitalhub/entities/_processors/context/crud.py +5 -5
- digitalhub/entities/_processors/context/import_export.py +5 -5
- digitalhub/entities/_processors/context/material.py +2 -2
- digitalhub/entities/_processors/context/special_ops.py +13 -13
- digitalhub/entities/_processors/utils.py +2 -111
- digitalhub/entities/function/_base/entity.py +0 -3
- digitalhub/entities/project/_base/builder.py +0 -6
- digitalhub/entities/project/_base/entity.py +4 -12
- digitalhub/entities/project/_base/spec.py +4 -4
- digitalhub/entities/project/crud.py +9 -44
- digitalhub/entities/project/utils.py +7 -3
- digitalhub/entities/workflow/_base/entity.py +0 -5
- digitalhub/stores/client/{dhcore/api_builder.py → api_builder.py} +2 -3
- digitalhub/stores/client/builder.py +20 -32
- digitalhub/stores/client/{dhcore/client.py → client.py} +64 -23
- digitalhub/stores/client/{dhcore/configurator.py → configurator.py} +122 -176
- digitalhub/stores/client/{_base/enums.py → enums.py} +11 -0
- digitalhub/stores/client/{dhcore/http_handler.py → http_handler.py} +4 -5
- digitalhub/stores/client/{_base/key_builder.py → key_builder.py} +13 -13
- digitalhub/stores/client/{dhcore/params_builder.py → params_builder.py} +51 -12
- digitalhub/stores/client/{dhcore/response_processor.py → response_processor.py} +1 -1
- digitalhub/stores/client/{dhcore/utils.py → utils.py} +2 -7
- digitalhub/stores/{credentials → configurator}/api.py +5 -5
- digitalhub/stores/configurator/configurator.py +123 -0
- digitalhub/stores/{credentials → configurator}/enums.py +25 -10
- digitalhub/stores/configurator/handler.py +213 -0
- digitalhub/stores/{credentials → configurator}/ini_module.py +31 -0
- digitalhub/stores/data/_base/store.py +0 -4
- digitalhub/stores/data/api.py +2 -4
- digitalhub/stores/data/builder.py +5 -37
- digitalhub/stores/data/s3/configurator.py +30 -114
- digitalhub/stores/data/s3/store.py +9 -22
- digitalhub/stores/data/sql/configurator.py +49 -71
- digitalhub/stores/data/sql/store.py +20 -55
- {digitalhub-0.14.0b7.dist-info → digitalhub-0.14.1b0.dist-info}/METADATA +1 -1
- {digitalhub-0.14.0b7.dist-info → digitalhub-0.14.1b0.dist-info}/RECORD +51 -66
- digitalhub/stores/client/_base/api_builder.py +0 -34
- digitalhub/stores/client/_base/client.py +0 -243
- digitalhub/stores/client/_base/params_builder.py +0 -82
- digitalhub/stores/client/api.py +0 -32
- digitalhub/stores/client/dhcore/__init__.py +0 -3
- digitalhub/stores/client/dhcore/enums.py +0 -18
- digitalhub/stores/client/dhcore/key_builder.py +0 -62
- digitalhub/stores/client/local/__init__.py +0 -3
- digitalhub/stores/client/local/api_builder.py +0 -116
- digitalhub/stores/client/local/client.py +0 -605
- digitalhub/stores/client/local/enums.py +0 -15
- digitalhub/stores/client/local/key_builder.py +0 -62
- digitalhub/stores/client/local/params_builder.py +0 -97
- digitalhub/stores/credentials/__init__.py +0 -3
- digitalhub/stores/credentials/configurator.py +0 -185
- digitalhub/stores/credentials/handler.py +0 -164
- digitalhub/stores/credentials/store.py +0 -77
- /digitalhub/stores/client/{dhcore/error_parser.py → error_parser.py} +0 -0
- /digitalhub/stores/client/{dhcore/header_manager.py → header_manager.py} +0 -0
- /digitalhub/stores/{client/_base → configurator}/__init__.py +0 -0
- {digitalhub-0.14.0b7.dist-info → digitalhub-0.14.1b0.dist-info}/WHEEL +0 -0
- {digitalhub-0.14.0b7.dist-info → digitalhub-0.14.1b0.dist-info}/licenses/AUTHORS +0 -0
- {digitalhub-0.14.0b7.dist-info → digitalhub-0.14.1b0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
digitalhub/__init__.py,sha256=
|
|
2
|
-
digitalhub/context/api.py,sha256=
|
|
1
|
+
digitalhub/__init__.py,sha256=m4Q5BxxOVmfOiXeKC8X4-BNIlq_cgNsYSj93Vd4i79c,2453
|
|
2
|
+
digitalhub/context/api.py,sha256=Z4ffAl79YTx-Xq8y6RICptLqbdJoWFcZZsEBdsAIAVc,2839
|
|
3
3
|
digitalhub/context/builder.py,sha256=pnOKvzRa6HIIYW86vhQ7W5aKcVb1yYERxwsA6TA8Wu0,2770
|
|
4
|
-
digitalhub/context/context.py,sha256=
|
|
4
|
+
digitalhub/context/context.py,sha256=eDZgZAJBtd3v267Xxt2lwM3WgBm9jtzbR6RoKUhu9V4,2995
|
|
5
5
|
digitalhub/entities/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
6
6
|
digitalhub/entities/builders.py,sha256=I-RVAFNgnZGmx7Dyz8_n7gfsG-BVgbgfraJal5NWipE,2054
|
|
7
7
|
digitalhub/entities/_base/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
8
8
|
digitalhub/entities/_base/_base/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
9
9
|
digitalhub/entities/_base/_base/entity.py,sha256=1OiJWY79VnlmMU4q6uaQA0g63bnFpBMFALg8dJ4M08g,1910
|
|
10
10
|
digitalhub/entities/_base/context/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
11
|
-
digitalhub/entities/_base/context/entity.py,sha256=
|
|
11
|
+
digitalhub/entities/_base/context/entity.py,sha256=uY5iGlcjX-AtSDG8-sEKu1hi-BvusIEIM2P30nQ9o3I,3244
|
|
12
12
|
digitalhub/entities/_base/entity/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
13
13
|
digitalhub/entities/_base/entity/builder.py,sha256=Kp_csTw0VXMelSy5YOQtcJBt0Z13017nqr1SQJYQuBA,4854
|
|
14
14
|
digitalhub/entities/_base/entity/entity.py,sha256=CF4kq9jSGCJmiXOf8J9lQdYvGMPdKtKbsBQt_YfTqOA,3239
|
|
@@ -18,7 +18,7 @@ digitalhub/entities/_base/entity/status.py,sha256=0txG13WDPJE-vRAUkJQYEHMsSzer6q
|
|
|
18
18
|
digitalhub/entities/_base/executable/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
19
19
|
digitalhub/entities/_base/executable/entity.py,sha256=vDqijNBE852lXDkjsun1eNa-jOWckhb-ADqJtAo-TpY,16013
|
|
20
20
|
digitalhub/entities/_base/material/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
21
|
-
digitalhub/entities/_base/material/entity.py,sha256=
|
|
21
|
+
digitalhub/entities/_base/material/entity.py,sha256=EgYQRpS0o8xsYh-3G7zG32dyjrBbU1vVImR3ZnEuNlQ,6658
|
|
22
22
|
digitalhub/entities/_base/material/spec.py,sha256=7lF_Pv7zGJUAR2ixmmCt-UPnoASgOLxnb9yffqwBVp8,544
|
|
23
23
|
digitalhub/entities/_base/material/status.py,sha256=vAIb5qti5KxdIPdB9WYmWrCnqwGyUxuF6CpGSpcWxbE,520
|
|
24
24
|
digitalhub/entities/_base/material/utils.py,sha256=TWAXw5EUtDkWJIy_V48U_wFk_bbRgNUuNT-Qx6_tFuQ,3053
|
|
@@ -43,18 +43,18 @@ digitalhub/entities/_constructors/status.py,sha256=PrnouXDllZxS7t6pzbMohTov8QTne
|
|
|
43
43
|
digitalhub/entities/_constructors/uuid.py,sha256=7QhQ9epJAnYLCKUPY6AMXOe72nPT8xZRnNM98p_vTnM,663
|
|
44
44
|
digitalhub/entities/_processors/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
45
45
|
digitalhub/entities/_processors/processors.py,sha256=V-pA5iY6POAfiidZ7fFqfIQDwvxAIKXe-dEBYtRiAGg,473
|
|
46
|
-
digitalhub/entities/_processors/utils.py,sha256=
|
|
46
|
+
digitalhub/entities/_processors/utils.py,sha256=Gg6g9eM_QCdS1jIv2kGKaDt4JVnBEkGHvp5Sq0tNg5w,3169
|
|
47
47
|
digitalhub/entities/_processors/base/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
48
|
-
digitalhub/entities/_processors/base/crud.py,sha256=
|
|
49
|
-
digitalhub/entities/_processors/base/import_export.py,sha256=
|
|
50
|
-
digitalhub/entities/_processors/base/processor.py,sha256=
|
|
51
|
-
digitalhub/entities/_processors/base/special_ops.py,sha256=
|
|
48
|
+
digitalhub/entities/_processors/base/crud.py,sha256=kGtI1XO1tWtjuN7RE5a6WMpsY3nmFyh7Mb2tAKQN_tw,11209
|
|
49
|
+
digitalhub/entities/_processors/base/import_export.py,sha256=7ATbt_DmoMv4s-ZAgoAmwTx-m_LlGpMmKmDzzOhHP_w,3982
|
|
50
|
+
digitalhub/entities/_processors/base/processor.py,sha256=_NC7L3jWwmiviYt69fFhFW_Udz_xS8b5jbQ_e0l8rr8,9329
|
|
51
|
+
digitalhub/entities/_processors/base/special_ops.py,sha256=9Qx5Ha5DR8nCN3huh3OQQQIZd-aAuGwX1Czb5hKK1g0,3101
|
|
52
52
|
digitalhub/entities/_processors/context/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
53
|
-
digitalhub/entities/_processors/context/crud.py,sha256=
|
|
54
|
-
digitalhub/entities/_processors/context/import_export.py,sha256=
|
|
55
|
-
digitalhub/entities/_processors/context/material.py,sha256=
|
|
53
|
+
digitalhub/entities/_processors/context/crud.py,sha256=SVPUWIlERVN31DYDNw_Tt7tCcqif63mZO7xoNzXC6xw,20221
|
|
54
|
+
digitalhub/entities/_processors/context/import_export.py,sha256=ICjqwMTKm1F23m0qVgBm_jC4kDitU4JpC7BU7pNmqe4,8564
|
|
55
|
+
digitalhub/entities/_processors/context/material.py,sha256=ay4kTl2-3fS7ByNlZRtMQtuYqmUWJA65_Q_hG9GRxMc,4033
|
|
56
56
|
digitalhub/entities/_processors/context/processor.py,sha256=bUD0CKO1dPnym5SItSc6fldSfEJc_VM6RUNLvAakUnA,12167
|
|
57
|
-
digitalhub/entities/_processors/context/special_ops.py,sha256=
|
|
57
|
+
digitalhub/entities/_processors/context/special_ops.py,sha256=eT74sgFvE6exeJHWQH5Edj209j_HEOl5hIIHpcfn-7w,14486
|
|
58
58
|
digitalhub/entities/artifact/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
59
59
|
digitalhub/entities/artifact/crud.py,sha256=X5AVGBsW9quV2Z1KzpxfYnoN7J8iKNRrOCnBIPGlskA,8979
|
|
60
60
|
digitalhub/entities/artifact/utils.py,sha256=sgdq0l0ZYL0jSdSexb4EOhW5vnWq8AILXqsKtGBVBfQ,2414
|
|
@@ -97,7 +97,7 @@ digitalhub/entities/function/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36
|
|
|
97
97
|
digitalhub/entities/function/crud.py,sha256=fnGy_9QM03TQeMuE-Y2EsYBoD-HglLESehboyLFbhdU,7547
|
|
98
98
|
digitalhub/entities/function/_base/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
99
99
|
digitalhub/entities/function/_base/builder.py,sha256=tmpcf5VGi5T24AQaa_lvmdi53mliObGMd59eDAwlWlw,2143
|
|
100
|
-
digitalhub/entities/function/_base/entity.py,sha256=
|
|
100
|
+
digitalhub/entities/function/_base/entity.py,sha256=pDBVSeIlStw0_YZKoyYKq_YKAmUrWlsMjfDvFAqVCDY,3053
|
|
101
101
|
digitalhub/entities/function/_base/spec.py,sha256=qDiqfe6zSFYYH-kXPmm4R_LId985V24hO2ikFApv-6U,382
|
|
102
102
|
digitalhub/entities/function/_base/status.py,sha256=wjCUr2HoQQUL4fwTjvPE8eubkCeVxbe2VV8zs0BJ5RY,278
|
|
103
103
|
digitalhub/entities/model/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
@@ -131,13 +131,13 @@ digitalhub/entities/model/sklearn/entity.py,sha256=PvjW0xMyLEPH3bO8FAOEdu1H1hp1r
|
|
|
131
131
|
digitalhub/entities/model/sklearn/spec.py,sha256=AEoiRp2T46z8IrQ-BHx1rtd4b_yaEZJSQ_necKjkjjw,409
|
|
132
132
|
digitalhub/entities/model/sklearn/status.py,sha256=YBf5joe8hJH59U92m0JKFlmLCRpNj0EyR3mA7DKiVrQ,295
|
|
133
133
|
digitalhub/entities/project/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
134
|
-
digitalhub/entities/project/crud.py,sha256=
|
|
135
|
-
digitalhub/entities/project/utils.py,sha256
|
|
134
|
+
digitalhub/entities/project/crud.py,sha256=U_NnqOewPPaydbx2VJIsihmuwi-A-LYTsLNoC1AcznM,7236
|
|
135
|
+
digitalhub/entities/project/utils.py,sha256=NP3VomFV84BEdgcbjBp4K70oPrVeuhTIu8GL8H8NGmY,1210
|
|
136
136
|
digitalhub/entities/project/_base/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
137
|
-
digitalhub/entities/project/_base/builder.py,sha256=
|
|
138
|
-
digitalhub/entities/project/_base/entity.py,sha256=
|
|
137
|
+
digitalhub/entities/project/_base/builder.py,sha256=i5loUneU7VdL3oAJOyWP3wl8Z_OJRrYzXcsw3_BrftY,3654
|
|
138
|
+
digitalhub/entities/project/_base/entity.py,sha256=rL6mOw1XPPISdDRM6BuFGUUsdpuasOzIAzZdjs9bhNI,61767
|
|
139
139
|
digitalhub/entities/project/_base/models.py,sha256=_TvjQgMd6EwzGIks9dNszBNMT5BHTwtLce-TDTObSoY,482
|
|
140
|
-
digitalhub/entities/project/_base/spec.py,sha256=
|
|
140
|
+
digitalhub/entities/project/_base/spec.py,sha256=QhLsp4dPXd_0m7XQsSt927JAUHHf7WaH4Tg01p_0W5M,1771
|
|
141
141
|
digitalhub/entities/project/_base/status.py,sha256=afEb5CGeovM5VLPsxzP4k2QGEZjhhGkpEmVlK0Fh7sE,276
|
|
142
142
|
digitalhub/entities/run/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
143
143
|
digitalhub/entities/run/crud.py,sha256=a8pT6V3QFbEwQcCkoYGVPe3WXWBkhK_Eb3OpfNi-6tw,6061
|
|
@@ -182,7 +182,7 @@ digitalhub/entities/workflow/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36
|
|
|
182
182
|
digitalhub/entities/workflow/crud.py,sha256=NWp29W_YtGWT4Jp-rejojmQGruIOuqWskz7DHjOBlXI,7550
|
|
183
183
|
digitalhub/entities/workflow/_base/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
184
184
|
digitalhub/entities/workflow/_base/builder.py,sha256=G0IyxVzHa_640vZiljTcCKF8hmfBQfrQsOj8QInU2Ok,2143
|
|
185
|
-
digitalhub/entities/workflow/_base/entity.py,sha256=
|
|
185
|
+
digitalhub/entities/workflow/_base/entity.py,sha256=WAurCCWNUehHtzmMb651sNSpooeTt8_53YjK9pYK9eI,2425
|
|
186
186
|
digitalhub/entities/workflow/_base/spec.py,sha256=3TKGDnf8_47H5hMl38DWz7rXp2d-zsz8wRzV8fSlFb8,382
|
|
187
187
|
digitalhub/entities/workflow/_base/status.py,sha256=sIZJOUBLB7UKqCMnaGBz1l6Kc3wg9u0518ce1ebHInM,278
|
|
188
188
|
digitalhub/factory/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
@@ -197,55 +197,40 @@ digitalhub/runtimes/builder.py,sha256=u49-y40j4ZL3fm4IG8KGHt45xFl5n3mw4unJjsJiZM
|
|
|
197
197
|
digitalhub/runtimes/enums.py,sha256=MCaeTOD3Bd6cdXnOlbklmRJ6rBHctJ-iJFiCrRM4Sx0,634
|
|
198
198
|
digitalhub/stores/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
199
199
|
digitalhub/stores/client/__init__.py,sha256=0NWCFXlcnb45II98tUAGtvXUNVMXsIbFePmo7G0ltn8,456
|
|
200
|
-
digitalhub/stores/client/
|
|
201
|
-
digitalhub/stores/client/builder.py,sha256=
|
|
202
|
-
digitalhub/stores/client/
|
|
203
|
-
digitalhub/stores/client/
|
|
204
|
-
digitalhub/stores/client/
|
|
205
|
-
digitalhub/stores/client/
|
|
206
|
-
digitalhub/stores/client/
|
|
207
|
-
digitalhub/stores/client/
|
|
208
|
-
digitalhub/stores/client/
|
|
209
|
-
digitalhub/stores/client/
|
|
210
|
-
digitalhub/stores/client/
|
|
211
|
-
digitalhub/stores/client/
|
|
212
|
-
digitalhub/stores/
|
|
213
|
-
digitalhub/stores/
|
|
214
|
-
digitalhub/stores/
|
|
215
|
-
digitalhub/stores/
|
|
216
|
-
digitalhub/stores/
|
|
217
|
-
digitalhub/stores/
|
|
218
|
-
digitalhub/stores/client/dhcore/response_processor.py,sha256=1uLqTmuL66KFIThqEp4zT-sgKvkfuZi9EzUhlBd_Au4,3007
|
|
219
|
-
digitalhub/stores/client/dhcore/utils.py,sha256=eMIzocdfliEk0Hbgm7xyQ-gOP0srra627y9JU1Z8uDU,627
|
|
220
|
-
digitalhub/stores/client/local/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
221
|
-
digitalhub/stores/client/local/api_builder.py,sha256=fLzz1B-MdMvrqapn1gecwsJ30dwqZGYvViZobl0mLlA,3565
|
|
222
|
-
digitalhub/stores/client/local/client.py,sha256=IVpIo-3GP38Of3YNyX_JMhzVzz-XdiZIXFAILnLOYqg,19315
|
|
223
|
-
digitalhub/stores/client/local/enums.py,sha256=J4xf23H2AO8OKYPim2XO143A7j_X6dqfPSm03Sbi0AI,258
|
|
224
|
-
digitalhub/stores/client/local/key_builder.py,sha256=ijISHvPcMyx591gHlSP1IZdiRrFi0oVh8AqaWe1L_g0,1431
|
|
225
|
-
digitalhub/stores/client/local/params_builder.py,sha256=Rj7FlqUqIIcFEdxc2PUAgLN1hvtjJNmuwxWlqVCpSSc,3029
|
|
226
|
-
digitalhub/stores/credentials/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
227
|
-
digitalhub/stores/credentials/api.py,sha256=zbjWg9J14x99VyMCWrVxLXneEcaDCpE1PMO3GJoyQqQ,704
|
|
228
|
-
digitalhub/stores/credentials/configurator.py,sha256=u28OBeEq6xvvrCW2rZAY019elf6nHn18U5WP2E_sLpM,5213
|
|
229
|
-
digitalhub/stores/credentials/enums.py,sha256=uRJ6af0ujk3Ki4DXM9rFqBROyhlbf4EYNWml_CSdJL8,1665
|
|
230
|
-
digitalhub/stores/credentials/handler.py,sha256=DpIcuRRLcxGIZaDqskLl6hduoULRV6GwufLCoFEPPnM,4217
|
|
231
|
-
digitalhub/stores/credentials/ini_module.py,sha256=c58dWRB84kKYG3Fd0-YDgAW3eFiTbQ8IoS_KvRlj4Ug,3311
|
|
232
|
-
digitalhub/stores/credentials/store.py,sha256=pA7G-ho2-_Nw_E-hktt1x2wDbv4YpwcbwK_RnQnsDLI,2145
|
|
200
|
+
digitalhub/stores/client/api_builder.py,sha256=RrAVQRHzm0Z68hsH3TO8-VsR3_7X7y3maluCTO0aW98,4452
|
|
201
|
+
digitalhub/stores/client/builder.py,sha256=y58cKn93t-2QQkyCocFPE_Zus34uNHOLNcCb9DIwdGo,872
|
|
202
|
+
digitalhub/stores/client/client.py,sha256=cfMhMC_9atcKTWNockvBA8IsFNEoJqoyMNnireqqjaA,9566
|
|
203
|
+
digitalhub/stores/client/configurator.py,sha256=_5vWMhmKleM2dFqBoRQAQdvZxKtzqJE3j3nATrDIuyQ,13504
|
|
204
|
+
digitalhub/stores/client/enums.py,sha256=lCM5W3xOSPt1YarY1sqoNCHWfx_NKldgk3byTk9bJ8U,908
|
|
205
|
+
digitalhub/stores/client/error_parser.py,sha256=lJNRC_rXA1pVpkF-g_lOp5TXOBsTpt6CArSRTVRswiY,4572
|
|
206
|
+
digitalhub/stores/client/header_manager.py,sha256=iCDyy1G6ISGWG4r5ptluE0kVZaJgoCwjyjAVpLQFgDA,1774
|
|
207
|
+
digitalhub/stores/client/http_handler.py,sha256=jOdPsdXdnX0UPHVO5rFn_Nnauk8z3H_L-h261GXiQvo,4215
|
|
208
|
+
digitalhub/stores/client/key_builder.py,sha256=LpPvHhaSrPWDgCzIsLxJuKlk5xs3WrQDT8yi9ajZeKc,1924
|
|
209
|
+
digitalhub/stores/client/params_builder.py,sha256=zM3s9o3J0NcdxIC6Dn6sN63LE5cH4eMMs6rDdwrHNp8,10639
|
|
210
|
+
digitalhub/stores/client/response_processor.py,sha256=4MTflCwcEsqXlPE34lXqJyw-PovHeTWHozvuP9FdRms,3000
|
|
211
|
+
digitalhub/stores/client/utils.py,sha256=MeXl46lQM-MzzBAUs0-iR8667N4EhtzO5kRV1t0lvpc,570
|
|
212
|
+
digitalhub/stores/configurator/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
213
|
+
digitalhub/stores/configurator/api.py,sha256=mvKLd45AmjmeDC-KURs5jEd5P0kIMP3Uvn6F2odMcE0,695
|
|
214
|
+
digitalhub/stores/configurator/configurator.py,sha256=RdPv7WZpunMY-0oSRws4yA5JGk6jBvWvMaz8sa1FCJ8,3106
|
|
215
|
+
digitalhub/stores/configurator/enums.py,sha256=IB0IXGhrZdCwxWvzM0IJlKSoc7JhG5rOx8wndriWxBI,1862
|
|
216
|
+
digitalhub/stores/configurator/handler.py,sha256=JlXcc_OVgAL2JHXCKlMf38X2HSaUm2kJhkT8JbthS14,6002
|
|
217
|
+
digitalhub/stores/configurator/ini_module.py,sha256=diqSmqduLLiuzSBCmg88pXphm6dQ2K31Q8RUc3S6Hgk,4152
|
|
233
218
|
digitalhub/stores/data/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
234
|
-
digitalhub/stores/data/api.py,sha256=
|
|
235
|
-
digitalhub/stores/data/builder.py,sha256=
|
|
219
|
+
digitalhub/stores/data/api.py,sha256=_pspRqWvz77XsMJsSGayr3cM52Q6JU06vitXoyTzOYw,1659
|
|
220
|
+
digitalhub/stores/data/builder.py,sha256=wzK6c_re5F4G7qMocQfHtazcVXME0novhGfp2Qymn4g,3621
|
|
236
221
|
digitalhub/stores/data/enums.py,sha256=8pO_tUZmKB4BpjW29lQN9rLGPOrJoqDVYJYzzxeDXW4,305
|
|
237
222
|
digitalhub/stores/data/_base/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
238
|
-
digitalhub/stores/data/_base/store.py,sha256=
|
|
223
|
+
digitalhub/stores/data/_base/store.py,sha256=_gwmBJCb6LVvAi6MCrRnROmwJream1pRnbysMYY_DrQ,5501
|
|
239
224
|
digitalhub/stores/data/local/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
240
225
|
digitalhub/stores/data/local/store.py,sha256=epnuwyNAmx6YD5EKK-TdicUG1-ye9xfIVW7TtzQ_m_M,4810
|
|
241
226
|
digitalhub/stores/data/remote/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
242
227
|
digitalhub/stores/data/remote/store.py,sha256=3E_MFkUiGDBQFKaCYgX64aLfod7wLCLRuMpS7Yrz6HY,6084
|
|
243
228
|
digitalhub/stores/data/s3/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
244
|
-
digitalhub/stores/data/s3/configurator.py,sha256=
|
|
245
|
-
digitalhub/stores/data/s3/store.py,sha256=
|
|
229
|
+
digitalhub/stores/data/s3/configurator.py,sha256=RdanzAFP3Uu8gcBl0KlWeKQkwwlhHf7qXwWLU6NqADU,2499
|
|
230
|
+
digitalhub/stores/data/s3/store.py,sha256=dQ_gw327bHRZ180XfUX9-mi6s0bMxCn2belE8rpbixE,20208
|
|
246
231
|
digitalhub/stores/data/sql/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
247
|
-
digitalhub/stores/data/sql/configurator.py,sha256=
|
|
248
|
-
digitalhub/stores/data/sql/store.py,sha256=
|
|
232
|
+
digitalhub/stores/data/sql/configurator.py,sha256=1kMeYu9j0SA37nX83IVUM1BJL4DOnS7bwcCoo0nrMjI,3143
|
|
233
|
+
digitalhub/stores/data/sql/store.py,sha256=TncvdwPNeJwgd6I_KU7LBafgB8Vca0Ao8xEFgK2txVc,15852
|
|
249
234
|
digitalhub/stores/readers/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
250
235
|
digitalhub/stores/readers/data/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
251
236
|
digitalhub/stores/readers/data/api.py,sha256=jn2AwCcTRbAOeAhs-3D1OpjhvFf8y537upvzVAgHxl4,1966
|
|
@@ -268,8 +253,8 @@ digitalhub/utils/logger.py,sha256=hH3gGE35L8jRxrg8EPXGZZAK1OA5-CvWnayuBZzteBM,54
|
|
|
268
253
|
digitalhub/utils/store_utils.py,sha256=Nuj5BzcAll-qIIgAgvp00S3yfV50NyWdTZEabJAqxDE,1013
|
|
269
254
|
digitalhub/utils/types.py,sha256=orCxY43zXMJfKZsOj6FUR85u9wRBPJ0wdkzrBHTnVW8,217
|
|
270
255
|
digitalhub/utils/uri_utils.py,sha256=Go787CxAOo2MMjFIEt8XssomtyV8vTdIrpyjSQK3gAM,4408
|
|
271
|
-
digitalhub-0.14.
|
|
272
|
-
digitalhub-0.14.
|
|
273
|
-
digitalhub-0.14.
|
|
274
|
-
digitalhub-0.14.
|
|
275
|
-
digitalhub-0.14.
|
|
256
|
+
digitalhub-0.14.1b0.dist-info/METADATA,sha256=cArPzm1L18EcZYTqsMhu03JddIn_VFRv2r-Sofoxioo,18129
|
|
257
|
+
digitalhub-0.14.1b0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
258
|
+
digitalhub-0.14.1b0.dist-info/licenses/AUTHORS,sha256=iDleK_2EAMmh0o8Te_E9mdXQCP4rBfFr9dW9d0-pCno,301
|
|
259
|
+
digitalhub-0.14.1b0.dist-info/licenses/LICENSE,sha256=z3xQCHfGmTnigfoUe3uidW_GUSVeFBdos30w9VNTRec,11361
|
|
260
|
+
digitalhub-0.14.1b0.dist-info/RECORD,,
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# SPDX-FileCopyrightText: © 2025 DSLab - Fondazione Bruno Kessler
|
|
2
|
-
#
|
|
3
|
-
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
|
|
5
|
-
from __future__ import annotations
|
|
6
|
-
|
|
7
|
-
from abc import abstractmethod
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class ClientApiBuilder:
|
|
11
|
-
"""
|
|
12
|
-
This class is used to build the API for the client.
|
|
13
|
-
Depending on the client, the API is built differently.
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
@abstractmethod
|
|
17
|
-
def build_api(self, category: str, operation: str, **kwargs) -> str:
|
|
18
|
-
"""
|
|
19
|
-
Build the API for the client.
|
|
20
|
-
|
|
21
|
-
Parameters
|
|
22
|
-
----------
|
|
23
|
-
category : str
|
|
24
|
-
The API category.
|
|
25
|
-
operation : str
|
|
26
|
-
The API operation.
|
|
27
|
-
**kwargs : dict
|
|
28
|
-
Additional keyword arguments.
|
|
29
|
-
|
|
30
|
-
Returns
|
|
31
|
-
-------
|
|
32
|
-
str
|
|
33
|
-
The formatted API endpoint.
|
|
34
|
-
"""
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
# SPDX-FileCopyrightText: © 2025 DSLab - Fondazione Bruno Kessler
|
|
2
|
-
#
|
|
3
|
-
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
|
|
5
|
-
from __future__ import annotations
|
|
6
|
-
|
|
7
|
-
import typing
|
|
8
|
-
from abc import abstractmethod
|
|
9
|
-
from typing import Any
|
|
10
|
-
|
|
11
|
-
if typing.TYPE_CHECKING:
|
|
12
|
-
from digitalhub.stores.client._base.api_builder import ClientApiBuilder
|
|
13
|
-
from digitalhub.stores.client._base.key_builder import ClientKeyBuilder
|
|
14
|
-
from digitalhub.stores.client._base.params_builder import ClientParametersBuilder
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class Client:
|
|
18
|
-
"""
|
|
19
|
-
Base Client class interface.
|
|
20
|
-
|
|
21
|
-
The client is an interface that handles the CRUD of an object during
|
|
22
|
-
a session. It manages the creation, reading, updating, deleting and
|
|
23
|
-
listing of objects and comes into two subclasses: Local and DHCore.
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
|
-
def __init__(self) -> None:
|
|
27
|
-
self._api_builder: ClientApiBuilder = None
|
|
28
|
-
self._key_builder: ClientKeyBuilder = None
|
|
29
|
-
self._params_builder: ClientParametersBuilder = None
|
|
30
|
-
|
|
31
|
-
##############################
|
|
32
|
-
# CRUD methods
|
|
33
|
-
##############################
|
|
34
|
-
|
|
35
|
-
@abstractmethod
|
|
36
|
-
def create_object(self, api: str, obj: Any, **kwargs) -> dict:
|
|
37
|
-
"""
|
|
38
|
-
Create object method.
|
|
39
|
-
|
|
40
|
-
Parameters
|
|
41
|
-
----------
|
|
42
|
-
api : str
|
|
43
|
-
The API endpoint to create the object.
|
|
44
|
-
obj : Any
|
|
45
|
-
The object to create.
|
|
46
|
-
**kwargs : dict
|
|
47
|
-
Additional keyword arguments.
|
|
48
|
-
|
|
49
|
-
Returns
|
|
50
|
-
-------
|
|
51
|
-
dict
|
|
52
|
-
The created object.
|
|
53
|
-
"""
|
|
54
|
-
|
|
55
|
-
@abstractmethod
|
|
56
|
-
def read_object(self, api: str, **kwargs) -> dict:
|
|
57
|
-
"""
|
|
58
|
-
Read object method.
|
|
59
|
-
|
|
60
|
-
Parameters
|
|
61
|
-
----------
|
|
62
|
-
api : str
|
|
63
|
-
The API endpoint to read the object.
|
|
64
|
-
**kwargs : dict
|
|
65
|
-
Additional keyword arguments.
|
|
66
|
-
|
|
67
|
-
Returns
|
|
68
|
-
-------
|
|
69
|
-
dict
|
|
70
|
-
The retrieved object.
|
|
71
|
-
"""
|
|
72
|
-
|
|
73
|
-
@abstractmethod
|
|
74
|
-
def update_object(self, api: str, obj: Any, **kwargs) -> dict:
|
|
75
|
-
"""
|
|
76
|
-
Update object method.
|
|
77
|
-
|
|
78
|
-
Parameters
|
|
79
|
-
----------
|
|
80
|
-
api : str
|
|
81
|
-
The API endpoint to update the object.
|
|
82
|
-
obj : Any
|
|
83
|
-
The object to update.
|
|
84
|
-
**kwargs : dict
|
|
85
|
-
Additional keyword arguments.
|
|
86
|
-
|
|
87
|
-
Returns
|
|
88
|
-
-------
|
|
89
|
-
dict
|
|
90
|
-
The updated object.
|
|
91
|
-
"""
|
|
92
|
-
|
|
93
|
-
@abstractmethod
|
|
94
|
-
def delete_object(self, api: str, **kwargs) -> dict:
|
|
95
|
-
"""
|
|
96
|
-
Delete object method.
|
|
97
|
-
|
|
98
|
-
Parameters
|
|
99
|
-
----------
|
|
100
|
-
api : str
|
|
101
|
-
The API endpoint to delete the object.
|
|
102
|
-
**kwargs : dict
|
|
103
|
-
Additional keyword arguments.
|
|
104
|
-
|
|
105
|
-
Returns
|
|
106
|
-
-------
|
|
107
|
-
dict
|
|
108
|
-
The deletion result.
|
|
109
|
-
"""
|
|
110
|
-
|
|
111
|
-
@abstractmethod
|
|
112
|
-
def list_objects(self, api: str, **kwargs) -> dict:
|
|
113
|
-
"""
|
|
114
|
-
List objects method.
|
|
115
|
-
|
|
116
|
-
Parameters
|
|
117
|
-
----------
|
|
118
|
-
api : str
|
|
119
|
-
The API endpoint to list objects.
|
|
120
|
-
**kwargs : dict
|
|
121
|
-
Additional keyword arguments.
|
|
122
|
-
|
|
123
|
-
Returns
|
|
124
|
-
-------
|
|
125
|
-
dict
|
|
126
|
-
The list of objects.
|
|
127
|
-
"""
|
|
128
|
-
|
|
129
|
-
@abstractmethod
|
|
130
|
-
def list_first_object(self, api: str, **kwargs) -> dict:
|
|
131
|
-
"""
|
|
132
|
-
Read first object method.
|
|
133
|
-
|
|
134
|
-
Parameters
|
|
135
|
-
----------
|
|
136
|
-
api : str
|
|
137
|
-
The API endpoint to read the first object.
|
|
138
|
-
**kwargs : dict
|
|
139
|
-
Additional keyword arguments.
|
|
140
|
-
|
|
141
|
-
Returns
|
|
142
|
-
-------
|
|
143
|
-
dict
|
|
144
|
-
The first object in the list.
|
|
145
|
-
"""
|
|
146
|
-
|
|
147
|
-
@abstractmethod
|
|
148
|
-
def search_objects(self, api: str, **kwargs) -> dict:
|
|
149
|
-
"""
|
|
150
|
-
Search objects method.
|
|
151
|
-
|
|
152
|
-
Parameters
|
|
153
|
-
----------
|
|
154
|
-
api : str
|
|
155
|
-
The API endpoint to search objects.
|
|
156
|
-
**kwargs : dict
|
|
157
|
-
Additional keyword arguments containing search parameters.
|
|
158
|
-
|
|
159
|
-
Returns
|
|
160
|
-
-------
|
|
161
|
-
dict
|
|
162
|
-
The search results.
|
|
163
|
-
"""
|
|
164
|
-
|
|
165
|
-
##############################
|
|
166
|
-
# Build methods
|
|
167
|
-
##############################
|
|
168
|
-
|
|
169
|
-
def build_api(self, category: str, operation: str, **kwargs) -> str:
|
|
170
|
-
"""
|
|
171
|
-
Build the API for the client.
|
|
172
|
-
|
|
173
|
-
Parameters
|
|
174
|
-
----------
|
|
175
|
-
category : str
|
|
176
|
-
API category.
|
|
177
|
-
operation : str
|
|
178
|
-
API operation.
|
|
179
|
-
**kwargs : dict
|
|
180
|
-
Additional parameters.
|
|
181
|
-
|
|
182
|
-
Returns
|
|
183
|
-
-------
|
|
184
|
-
str
|
|
185
|
-
API formatted.
|
|
186
|
-
"""
|
|
187
|
-
return self._api_builder.build_api(category, operation, **kwargs)
|
|
188
|
-
|
|
189
|
-
def build_key(self, category: str, *args, **kwargs) -> str:
|
|
190
|
-
"""
|
|
191
|
-
Build the key for the client.
|
|
192
|
-
|
|
193
|
-
Parameters
|
|
194
|
-
----------
|
|
195
|
-
category : str
|
|
196
|
-
Key category.
|
|
197
|
-
*args : tuple
|
|
198
|
-
Additional arguments.
|
|
199
|
-
**kwargs : dict
|
|
200
|
-
Additional parameters.
|
|
201
|
-
|
|
202
|
-
Returns
|
|
203
|
-
-------
|
|
204
|
-
str
|
|
205
|
-
Key formatted.
|
|
206
|
-
"""
|
|
207
|
-
return self._key_builder.build_key(category, *args, **kwargs)
|
|
208
|
-
|
|
209
|
-
def build_parameters(self, category: str, operation: str, **kwargs) -> dict:
|
|
210
|
-
"""
|
|
211
|
-
Build the parameters for the client call.
|
|
212
|
-
|
|
213
|
-
Parameters
|
|
214
|
-
----------
|
|
215
|
-
category : str
|
|
216
|
-
API category.
|
|
217
|
-
operation : str
|
|
218
|
-
API operation.
|
|
219
|
-
**kwargs : dict
|
|
220
|
-
Parameters to build.
|
|
221
|
-
|
|
222
|
-
Returns
|
|
223
|
-
-------
|
|
224
|
-
dict
|
|
225
|
-
Parameters formatted.
|
|
226
|
-
"""
|
|
227
|
-
return self._params_builder.build_parameters(category, operation, **kwargs)
|
|
228
|
-
|
|
229
|
-
##############################
|
|
230
|
-
# Interface methods
|
|
231
|
-
##############################
|
|
232
|
-
|
|
233
|
-
@staticmethod
|
|
234
|
-
@abstractmethod
|
|
235
|
-
def is_local() -> bool:
|
|
236
|
-
"""
|
|
237
|
-
Flag to check if client is local.
|
|
238
|
-
|
|
239
|
-
Returns
|
|
240
|
-
-------
|
|
241
|
-
bool
|
|
242
|
-
True if the client operates locally, False otherwise.
|
|
243
|
-
"""
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# SPDX-FileCopyrightText: © 2025 DSLab - Fondazione Bruno Kessler
|
|
2
|
-
#
|
|
3
|
-
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
|
|
5
|
-
from __future__ import annotations
|
|
6
|
-
|
|
7
|
-
from abc import abstractmethod
|
|
8
|
-
from typing import Any
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ClientParametersBuilder:
|
|
12
|
-
"""
|
|
13
|
-
This class is used to build the parameters for the client call.
|
|
14
|
-
Depending on the client, the parameters are built differently.
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
@abstractmethod
|
|
18
|
-
def build_parameters(self, category: str, operation: str, **kwargs) -> dict:
|
|
19
|
-
"""
|
|
20
|
-
Build the parameters for the client call.
|
|
21
|
-
|
|
22
|
-
Parameters
|
|
23
|
-
----------
|
|
24
|
-
category : str
|
|
25
|
-
The API category.
|
|
26
|
-
operation : str
|
|
27
|
-
The API operation.
|
|
28
|
-
**kwargs : dict
|
|
29
|
-
Additional keyword arguments to build parameters from.
|
|
30
|
-
|
|
31
|
-
Returns
|
|
32
|
-
-------
|
|
33
|
-
dict
|
|
34
|
-
The formatted parameters for the client call.
|
|
35
|
-
"""
|
|
36
|
-
|
|
37
|
-
@staticmethod
|
|
38
|
-
def _ensure_params(**kwargs) -> dict:
|
|
39
|
-
"""
|
|
40
|
-
Initialize parameter dictionary with query parameters structure.
|
|
41
|
-
|
|
42
|
-
Ensures parameter dictionary has 'params' key for HTTP query parameters,
|
|
43
|
-
guaranteeing consistent structure for all parameter building methods.
|
|
44
|
-
|
|
45
|
-
Parameters
|
|
46
|
-
----------
|
|
47
|
-
**kwargs : dict
|
|
48
|
-
Keyword arguments to format. May be empty or contain various
|
|
49
|
-
parameters for API operations.
|
|
50
|
-
|
|
51
|
-
Returns
|
|
52
|
-
-------
|
|
53
|
-
dict
|
|
54
|
-
Parameters dictionary with guaranteed 'params' key containing
|
|
55
|
-
empty dict if not already present.
|
|
56
|
-
"""
|
|
57
|
-
if "params" not in kwargs:
|
|
58
|
-
kwargs["params"] = {}
|
|
59
|
-
return kwargs
|
|
60
|
-
|
|
61
|
-
@staticmethod
|
|
62
|
-
def _add_param(key: str, value: Any | None, **kwargs) -> dict:
|
|
63
|
-
"""
|
|
64
|
-
Add a single query parameter to kwargs.
|
|
65
|
-
|
|
66
|
-
Parameters
|
|
67
|
-
----------
|
|
68
|
-
key : str
|
|
69
|
-
Parameter key.
|
|
70
|
-
value : Any
|
|
71
|
-
Parameter value.
|
|
72
|
-
**kwargs : dict
|
|
73
|
-
Keyword arguments to format. May be empty or contain various
|
|
74
|
-
parameters for API operations.
|
|
75
|
-
|
|
76
|
-
Returns
|
|
77
|
-
-------
|
|
78
|
-
dict
|
|
79
|
-
Parameters dictionary with added key-value pair in 'params'.
|
|
80
|
-
"""
|
|
81
|
-
kwargs["params"][key] = value
|
|
82
|
-
return kwargs
|
digitalhub/stores/client/api.py
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# SPDX-FileCopyrightText: © 2025 DSLab - Fondazione Bruno Kessler
|
|
2
|
-
#
|
|
3
|
-
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
|
|
5
|
-
from __future__ import annotations
|
|
6
|
-
|
|
7
|
-
import typing
|
|
8
|
-
|
|
9
|
-
from digitalhub.stores.client.builder import client_builder
|
|
10
|
-
|
|
11
|
-
if typing.TYPE_CHECKING:
|
|
12
|
-
from digitalhub.stores.client.dhcore.client import ClientDHCore
|
|
13
|
-
from digitalhub.stores.client.local.client import ClientLocal
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def get_client(local: bool = False) -> ClientLocal | ClientDHCore:
|
|
17
|
-
"""
|
|
18
|
-
Wrapper around ClientBuilder.build.
|
|
19
|
-
|
|
20
|
-
Parameters
|
|
21
|
-
----------
|
|
22
|
-
local : bool, default False
|
|
23
|
-
Whether to create a local client or not. If True, creates a
|
|
24
|
-
ClientLocal instance that operates in-memory. If False, creates
|
|
25
|
-
a ClientDHCore instance that communicates with a remote backend.
|
|
26
|
-
|
|
27
|
-
Returns
|
|
28
|
-
-------
|
|
29
|
-
ClientLocal | ClientDHCore
|
|
30
|
-
The client instance.
|
|
31
|
-
"""
|
|
32
|
-
return client_builder.build(local)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# SPDX-FileCopyrightText: © 2025 DSLab - Fondazione Bruno Kessler
|
|
2
|
-
#
|
|
3
|
-
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
|
|
5
|
-
from __future__ import annotations
|
|
6
|
-
|
|
7
|
-
from enum import Enum
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class AuthType(Enum):
|
|
11
|
-
"""
|
|
12
|
-
Authentication types.
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
BASIC = "basic"
|
|
16
|
-
OAUTH2 = "oauth2"
|
|
17
|
-
EXCHANGE = "exchange"
|
|
18
|
-
ACCESS_TOKEN = "access_token_only"
|