aas-http-client 1.3.3__tar.gz → 1.3.4__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.
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/PKG-INFO +3 -3
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/client/implementations/experimental_implementation.py +0 -9
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/client/implementations/shell_implementation.py +0 -12
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/client/implementations/shell_registry_implementation.py +0 -8
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/client/implementations/sm_implementation.py +0 -12
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/client/implementations/sm_registry_implementation.py +0 -3
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/utilities/model_builder.py +76 -5
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client.egg-info/PKG-INFO +3 -3
- aas_http_client-1.3.4/aas_http_client.egg-info/requires.txt +4 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/pyproject.toml +3 -3
- aas_http_client-1.3.3/aas_http_client.egg-info/requires.txt +0 -4
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/LICENSE +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/README.md +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/__init__.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/Configuration/config_classes.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/client/aas_client.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/client/implementations/__init__.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/client/implementations/authentication.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/wrapper/attachment.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/wrapper/pagination.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/wrapper/sdk_wrapper.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/demo/demo_process.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/demo/logging_handler.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/utilities/__init__.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/utilities/constants.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/utilities/encoder.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/utilities/http_helper.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/utilities/sdk_tools.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/utilities/version_check.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client.egg-info/SOURCES.txt +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client.egg-info/dependency_links.txt +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client.egg-info/top_level.txt +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/setup.cfg +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/tests/test_client.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/tests/test_client_reg.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/tests/test_sdk_tools.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/tests/test_utils.py +0 -0
- {aas_http_client-1.3.3 → aas_http_client-1.3.4}/tests/test_wrapper.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aas-http-client
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.4
|
|
4
4
|
Summary: Flexible Python HTTP client for communication with various types of AAS servers.
|
|
5
5
|
Author-email: Daniel Klein <daniel.klein@em.ag>
|
|
6
6
|
License: MIT License
|
|
@@ -29,9 +29,9 @@ Project-URL: Homepage, https://github.com/fluid40/aas-http-client
|
|
|
29
29
|
Requires-Python: >=3.13
|
|
30
30
|
Description-Content-Type: text/markdown
|
|
31
31
|
License-File: LICENSE
|
|
32
|
-
Requires-Dist: pydantic>=2.
|
|
32
|
+
Requires-Dist: pydantic>=2.14.3
|
|
33
33
|
Requires-Dist: requests>=2.34.2
|
|
34
|
-
Requires-Dist: basyx-python-sdk==2.
|
|
34
|
+
Requires-Dist: basyx-python-sdk==2.2.0
|
|
35
35
|
Requires-Dist: puremagic==2.2.0
|
|
36
36
|
Dynamic: license-file
|
|
37
37
|
|
|
@@ -57,7 +57,6 @@ class ExperimentalImplementation(BaseModel):
|
|
|
57
57
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
58
58
|
_logger.debug("Concept descriptions not found.")
|
|
59
59
|
|
|
60
|
-
_logger.debug(response.text)
|
|
61
60
|
return None
|
|
62
61
|
|
|
63
62
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -91,7 +90,6 @@ class ExperimentalImplementation(BaseModel):
|
|
|
91
90
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
92
91
|
_logger.debug(f"Concept description with id '{concept_description_identifier}' not found.")
|
|
93
92
|
|
|
94
|
-
_logger.debug(response.text)
|
|
95
93
|
return None
|
|
96
94
|
|
|
97
95
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -125,7 +123,6 @@ class ExperimentalImplementation(BaseModel):
|
|
|
125
123
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
126
124
|
_logger.debug("Concept descriptions endpoint not found.")
|
|
127
125
|
|
|
128
|
-
_logger.debug(response.text)
|
|
129
126
|
return False
|
|
130
127
|
|
|
131
128
|
if response.status_code != STATUS_CODE_201:
|
|
@@ -159,7 +156,6 @@ class ExperimentalImplementation(BaseModel):
|
|
|
159
156
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
160
157
|
_logger.debug(f"Concept description with id '{concept_description_identifier}' not found.")
|
|
161
158
|
|
|
162
|
-
_logger.debug(response.text)
|
|
163
159
|
return False
|
|
164
160
|
|
|
165
161
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -201,7 +197,6 @@ class ExperimentalImplementation(BaseModel):
|
|
|
201
197
|
f"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' or file content not found."
|
|
202
198
|
)
|
|
203
199
|
|
|
204
|
-
_logger.debug(response.text)
|
|
205
200
|
return None
|
|
206
201
|
|
|
207
202
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -249,7 +244,6 @@ class ExperimentalImplementation(BaseModel):
|
|
|
249
244
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
250
245
|
_logger.debug(f"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
|
|
251
246
|
|
|
252
|
-
_logger.debug(response.text)
|
|
253
247
|
return False
|
|
254
248
|
|
|
255
249
|
# original dotnet server delivers 200 instead of 204
|
|
@@ -297,7 +291,6 @@ class ExperimentalImplementation(BaseModel):
|
|
|
297
291
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
298
292
|
_logger.debug(f"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
|
|
299
293
|
|
|
300
|
-
_logger.debug(response.text)
|
|
301
294
|
return False
|
|
302
295
|
|
|
303
296
|
# original dotnet server delivers 200 instead of 204
|
|
@@ -346,7 +339,6 @@ class ExperimentalImplementation(BaseModel):
|
|
|
346
339
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
347
340
|
_logger.debug(f"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
|
|
348
341
|
|
|
349
|
-
_logger.debug(response.text)
|
|
350
342
|
return False
|
|
351
343
|
|
|
352
344
|
# original dotnet server delivers 200 instead of 204
|
|
@@ -394,7 +386,6 @@ class ExperimentalImplementation(BaseModel):
|
|
|
394
386
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
395
387
|
_logger.debug(f"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
|
|
396
388
|
|
|
397
|
-
_logger.debug(response.text)
|
|
398
389
|
return False
|
|
399
390
|
|
|
400
391
|
# original dotnet server delivers 200 instead of 204
|
|
@@ -64,7 +64,6 @@ class ShellRepoImplementation(BaseModel):
|
|
|
64
64
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
65
65
|
_logger.debug(f"Asset Administration Shell with id '{aas_identifier}' not found.")
|
|
66
66
|
|
|
67
|
-
_logger.debug(response.text)
|
|
68
67
|
return None
|
|
69
68
|
|
|
70
69
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -103,7 +102,6 @@ class ShellRepoImplementation(BaseModel):
|
|
|
103
102
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
104
103
|
_logger.debug(f"Asset Administration Shell with id '{aas_identifier}' not found.")
|
|
105
104
|
|
|
106
|
-
_logger.debug(response.text)
|
|
107
105
|
return False
|
|
108
106
|
|
|
109
107
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -140,7 +138,6 @@ class ShellRepoImplementation(BaseModel):
|
|
|
140
138
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
141
139
|
_logger.debug(f"Asset Administration Shell with id '{aas_identifier}' not found.")
|
|
142
140
|
|
|
143
|
-
_logger.debug(response.text)
|
|
144
141
|
return False
|
|
145
142
|
|
|
146
143
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -177,7 +174,6 @@ class ShellRepoImplementation(BaseModel):
|
|
|
177
174
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
178
175
|
_logger.debug(f"Asset Administration Shell with id '{aas_identifier}' or thumbnail file not found.")
|
|
179
176
|
|
|
180
|
-
_logger.debug(response.text)
|
|
181
177
|
return None
|
|
182
178
|
|
|
183
179
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -246,7 +242,6 @@ class ShellRepoImplementation(BaseModel):
|
|
|
246
242
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
247
243
|
_logger.debug(f"Asset Administration Shell with id '{aas_identifier}' not found.")
|
|
248
244
|
|
|
249
|
-
_logger.debug(response.text)
|
|
250
245
|
return False
|
|
251
246
|
|
|
252
247
|
# original dotnet server delivers 200 instead of 204
|
|
@@ -284,7 +279,6 @@ class ShellRepoImplementation(BaseModel):
|
|
|
284
279
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
285
280
|
_logger.debug(f"Asset Administration Shell with id '{aas_identifier}' or thumbnail file not found.")
|
|
286
281
|
|
|
287
|
-
_logger.debug(response.text)
|
|
288
282
|
return False
|
|
289
283
|
|
|
290
284
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -400,7 +394,6 @@ class ShellRepoImplementation(BaseModel):
|
|
|
400
394
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
401
395
|
_logger.debug(f"Asset Administration Shell with id '{aas_identifier}' not found.")
|
|
402
396
|
|
|
403
|
-
_logger.debug(response.text)
|
|
404
397
|
return None
|
|
405
398
|
|
|
406
399
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -439,7 +432,6 @@ class ShellRepoImplementation(BaseModel):
|
|
|
439
432
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
440
433
|
_logger.debug(f"Asset Administration Shell with id '{aas_identifier}' not found.")
|
|
441
434
|
|
|
442
|
-
_logger.debug(response.text)
|
|
443
435
|
return None
|
|
444
436
|
|
|
445
437
|
if response.status_code != STATUS_CODE_201:
|
|
@@ -479,7 +471,6 @@ class ShellRepoImplementation(BaseModel):
|
|
|
479
471
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
480
472
|
_logger.debug(f"Asset Administration Shell with id '{aas_identifier}' or submodel with id '{submodel_identifier}' not found.")
|
|
481
473
|
|
|
482
|
-
_logger.debug(response.text)
|
|
483
474
|
return False
|
|
484
475
|
|
|
485
476
|
if response.status_code not in (STATUS_CODE_204, STATUS_CODE_200):
|
|
@@ -521,7 +512,6 @@ class ShellRepoImplementation(BaseModel):
|
|
|
521
512
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
522
513
|
_logger.debug(f"Asset Administration Shell with id '{aas_identifier}' or submodel with id '{submodel_identifier}' not found.")
|
|
523
514
|
|
|
524
|
-
_logger.debug(response.text)
|
|
525
515
|
return False
|
|
526
516
|
|
|
527
517
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -558,7 +548,6 @@ class ShellRepoImplementation(BaseModel):
|
|
|
558
548
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
559
549
|
_logger.debug(f"Asset Administration Shell with id '{aas_identifier}' not found.")
|
|
560
550
|
|
|
561
|
-
_logger.debug(response.text)
|
|
562
551
|
return None
|
|
563
552
|
|
|
564
553
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -598,7 +587,6 @@ class ShellRepoImplementation(BaseModel):
|
|
|
598
587
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
599
588
|
_logger.debug(f"Asset Administration Shell with id '{aas_identifier}' or submodel with id '{submodel_identifier}' not found.")
|
|
600
589
|
|
|
601
|
-
_logger.debug(response.text)
|
|
602
590
|
return None
|
|
603
591
|
|
|
604
592
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -62,7 +62,6 @@ class ShellRegistryImplementation(BaseModel):
|
|
|
62
62
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
63
63
|
_logger.debug(f"Asset Administration Shell Descriptor with id '{aas_identifier}' not found.")
|
|
64
64
|
|
|
65
|
-
_logger.debug(response.text)
|
|
66
65
|
return None
|
|
67
66
|
|
|
68
67
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -101,7 +100,6 @@ class ShellRegistryImplementation(BaseModel):
|
|
|
101
100
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
102
101
|
_logger.debug(f"Asset Administration Shell Descriptor with id '{aas_identifier}' not found.")
|
|
103
102
|
|
|
104
|
-
_logger.debug(response.text)
|
|
105
103
|
return False
|
|
106
104
|
|
|
107
105
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -138,7 +136,6 @@ class ShellRegistryImplementation(BaseModel):
|
|
|
138
136
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
139
137
|
_logger.debug(f"Asset Administration Shell Descriptor with id '{aas_identifier}' not found.")
|
|
140
138
|
|
|
141
|
-
_logger.debug(response.text)
|
|
142
139
|
return False
|
|
143
140
|
|
|
144
141
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -177,7 +174,6 @@ class ShellRegistryImplementation(BaseModel):
|
|
|
177
174
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
178
175
|
_logger.debug(f"Submodel Descriptor with id '{submodel_identifier}' or submodel with id '{submodel_identifier}' not found.")
|
|
179
176
|
|
|
180
|
-
_logger.debug(response.text)
|
|
181
177
|
return None
|
|
182
178
|
|
|
183
179
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -218,7 +214,6 @@ class ShellRegistryImplementation(BaseModel):
|
|
|
218
214
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
219
215
|
_logger.debug(f"Submodel Descriptor with id '{submodel_identifier}' or submodel with id '{submodel_identifier}' not found.")
|
|
220
216
|
|
|
221
|
-
_logger.debug(response.text)
|
|
222
217
|
return False
|
|
223
218
|
|
|
224
219
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -257,7 +252,6 @@ class ShellRegistryImplementation(BaseModel):
|
|
|
257
252
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
258
253
|
_logger.debug(f"Submodel Descriptor with id '{submodel_identifier}' or submodel with id '{submodel_identifier}' not found.")
|
|
259
254
|
|
|
260
|
-
_logger.debug(response.text)
|
|
261
255
|
return False
|
|
262
256
|
|
|
263
257
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -385,7 +379,6 @@ class ShellRegistryImplementation(BaseModel):
|
|
|
385
379
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
386
380
|
_logger.debug(f"Shell Descriptor with id '{aas_identifier}' not found.")
|
|
387
381
|
|
|
388
|
-
_logger.debug(response.text)
|
|
389
382
|
return None
|
|
390
383
|
|
|
391
384
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -424,7 +417,6 @@ class ShellRegistryImplementation(BaseModel):
|
|
|
424
417
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
425
418
|
_logger.debug(f"Shell Descriptor with id '{aas_identifier}' not found.")
|
|
426
419
|
|
|
427
|
-
_logger.debug(response.text)
|
|
428
420
|
return None
|
|
429
421
|
|
|
430
422
|
if response.status_code != STATUS_CODE_201:
|
|
@@ -70,7 +70,6 @@ class SubmodelRepoImplementation(BaseModel):
|
|
|
70
70
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
71
71
|
_logger.debug(f"Submodel with id '{submodel_identifier}' not found.")
|
|
72
72
|
|
|
73
|
-
_logger.debug(response.text)
|
|
74
73
|
return None
|
|
75
74
|
|
|
76
75
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -109,7 +108,6 @@ class SubmodelRepoImplementation(BaseModel):
|
|
|
109
108
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
110
109
|
_logger.debug(f"Submodel with id '{submodel_identifier}' not found.")
|
|
111
110
|
|
|
112
|
-
_logger.debug(response.text)
|
|
113
111
|
return False
|
|
114
112
|
|
|
115
113
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -146,7 +144,6 @@ class SubmodelRepoImplementation(BaseModel):
|
|
|
146
144
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
147
145
|
_logger.debug(f"Submodel with id '{submodel_identifier}' not found.")
|
|
148
146
|
|
|
149
|
-
_logger.debug(response.text)
|
|
150
147
|
return False
|
|
151
148
|
|
|
152
149
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -194,7 +191,6 @@ class SubmodelRepoImplementation(BaseModel):
|
|
|
194
191
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
195
192
|
_logger.debug(f"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
|
|
196
193
|
|
|
197
|
-
_logger.debug(response.text)
|
|
198
194
|
return None
|
|
199
195
|
|
|
200
196
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -239,7 +235,6 @@ class SubmodelRepoImplementation(BaseModel):
|
|
|
239
235
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
240
236
|
_logger.debug(f"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
|
|
241
237
|
|
|
242
|
-
_logger.debug(response.text)
|
|
243
238
|
return False
|
|
244
239
|
|
|
245
240
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -288,7 +283,6 @@ class SubmodelRepoImplementation(BaseModel):
|
|
|
288
283
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
289
284
|
_logger.debug(f"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
|
|
290
285
|
|
|
291
|
-
_logger.debug(response.text)
|
|
292
286
|
return None
|
|
293
287
|
|
|
294
288
|
if response.status_code != STATUS_CODE_201:
|
|
@@ -326,7 +320,6 @@ class SubmodelRepoImplementation(BaseModel):
|
|
|
326
320
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
327
321
|
_logger.debug(f"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
|
|
328
322
|
|
|
329
|
-
_logger.debug(response.text)
|
|
330
323
|
return False
|
|
331
324
|
|
|
332
325
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -582,7 +575,6 @@ class SubmodelRepoImplementation(BaseModel):
|
|
|
582
575
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
583
576
|
_logger.debug(f"Submodel with id '{submodel_identifier}' or Submodel element with IDShort path '{id_short_path}' not found.")
|
|
584
577
|
|
|
585
|
-
_logger.debug(response.text)
|
|
586
578
|
return False
|
|
587
579
|
|
|
588
580
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -627,7 +619,6 @@ class SubmodelRepoImplementation(BaseModel):
|
|
|
627
619
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
628
620
|
_logger.debug(f"Submodel with id '{submodel_identifier}' not found.")
|
|
629
621
|
|
|
630
|
-
_logger.debug(response.text)
|
|
631
622
|
return None
|
|
632
623
|
|
|
633
624
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -671,7 +662,6 @@ class SubmodelRepoImplementation(BaseModel):
|
|
|
671
662
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
672
663
|
_logger.debug(f"Submodel with id '{submodel_identifier}' not found.")
|
|
673
664
|
|
|
674
|
-
_logger.debug(response.text)
|
|
675
665
|
return False
|
|
676
666
|
|
|
677
667
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -713,7 +703,6 @@ class SubmodelRepoImplementation(BaseModel):
|
|
|
713
703
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
714
704
|
_logger.debug(f"Submodel with id '{submodel_identifier}' not found.")
|
|
715
705
|
|
|
716
|
-
_logger.debug(response.text)
|
|
717
706
|
return None
|
|
718
707
|
|
|
719
708
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -753,7 +742,6 @@ class SubmodelRepoImplementation(BaseModel):
|
|
|
753
742
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
754
743
|
_logger.debug(f"Submodel with id '{submodel_identifier}' not found.")
|
|
755
744
|
|
|
756
|
-
_logger.debug(response.text)
|
|
757
745
|
return False
|
|
758
746
|
|
|
759
747
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -63,7 +63,6 @@ class SubmodelRegistryImplementation(BaseModel):
|
|
|
63
63
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
64
64
|
_logger.debug(f"Submodel Descriptor with id '{submodel_identifier}' not found.")
|
|
65
65
|
|
|
66
|
-
_logger.debug(response.text)
|
|
67
66
|
return None
|
|
68
67
|
|
|
69
68
|
if response.status_code != STATUS_CODE_200:
|
|
@@ -102,7 +101,6 @@ class SubmodelRegistryImplementation(BaseModel):
|
|
|
102
101
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
103
102
|
_logger.debug(f"Submodel Descriptor with id '{submodel_identifier}' not found.")
|
|
104
103
|
|
|
105
|
-
_logger.debug(response.text)
|
|
106
104
|
return False
|
|
107
105
|
|
|
108
106
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -139,7 +137,6 @@ class SubmodelRegistryImplementation(BaseModel):
|
|
|
139
137
|
elif self._client.get_log_intensity() == LogIntensity.STANDARD:
|
|
140
138
|
_logger.debug(f"Submodel Descriptor with id '{submodel_identifier}' not found.")
|
|
141
139
|
|
|
142
|
-
_logger.debug(response.text)
|
|
143
140
|
return False
|
|
144
141
|
|
|
145
142
|
if response.status_code != STATUS_CODE_204:
|
|
@@ -123,16 +123,19 @@ def create_base_aas(
|
|
|
123
123
|
description: str = "",
|
|
124
124
|
asset_kind: model.AssetKind = model.AssetKind.INSTANCE,
|
|
125
125
|
) -> model.AssetAdministrationShell:
|
|
126
|
-
"""Create a basic AAS.
|
|
126
|
+
"""Create a basic AAS and add base asset information.
|
|
127
127
|
|
|
128
128
|
:param identifier: identifier of the AAS
|
|
129
129
|
:param id_short: ID short of the AAS
|
|
130
|
-
:param global_asset_identifier: identifier of the global Asset
|
|
130
|
+
:param global_asset_identifier: identifier of the global Asset. if not provided, defaults to the AAS identifier
|
|
131
131
|
:param display_name: display name of the AAS, defaults to ""
|
|
132
132
|
:param description: description of the AAS, defaults to ""
|
|
133
133
|
:param asset_kind: kind of the Asset, defaults to AssetKind.INSTANCE
|
|
134
134
|
:return: AssetAdministrationShell instance
|
|
135
135
|
"""
|
|
136
|
+
if not identifier or not id_short:
|
|
137
|
+
raise ValueError("Both 'identifier' and 'id_short' must be provided.")
|
|
138
|
+
|
|
136
139
|
if not global_asset_identifier:
|
|
137
140
|
global_asset_identifier = identifier
|
|
138
141
|
|
|
@@ -152,14 +155,82 @@ def create_base_aas(
|
|
|
152
155
|
return aas
|
|
153
156
|
|
|
154
157
|
|
|
155
|
-
def
|
|
158
|
+
def create_base_aas_with_asset_information(
|
|
159
|
+
identifier: str,
|
|
160
|
+
id_short: str,
|
|
161
|
+
asset_information: model.AssetInformation,
|
|
162
|
+
display_name: str = "",
|
|
163
|
+
description: str = "",
|
|
164
|
+
) -> model.AssetAdministrationShell:
|
|
165
|
+
"""Create a basic AAS.
|
|
166
|
+
|
|
167
|
+
:param identifier: identifier of the AAS
|
|
168
|
+
:param id_short: ID short of the AAS
|
|
169
|
+
:param asset_information: asset information of the AAS
|
|
170
|
+
:param display_name: display name of the AAS, defaults to ""
|
|
171
|
+
:param description: description of the AAS, defaults to ""
|
|
172
|
+
:return: AssetAdministrationShell instance
|
|
173
|
+
"""
|
|
174
|
+
if not identifier or not id_short or not asset_information:
|
|
175
|
+
raise ValueError("Both 'identifier', 'id_short', and 'asset_information' must be provided.")
|
|
176
|
+
|
|
177
|
+
aas = model.AssetAdministrationShell(id_=identifier, asset_information=asset_information)
|
|
178
|
+
aas.id_short = id_short
|
|
179
|
+
|
|
180
|
+
if description:
|
|
181
|
+
description_text = {"en": f"{description}"}
|
|
182
|
+
aas.description = model.MultiLanguageTextType(description_text)
|
|
183
|
+
|
|
184
|
+
if display_name:
|
|
185
|
+
display_name_text = {"en": f"{display_name}"}
|
|
186
|
+
aas.display_name = model.MultiLanguageNameType(display_name_text)
|
|
187
|
+
|
|
188
|
+
return aas
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def create_specific_asset_id(name: str, value: str, external_subject_reference_value: str | None = None) -> model.SpecificAssetId:
|
|
192
|
+
"""Create a new SpecificAssetId instance.
|
|
193
|
+
|
|
194
|
+
:param name: name of the SpecificAssetId
|
|
195
|
+
:param value: value of the SpecificAssetId
|
|
196
|
+
:param external_subject_reference_value: optional external subject reference value
|
|
197
|
+
:return: A new SpecificAssetId object.
|
|
198
|
+
"""
|
|
199
|
+
if not name or not value:
|
|
200
|
+
raise ValueError("Both 'name' and 'value' must be provided.")
|
|
201
|
+
|
|
202
|
+
external_subject_reference = None
|
|
203
|
+
|
|
204
|
+
if external_subject_reference_value:
|
|
205
|
+
external_subject_reference = model.ExternalReference(
|
|
206
|
+
(
|
|
207
|
+
model.Key(
|
|
208
|
+
type_=model.KeyTypes.GLOBAL_REFERENCE,
|
|
209
|
+
value=external_subject_reference_value,
|
|
210
|
+
),
|
|
211
|
+
)
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
return model.SpecificAssetId(name=name, value=value, external_subject_id=external_subject_reference)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
def create_base_asset_information(
|
|
218
|
+
global_asset_id: str, asset_kind: model.AssetKind = model.AssetKind.INSTANCE, specific_asset_id: list[model.SpecificAssetId] | None = None
|
|
219
|
+
) -> model.AssetInformation:
|
|
156
220
|
"""Return a basic AssetInformation instance.
|
|
157
221
|
|
|
158
|
-
:param
|
|
222
|
+
:param global_asset_id: global asset ID of the AssetInformation
|
|
159
223
|
:param asset_kind: kind of the Asset, defaults to AssetKind.INSTANCE
|
|
224
|
+
:param specific_asset_id: list of specific asset IDs, defaults to None
|
|
160
225
|
:return: AssetInformation instance
|
|
161
226
|
"""
|
|
162
|
-
|
|
227
|
+
if not global_asset_id:
|
|
228
|
+
raise ValueError("The 'global_asset_id' must be provided.")
|
|
229
|
+
|
|
230
|
+
if specific_asset_id is None:
|
|
231
|
+
specific_asset_id = []
|
|
232
|
+
|
|
233
|
+
return model.AssetInformation(asset_kind=asset_kind, global_asset_id=global_asset_id, specific_asset_id=specific_asset_id)
|
|
163
234
|
|
|
164
235
|
|
|
165
236
|
def create_reference(id: str) -> model.ModelReference:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aas-http-client
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.4
|
|
4
4
|
Summary: Flexible Python HTTP client for communication with various types of AAS servers.
|
|
5
5
|
Author-email: Daniel Klein <daniel.klein@em.ag>
|
|
6
6
|
License: MIT License
|
|
@@ -29,9 +29,9 @@ Project-URL: Homepage, https://github.com/fluid40/aas-http-client
|
|
|
29
29
|
Requires-Python: >=3.13
|
|
30
30
|
Description-Content-Type: text/markdown
|
|
31
31
|
License-File: LICENSE
|
|
32
|
-
Requires-Dist: pydantic>=2.
|
|
32
|
+
Requires-Dist: pydantic>=2.14.3
|
|
33
33
|
Requires-Dist: requests>=2.34.2
|
|
34
|
-
Requires-Dist: basyx-python-sdk==2.
|
|
34
|
+
Requires-Dist: basyx-python-sdk==2.2.0
|
|
35
35
|
Requires-Dist: puremagic==2.2.0
|
|
36
36
|
Dynamic: license-file
|
|
37
37
|
|
|
@@ -4,16 +4,16 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "aas-http-client"
|
|
7
|
-
version = "1.3.
|
|
7
|
+
version = "1.3.4"
|
|
8
8
|
description = "Flexible Python HTTP client for communication with various types of AAS servers."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { file = "LICENSE" }
|
|
11
11
|
authors = [{ name = "Daniel Klein", email = "daniel.klein@em.ag" }]
|
|
12
12
|
requires-python = ">=3.13"
|
|
13
13
|
dependencies = [
|
|
14
|
-
"pydantic>=2.
|
|
14
|
+
"pydantic>=2.14.3",
|
|
15
15
|
"requests>=2.34.2",
|
|
16
|
-
"basyx-python-sdk==2.
|
|
16
|
+
"basyx-python-sdk==2.2.0",
|
|
17
17
|
"puremagic==2.2.0",
|
|
18
18
|
]
|
|
19
19
|
[project.urls]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/client/aas_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/wrapper/attachment.py
RENAMED
|
File without changes
|
{aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/wrapper/pagination.py
RENAMED
|
File without changes
|
{aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client/classes/wrapper/sdk_wrapper.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aas_http_client-1.3.3 → aas_http_client-1.3.4}/aas_http_client.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|