pydiagral 1.3.0__tar.gz → 1.3.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pydiagral-1.3.0 → pydiagral-1.3.1}/CHANGELOG.md +7 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/PKG-INFO +1 -1
- {pydiagral-1.3.0 → pydiagral-1.3.1}/docs/models.md +4 -1
- {pydiagral-1.3.0 → pydiagral-1.3.1}/src/pydiagral/api.py +0 -10
- {pydiagral-1.3.0 → pydiagral-1.3.1}/src/pydiagral/models.py +2 -2
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.devcontainer/Dockerfile.dev +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.devcontainer/devcontainer.json +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.github/FUNDING.yml +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.github/dependabot.yml +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.github/labels.yml +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.github/workflows/labeler.yml +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.github/workflows/lint.yaml +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.github/workflows/lock.yml +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.github/workflows/pytest.yaml +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.github/workflows/release_and_doc.yaml +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.github/workflows/semantic-prs.yml +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.gitignore +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.releaserc +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.vscode/extensions.json +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/.vscode/settings.json +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/LICENSE +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/README.md +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/docs/api.md +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/docs/exceptions.md +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/docs/how-to-find-diagral-serial.png +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/docs/index.md +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/docs/pydiagral-Logo.png +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/example_code.py +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/mkdocs.yml +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/pyproject.toml +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/src/pydiagral/__init__.py +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/src/pydiagral/constants.py +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/src/pydiagral/exceptions.py +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/src/pydiagral/utils.py +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/test.txt +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/tests/__init__.py +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/tests/data/configuration_sample.json +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/tests/data/system_details_sample.json +0 -0
- {pydiagral-1.3.0 → pydiagral-1.3.1}/tests/test_pydiagral_api.py +0 -0
@@ -1,3 +1,10 @@
|
|
1
|
+
## [1.3.1](https://github.com/mguyard/pydiagral/compare/v1.3.0...v1.3.1) (2025-02-22)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* test3 ([b245709](https://github.com/mguyard/pydiagral/commit/b245709dc3d33c9ddfa29cec83886376718b36ca))
|
7
|
+
|
1
8
|
# [1.3.0](https://github.com/mguyard/pydiagral/compare/v1.2.0...v1.3.0) (2025-02-22)
|
2
9
|
|
3
10
|
|
@@ -687,7 +687,6 @@ class DiagralAPI:
|
|
687
687
|
|
688
688
|
Raises:
|
689
689
|
ConfigurationError: If the provided ID is not 1 or 2.
|
690
|
-
All other exceptions from __system_action function are propagated.
|
691
690
|
|
692
691
|
"""
|
693
692
|
|
@@ -781,7 +780,6 @@ class DiagralAPI:
|
|
781
780
|
|
782
781
|
Raises:
|
783
782
|
ConfigurationError: If the action is not one of the allowed actions.
|
784
|
-
All other exceptions from __action_group_system function are propagated.
|
785
783
|
|
786
784
|
"""
|
787
785
|
|
@@ -803,7 +801,6 @@ class DiagralAPI:
|
|
803
801
|
|
804
802
|
Raises:
|
805
803
|
ConfigurationError: If the action is not one of the allowed actions.
|
806
|
-
All other exceptions from __action_group_system function are propagated.
|
807
804
|
|
808
805
|
"""
|
809
806
|
|
@@ -884,9 +881,6 @@ class DiagralAPI:
|
|
884
881
|
Returns:
|
885
882
|
SystemStatus: An instance of SystemStatus containing the system status after enabling the product.
|
886
883
|
|
887
|
-
Raises:
|
888
|
-
All exceptions from __action_product function are propagated.
|
889
|
-
|
890
884
|
"""
|
891
885
|
return await self.__action_product(
|
892
886
|
action="enable", type=type, product_id=product_id
|
@@ -904,9 +898,6 @@ class DiagralAPI:
|
|
904
898
|
Returns:
|
905
899
|
SystemStatus: An instance of SystemStatus containing the system status after disabling the product.
|
906
900
|
|
907
|
-
Raises:
|
908
|
-
All exceptions from __action_product function are propagated.
|
909
|
-
|
910
901
|
"""
|
911
902
|
return await self.__action_product(
|
912
903
|
action="disable", type=type, product_id=product_id
|
@@ -977,7 +968,6 @@ class DiagralAPI:
|
|
977
968
|
|
978
969
|
Raises:
|
979
970
|
AuthenticationError: If the API key or secret key is not provided.
|
980
|
-
All other exceptions from _request function are propagated.
|
981
971
|
|
982
972
|
"""
|
983
973
|
|
@@ -90,7 +90,7 @@ class CamelCaseModel:
|
|
90
90
|
return result
|
91
91
|
|
92
92
|
@classmethod
|
93
|
-
def _from_dict_recursive(cls, data: dict, target_cls: type[T]) -> T:
|
93
|
+
def _from_dict_recursive(cls: type[T], data: dict, target_cls: type[T]) -> T:
|
94
94
|
"""Recursively converts a dictionary to an instance of the specified target class.
|
95
95
|
|
96
96
|
This method handles nested dictionaries and lists, converting them to the appropriate
|
@@ -98,7 +98,7 @@ class CamelCaseModel:
|
|
98
98
|
by handling `Union` types and removing `None` from the type hints.
|
99
99
|
|
100
100
|
Args:
|
101
|
-
cls: The class that this method is a part of.
|
101
|
+
cls (type[T]): The class that this method is a part of.
|
102
102
|
data (dict): The dictionary to convert.
|
103
103
|
target_cls (type[T]): The target class to convert the dictionary to.
|
104
104
|
|
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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|