narada 0.1.30__tar.gz → 0.1.31__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: narada
3
- Version: 0.1.30
3
+ Version: 0.1.31
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
@@ -9,7 +9,7 @@ Author-email: Narada <support@narada.ai>
9
9
  License-Expression: Apache-2.0
10
10
  Requires-Python: >=3.12
11
11
  Requires-Dist: aiohttp>=3.12.13
12
- Requires-Dist: narada-core==0.0.8
12
+ Requires-Dist: narada-core==0.0.9
13
13
  Requires-Dist: playwright>=1.53.0
14
14
  Requires-Dist: rich>=14.0.0
15
15
  Requires-Dist: semver>=3.0.4
@@ -1,13 +1,13 @@
1
1
  [project]
2
2
  name = "narada"
3
- version = "0.1.30"
3
+ version = "0.1.31"
4
4
  description = "Python client SDK for Narada"
5
5
  license = "Apache-2.0"
6
6
  readme = "README.md"
7
7
  authors = [{ name = "Narada", email = "support@narada.ai" }]
8
8
  requires-python = ">=3.12"
9
9
  dependencies = [
10
- "narada-core==0.0.8",
10
+ "narada-core==0.0.9",
11
11
  "aiohttp>=3.12.13",
12
12
  "playwright>=1.53.0",
13
13
  "rich>=14.0.0",
@@ -26,6 +26,12 @@ from narada_core.actions.models import (
26
26
  ReadGoogleSheetResponse,
27
27
  WriteGoogleSheetRequest,
28
28
  RecordedClick,
29
+ GetFullHtmlRequest,
30
+ GetFullHtmlResponse,
31
+ GetSimplifiedHtmlRequest,
32
+ GetSimplifiedHtmlResponse,
33
+ GetScreenshotRequest,
34
+ GetScreenshotResponse,
29
35
  )
30
36
  from narada_core.errors import (
31
37
  NaradaAgentTimeoutError_INTERNAL_DO_NOT_USE,
@@ -437,6 +443,34 @@ class BaseBrowserWindow(ABC):
437
443
  timeout=timeout,
438
444
  )
439
445
 
446
+ async def get_full_html(self, *, timeout: int | None = None) -> GetFullHtmlResponse:
447
+ """Gets the full HTML content of the current page."""
448
+ return await self._run_extension_action(
449
+ GetFullHtmlRequest(),
450
+ GetFullHtmlResponse,
451
+ timeout=timeout,
452
+ )
453
+
454
+ async def get_simplified_html(
455
+ self, *, timeout: int | None = None
456
+ ) -> GetSimplifiedHtmlResponse:
457
+ """Gets the simplified HTML content of the current page."""
458
+ return await self._run_extension_action(
459
+ GetSimplifiedHtmlRequest(),
460
+ GetSimplifiedHtmlResponse,
461
+ timeout=timeout,
462
+ )
463
+
464
+ async def get_screenshot(
465
+ self, *, timeout: int | None = None
466
+ ) -> GetScreenshotResponse:
467
+ """Takes a screenshot of the current browser window."""
468
+ return await self._run_extension_action(
469
+ GetScreenshotRequest(),
470
+ GetScreenshotResponse,
471
+ timeout=timeout,
472
+ )
473
+
440
474
  @overload
441
475
  async def _run_extension_action(
442
476
  self,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes