smooth-py 0.2.7.dev20251003__py3-none-any.whl → 0.2.8.dev20251003__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.

Potentially problematic release.


This version of smooth-py might be problematic. Click here for more details.

smooth/__init__.py CHANGED
@@ -13,7 +13,7 @@ from typing import Any, Literal, Type
13
13
  import httpx
14
14
  import requests
15
15
  from deprecated import deprecated
16
- from pydantic import BaseModel, Field, model_validator
16
+ from pydantic import BaseModel, ConfigDict, Field, model_validator
17
17
 
18
18
  # Configure logging
19
19
  logger = logging.getLogger("smooth")
@@ -38,6 +38,7 @@ def _encode_url(url: str, interactive: bool = True, embed: bool = False) -> str:
38
38
 
39
39
  class TaskResponse(BaseModel):
40
40
  """Task response model."""
41
+ model_config = ConfigDict(extra='allow')
41
42
 
42
43
  id: str = Field(description="The ID of the task.")
43
44
  status: Literal["waiting", "running", "done", "failed"] = Field(description="The status of the task.")
@@ -89,7 +90,9 @@ class TaskRequest(BaseModel):
89
90
  )
90
91
  proxy_username: str | None = Field(default=None, description="Proxy server username.")
91
92
  proxy_password: str | None = Field(default=None, description="Proxy server password.")
92
- experimental_features: dict[str, Any] | None = Field(default=None, description="Experimental features to enable for the task.")
93
+ experimental_features: dict[str, Any] | None = Field(
94
+ default=None, description="Experimental features to enable for the task."
95
+ )
93
96
 
94
97
  @model_validator(mode="before")
95
98
  @classmethod
@@ -417,11 +420,12 @@ class SmoothClient(BaseClient):
417
420
  enable_recording: bool = False,
418
421
  session_id: str | None = None,
419
422
  profile_id: str | None = None,
420
- profile_read_only: bool | None = None,
423
+ profile_read_only: bool = False,
421
424
  stealth_mode: bool = False,
422
425
  proxy_server: str | None = None,
423
426
  proxy_username: str | None = None,
424
427
  proxy_password: str | None = None,
428
+ experimental_features: dict[str, Any] | None = None,
425
429
  ) -> TaskHandle:
426
430
  """Runs a task and returns a handle to the task.
427
431
 
@@ -447,6 +451,7 @@ class SmoothClient(BaseClient):
447
451
  proxy_server: Proxy server url to route browser traffic through.
448
452
  proxy_username: Proxy server username.
449
453
  proxy_password: Proxy server password.
454
+ experimental_features: Experimental features to enable for the task.
450
455
 
451
456
  Returns:
452
457
  A handle to the running task.
@@ -471,6 +476,7 @@ class SmoothClient(BaseClient):
471
476
  proxy_server=proxy_server,
472
477
  proxy_username=proxy_username,
473
478
  proxy_password=proxy_password,
479
+ experimental_features=experimental_features,
474
480
  )
475
481
  initial_response = self._submit_task(payload)
476
482
 
@@ -702,11 +708,12 @@ class SmoothAsyncClient(BaseClient):
702
708
  enable_recording: bool = False,
703
709
  session_id: str | None = None,
704
710
  profile_id: str | None = None,
705
- profile_read_only: bool | None = None,
711
+ profile_read_only: bool = False,
706
712
  stealth_mode: bool = False,
707
713
  proxy_server: str | None = None,
708
714
  proxy_username: str | None = None,
709
715
  proxy_password: str | None = None,
716
+ experimental_features: dict[str, Any] | None = None,
710
717
  ) -> AsyncTaskHandle:
711
718
  """Runs a task and returns a handle to the task asynchronously.
712
719
 
@@ -732,8 +739,7 @@ class SmoothAsyncClient(BaseClient):
732
739
  proxy_server: Proxy server url to route browser traffic through.
733
740
  proxy_username: Proxy server username.
734
741
  proxy_password: Proxy server password.
735
- poll_interval: The time in seconds to wait between polling for status.
736
- timeout: The maximum time in seconds to wait for the task to complete.
742
+ experimental_features: Experimental features to enable for the task.
737
743
 
738
744
  Returns:
739
745
  A handle to the running task.
@@ -758,6 +764,7 @@ class SmoothAsyncClient(BaseClient):
758
764
  proxy_server=proxy_server,
759
765
  proxy_username=proxy_username,
760
766
  proxy_password=proxy_password,
767
+ experimental_features=experimental_features,
761
768
  )
762
769
 
763
770
  initial_response = await self._submit_task(payload)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: smooth-py
3
- Version: 0.2.7.dev20251003
3
+ Version: 0.2.8.dev20251003
4
4
  Summary:
5
5
  Author: Luca Pinchetti
6
6
  Author-email: luca@circlemind.co
@@ -0,0 +1,6 @@
1
+ smooth/__init__.py,sha256=KFKADb6yVVy8Xcsb0mYG7dsIhd4b4VuviyLonAbouqo,35123
2
+ smooth/mcp/__init__.py,sha256=0aJVFi2a8Ah3-5xtgyZ5UMbaaJsBWu2T8QLWoFQITk8,219
3
+ smooth/mcp/server.py,sha256=9SymTD4NOGTMN8P-LNGlvYNvv81yCIZfZeeuhEcAc6s,20068
4
+ smooth_py-0.2.8.dev20251003.dist-info/METADATA,sha256=x5hyXybb5aY_xcG8ohkMf4cKDwmHYslZ0DGpIVQQS0Y,7529
5
+ smooth_py-0.2.8.dev20251003.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
6
+ smooth_py-0.2.8.dev20251003.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- smooth/__init__.py,sha256=K87borOPyOmOeTzzwZnzEh0Ro8LxUO9swX1GWwjgd0Y,34860
2
- smooth/mcp/__init__.py,sha256=0aJVFi2a8Ah3-5xtgyZ5UMbaaJsBWu2T8QLWoFQITk8,219
3
- smooth/mcp/server.py,sha256=9SymTD4NOGTMN8P-LNGlvYNvv81yCIZfZeeuhEcAc6s,20068
4
- smooth_py-0.2.7.dev20251003.dist-info/METADATA,sha256=dXFh8dUH8CVnJ9hgE2x4x95nT1XRvIBB51GedlNs9po,7529
5
- smooth_py-0.2.7.dev20251003.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
6
- smooth_py-0.2.7.dev20251003.dist-info/RECORD,,