Skip to content

Commit 95f38ed

Browse files
feat: enhance regions support and Analysis runtime with async execution
Expanded regions.py with EU region support, TDeploy project integration, and runtime region caching. Refactored Analysis class to support async/await execution patterns with improved error handling and console service integration. Removed deprecated api_socket.py infrastructure and added JSONParseSafe utility for safer JSON parsing. Updated Analysis type definitions with new constructor params and function signatures. Added comprehensive region tests covering TDeploy and multi-region scenarios.
1 parent b4090c8 commit 95f38ed

7 files changed

Lines changed: 452 additions & 136 deletions

File tree

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@
6161
# Add any paths that contain custom static files (such as style sheets) here,
6262
# relative to this directory. They are copied after the builtin static files,
6363
# so a file named "default.css" will overwrite the builtin "default.css".
64-
html_static_path = ["_static"]
64+
# html_static_path = ["_static"]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import json
2+
3+
from typing import Any
4+
5+
6+
def JSONParseSafe(jsonString: str, default: Any = None) -> Any:
7+
"""Safely parse JSON string with fallback to default value"""
8+
if not jsonString:
9+
return default
10+
11+
try:
12+
return json.loads(jsonString)
13+
except (json.JSONDecodeError, TypeError, ValueError):
14+
return default if default is not None else {}

src/tagoio_sdk/infrastructure/api_socket.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)