dimo-python-sdk 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.
- {dimo_python_sdk-1.3.3/dimo_python_sdk.egg-info → dimo_python_sdk-1.3.4}/PKG-INFO +1 -1
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/api/token_exchange.py +3 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4/dimo_python_sdk.egg-info}/PKG-INFO +1 -1
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/pyproject.toml +1 -1
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/LICENSE +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/README.md +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/__init__.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/api/__init__.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/api/attestation.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/api/auth.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/api/device_definitions.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/api/trips.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/api/valuations.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/constants.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/dimo.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/environments.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/errors.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/eth_signer.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/graphql/__init__.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/graphql/identity.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/graphql/telemetry.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/permission_decoder.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo/request.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo_python_sdk.egg-info/SOURCES.txt +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo_python_sdk.egg-info/dependency_links.txt +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo_python_sdk.egg-info/requires.txt +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo_python_sdk.egg-info/top_level.txt +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/setup.cfg +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/tests/test_dimo.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/tests/test_errors.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/tests/test_permission_decoder.py +0 -0
- {dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/tests/test_request.py +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from dimo.constants import dimo_constants
|
|
2
2
|
from dimo.errors import check_type, check_optional_type
|
|
3
3
|
from dimo.permission_decoder import PermissionDecoder
|
|
4
|
+
import json
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
class TokenExchange:
|
|
@@ -17,6 +18,8 @@ class TokenExchange:
|
|
|
17
18
|
def _decode_vehicle_permissions(self, token_id: int, client_id: str) -> dict:
|
|
18
19
|
response = self._identity.check_vehicle_privileges(token_id)
|
|
19
20
|
try:
|
|
21
|
+
# If response is bytes
|
|
22
|
+
response = json.loads(response.decode('utf-8'))
|
|
20
23
|
nodes = (
|
|
21
24
|
response.get("data", {})
|
|
22
25
|
.get("vehicle", {})
|
|
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
|
{dimo_python_sdk-1.3.3 → dimo_python_sdk-1.3.4}/dimo_python_sdk.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
|