python-aidot 0.3.50__tar.gz → 0.3.51__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.
- {python_aidot-0.3.50 → python_aidot-0.3.51}/PKG-INFO +1 -1
- {python_aidot-0.3.50 → python_aidot-0.3.51}/aidot/client.py +11 -8
- {python_aidot-0.3.50 → python_aidot-0.3.51}/python_aidot.egg-info/PKG-INFO +1 -1
- {python_aidot-0.3.50 → python_aidot-0.3.51}/setup.py +1 -1
- {python_aidot-0.3.50 → python_aidot-0.3.51}/LICENSE +0 -0
- {python_aidot-0.3.50 → python_aidot-0.3.51}/README.md +0 -0
- {python_aidot-0.3.50 → python_aidot-0.3.51}/aidot/__init__.py +0 -0
- {python_aidot-0.3.50 → python_aidot-0.3.51}/aidot/aes_utils.py +0 -0
- {python_aidot-0.3.50 → python_aidot-0.3.51}/aidot/const.py +0 -0
- {python_aidot-0.3.50 → python_aidot-0.3.51}/aidot/device_client.py +0 -0
- {python_aidot-0.3.50 → python_aidot-0.3.51}/aidot/discover.py +0 -0
- {python_aidot-0.3.50 → python_aidot-0.3.51}/aidot/exceptions.py +0 -0
- {python_aidot-0.3.50 → python_aidot-0.3.51}/aidot/login_const.py +0 -0
- {python_aidot-0.3.50 → python_aidot-0.3.51}/python_aidot.egg-info/SOURCES.txt +0 -0
- {python_aidot-0.3.50 → python_aidot-0.3.51}/python_aidot.egg-info/dependency_links.txt +0 -0
- {python_aidot-0.3.50 → python_aidot-0.3.51}/python_aidot.egg-info/requires.txt +0 -0
- {python_aidot-0.3.50 → python_aidot-0.3.51}/python_aidot.egg-info/top_level.txt +0 -0
- {python_aidot-0.3.50 → python_aidot-0.3.51}/setup.cfg +0 -0
|
@@ -77,7 +77,7 @@ class AidotClient:
|
|
|
77
77
|
password: str | None = None,
|
|
78
78
|
token: dict | None = None,
|
|
79
79
|
) -> None:
|
|
80
|
-
_LOGGER.warning(f"Aidot Client Version: v0.3.
|
|
80
|
+
_LOGGER.warning(f"Aidot Client Version: v0.3.51")
|
|
81
81
|
self.session = session
|
|
82
82
|
self.username = username
|
|
83
83
|
self.password = password
|
|
@@ -110,13 +110,16 @@ class AidotClient:
|
|
|
110
110
|
file_path = Path.home() / ".aidot_terminal_id"
|
|
111
111
|
|
|
112
112
|
def _read_or_create() -> str:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
113
|
+
try:
|
|
114
|
+
if file_path.exists():
|
|
115
|
+
return file_path.read_text().strip()
|
|
116
|
+
node = uuid.getnode()
|
|
117
|
+
is_random = (node >> 40) & 1
|
|
118
|
+
raw_id = str(uuid.uuid4()) if is_random else format(node, "x")
|
|
119
|
+
file_path.write_text(raw_id)
|
|
120
|
+
return raw_id
|
|
121
|
+
except OSError:
|
|
122
|
+
return 'gvz3gjae10l4zii00t7y0'
|
|
120
123
|
|
|
121
124
|
raw_id = await asyncio.to_thread(_read_or_create)
|
|
122
125
|
return hashlib.md5(raw_id.encode()).hexdigest()
|
|
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
|