narada 0.1.33a3__py3-none-any.whl → 0.1.33a4__py3-none-any.whl

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.
narada/client.py CHANGED
@@ -10,15 +10,6 @@ from typing import Any
10
10
  from uuid import uuid4
11
11
 
12
12
  import aiohttp
13
- import semver
14
- from narada.config import BrowserConfig, ProxyConfig
15
- from narada.utils import assert_never
16
- from narada.version import __version__
17
- from narada.window import (
18
- LocalBrowserWindow,
19
- CloudBrowserWindow,
20
- create_side_panel_url,
21
- )
22
13
  from narada_core.errors import (
23
14
  NaradaExtensionMissingError,
24
15
  NaradaExtensionUnauthenticatedError,
@@ -27,6 +18,7 @@ from narada_core.errors import (
27
18
  NaradaUnsupportedBrowserError,
28
19
  )
29
20
  from narada_core.models import _SdkConfig
21
+ from packaging.version import Version
30
22
  from playwright._impl._errors import Error as PlaywrightError
31
23
  from playwright.async_api import (
32
24
  Browser,
@@ -34,14 +26,21 @@ from playwright.async_api import (
34
26
  ElementHandle,
35
27
  Page,
36
28
  Playwright,
37
- )
38
- from playwright.async_api import TimeoutError as PlaywrightTimeoutError
39
- from playwright.async_api import (
40
29
  async_playwright,
41
30
  )
31
+ from playwright.async_api import TimeoutError as PlaywrightTimeoutError
42
32
  from playwright.async_api._context_manager import PlaywrightContextManager
43
33
  from rich.console import Console
44
34
 
35
+ from narada.config import BrowserConfig, ProxyConfig
36
+ from narada.utils import assert_never
37
+ from narada.version import __version__
38
+ from narada.window import (
39
+ CloudBrowserWindow,
40
+ LocalBrowserWindow,
41
+ create_side_panel_url,
42
+ )
43
+
45
44
 
46
45
  @dataclass
47
46
  class _LaunchBrowserResult:
@@ -116,7 +115,9 @@ class Narada:
116
115
  return
117
116
 
118
117
  package_config = config.packages["narada"]
119
- if semver.compare(__version__, package_config.min_required_version) < 0:
118
+ current_version = Version(__version__)
119
+ min_required_version = Version(package_config.min_required_version)
120
+ if current_version < min_required_version:
120
121
  raise RuntimeError(
121
122
  f"narada<={__version__} is not supported. Please upgrade to version "
122
123
  f"{package_config.min_required_version} or higher."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: narada
3
- Version: 0.1.33a3
3
+ Version: 0.1.33a4
4
4
  Summary: Python client SDK for Narada
5
5
  Project-URL: Homepage, https://github.com/NaradaAI/narada-python-sdk/narada
6
6
  Project-URL: Repository, https://github.com/NaradaAI/narada-python-sdk
@@ -10,9 +10,9 @@ License-Expression: Apache-2.0
10
10
  Requires-Python: >=3.12
11
11
  Requires-Dist: aiohttp>=3.12.13
12
12
  Requires-Dist: narada-core==0.0.11
13
+ Requires-Dist: packaging==24.2
13
14
  Requires-Dist: playwright>=1.53.0
14
15
  Requires-Dist: rich>=14.0.0
15
- Requires-Dist: semver>=3.0.4
16
16
  Description-Content-Type: text/markdown
17
17
 
18
18
  <p align="center">
@@ -1,10 +1,10 @@
1
1
  narada/__init__.py,sha256=gVa9HUFTeHot7VR2XPtCEsVeRiK7MDJJvKU1eEhLqXQ,1013
2
- narada/client.py,sha256=Ea-zyJo6rZCQNi1higShelILkR9FLpNrtYoFse7heUA,26630
2
+ narada/client.py,sha256=rMKx--EB_qyiv-pxh_5nGTTJlF7tsy10mXPK3sPTXN8,26711
3
3
  narada/config.py,sha256=S0B8GNd-0td_69oKaPN60WAq_ODeYU7avE_KAxN5vCg,3052
4
4
  narada/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  narada/utils.py,sha256=gdLwNMXPpRohDcIIe0cB3KhvZ8X1QfAlKVh1sXWeJmk,1284
6
6
  narada/version.py,sha256=kwW6yy0_4Pf3kt888eeCG0VwBb2L2rCkrkpdZEC_3rA,193
7
7
  narada/window.py,sha256=e3pXn-wQMKm8QRvtAKfep0iGQE2LP9doP85z1t6VVpI,23036
8
- narada-0.1.33a3.dist-info/METADATA,sha256=CUJqBDNN1q9JmIqk9N0E-QUDiQoBjbYTQi1jJYcXkdI,5149
9
- narada-0.1.33a3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
10
- narada-0.1.33a3.dist-info/RECORD,,
8
+ narada-0.1.33a4.dist-info/METADATA,sha256=bND-bm71GIzwM8-6R1XD3iUVKxVig7Xv5lZamSDYx9k,5151
9
+ narada-0.1.33a4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
10
+ narada-0.1.33a4.dist-info/RECORD,,