aas-http-client 0.4.6__tar.gz → 0.4.7__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.

Potentially problematic release.


This version of aas-http-client might be problematic. Click here for more details.

Files changed (23) hide show
  1. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/PKG-INFO +1 -1
  2. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client/utilities/model_builder.py +9 -3
  3. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client.egg-info/PKG-INFO +1 -1
  4. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/pyproject.toml +1 -1
  5. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/LICENSE +0 -0
  6. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/README.md +0 -0
  7. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client/__init__.py +0 -0
  8. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client/classes/auth_classes.py +0 -0
  9. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client/client.py +0 -0
  10. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client/core/encoder.py +0 -0
  11. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client/core/version_check.py +0 -0
  12. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client/demo/demo_process.py +0 -0
  13. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client/demo/logging_handler.py +0 -0
  14. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client/utilities/__init__.py +0 -0
  15. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client/utilities/sdk_tools.py +0 -0
  16. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client/wrapper/sdk_wrapper.py +0 -0
  17. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client.egg-info/SOURCES.txt +0 -0
  18. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client.egg-info/dependency_links.txt +0 -0
  19. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client.egg-info/requires.txt +0 -0
  20. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/aas_http_client.egg-info/top_level.txt +0 -0
  21. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/setup.cfg +0 -0
  22. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/tests/test_client.py +0 -0
  23. {aas_http_client-0.4.6 → aas_http_client-0.4.7}/tests/test_wrapper.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aas-http-client
3
- Version: 0.4.6
3
+ Version: 0.4.7
4
4
  Summary: Generic python HTTP client for communication with various types of AAS servers
5
5
  Author-email: Daniel Klein <daniel.klein@em.ag>
6
6
  License: # :em engineering methods AG Software License
@@ -39,9 +39,15 @@ def create_base_submodel_element_property(
39
39
  return sme
40
40
 
41
41
 
42
- def clone_submodel_element_property(property: model.Property) -> model.Property:
43
- """Clone a SubmodelElement of type Property."""
44
- sme = model.Property(id_short=property.id_short, value_type=property.value_type, value=property.value)
42
+ def clone_submodel_element_property(property: model.Property, new_id_short: str) -> model.Property:
43
+ """Clones a given property.
44
+
45
+ :param property: Given property to clone
46
+ :param new_id_short: New ID short for the cloned property.
47
+ :return: Cloned property
48
+ """
49
+ sme = model.Property(id_short=new_id_short, value_type=property.value_type, value=property.value)
50
+
45
51
  sme.description = property.description
46
52
  sme.display_name = property.display_name
47
53
  sme.value = property.value
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aas-http-client
3
- Version: 0.4.6
3
+ Version: 0.4.7
4
4
  Summary: Generic python HTTP client for communication with various types of AAS servers
5
5
  Author-email: Daniel Klein <daniel.klein@em.ag>
6
6
  License: # :em engineering methods AG Software License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "aas-http-client"
7
- version = "0.4.6"
7
+ version = "0.4.7"
8
8
  description = "Generic python HTTP client for communication with various types of AAS servers"
9
9
  readme = "README.md"
10
10
  license = { file = "LICENSE" }
File without changes