smooth-py 0.3.0.dev20251009__py3-none-any.whl → 0.3.0.dev20251013__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
@@ -113,12 +113,12 @@ class TaskRequest(BaseModel):
113
113
  return self.profile_id
114
114
 
115
115
  @session_id.setter
116
- def session_id(self, value):
116
+ def session_id(self, value: str | None):
117
117
  """(Deprecated) Sets the session ID."""
118
118
  warnings.warn("'session_id' is deprecated, use 'profile_id' instead", DeprecationWarning, stacklevel=2)
119
119
  self.profile_id = value
120
120
 
121
- def model_dump(self, **kwargs) -> dict[str, Any]:
121
+ def model_dump(self, **kwargs: Any) -> dict[str, Any]:
122
122
  """Dump model to dict, including deprecated session_id for retrocompatibility."""
123
123
  data = super().model_dump(**kwargs)
124
124
  # Add deprecated session_id field for retrocompatibility
@@ -151,12 +151,12 @@ class BrowserSessionRequest(BaseModel):
151
151
  return self.profile_id
152
152
 
153
153
  @session_id.setter
154
- def session_id(self, value):
154
+ def session_id(self, value: str | None):
155
155
  """(Deprecated) Sets the session ID."""
156
156
  warnings.warn("'session_id' is deprecated, use 'profile_id' instead", DeprecationWarning, stacklevel=2)
157
157
  self.profile_id = value
158
158
 
159
- def model_dump(self, **kwargs) -> dict[str, Any]:
159
+ def model_dump(self, **kwargs: Any) -> dict[str, Any]:
160
160
  """Dump model to dict, including deprecated session_id for retrocompatibility."""
161
161
  data = super().model_dump(**kwargs)
162
162
  # Add deprecated session_id field for retrocompatibility
@@ -188,7 +188,7 @@ class BrowserSessionResponse(BaseModel):
188
188
  return self.profile_id
189
189
 
190
190
  @session_id.setter
191
- def session_id(self, value):
191
+ def session_id(self, value: str):
192
192
  """(Deprecated) Sets the session ID."""
193
193
  warnings.warn("'session_id' is deprecated, use 'profile_id' instead", DeprecationWarning, stacklevel=2)
194
194
  self.profile_id = value
@@ -215,12 +215,12 @@ class BrowserProfilesResponse(BaseModel):
215
215
  return self.profile_ids
216
216
 
217
217
  @session_ids.setter
218
- def session_ids(self, value):
218
+ def session_ids(self, value: list[str]):
219
219
  """(Deprecated) Sets the session IDs."""
220
220
  warnings.warn("'session_ids' is deprecated, use 'profile_ids' instead", DeprecationWarning, stacklevel=2)
221
221
  self.profile_ids = value
222
222
 
223
- def model_dump(self, **kwargs) -> dict[str, Any]:
223
+ def model_dump(self, **kwargs: Any) -> dict[str, Any]:
224
224
  """Dump model to dict, including deprecated session_ids for retrocompatibility."""
225
225
  data = super().model_dump(**kwargs)
226
226
  # Add deprecated session_ids field for retrocompatibility
@@ -510,7 +510,7 @@ class SmoothClient(BaseClient):
510
510
  """
511
511
  payload = TaskRequest(
512
512
  task=task,
513
- response_model=response_model.model_json_schema() if issubclass(response_model, BaseModel) else response_model,
513
+ response_model=response_model if isinstance(response_model, dict | None) else response_model.model_json_schema(),
514
514
  url=url,
515
515
  metadata=metadata,
516
516
  files=files,
@@ -696,7 +696,7 @@ class AsyncTaskHandle:
696
696
  task_response = await self._client._get_task(self.id())
697
697
  self._task_response = task_response
698
698
  if task_response.live_url is not None:
699
- return _encode_url(self._task_response.live_url, interactive=interactive, embed=embed)
699
+ return _encode_url(task_response.live_url, interactive=interactive, embed=embed)
700
700
  await asyncio.sleep(1)
701
701
 
702
702
  raise TimeoutError(f"Live URL not available for task {self.id()}.")
@@ -823,7 +823,7 @@ class SmoothAsyncClient(BaseClient):
823
823
  """
824
824
  payload = TaskRequest(
825
825
  task=task,
826
- response_model=response_model.model_json_schema() if issubclass(response_model, BaseModel) else response_model,
826
+ response_model=response_model if isinstance(response_model, dict | None) else response_model.model_json_schema(),
827
827
  url=url,
828
828
  metadata=metadata,
829
829
  files=files,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: smooth-py
3
- Version: 0.3.0.dev20251009
3
+ Version: 0.3.0.dev20251013
4
4
  Summary:
5
5
  Author: Luca Pinchetti
6
6
  Author-email: luca@circlemind.co
@@ -0,0 +1,6 @@
1
+ smooth/__init__.py,sha256=8cuQGi1QbHBbW0dcM9ZyyZL-PrMmAoR3LmLZcqksdJA,38460
2
+ smooth/mcp/__init__.py,sha256=0aJVFi2a8Ah3-5xtgyZ5UMbaaJsBWu2T8QLWoFQITk8,219
3
+ smooth/mcp/server.py,sha256=9SymTD4NOGTMN8P-LNGlvYNvv81yCIZfZeeuhEcAc6s,20068
4
+ smooth_py-0.3.0.dev20251013.dist-info/METADATA,sha256=CJIChVHrQ4YqTk7TioEH-u_4ecw9OurNAw1KAOf3Q1w,7529
5
+ smooth_py-0.3.0.dev20251013.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
6
+ smooth_py-0.3.0.dev20251013.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- smooth/__init__.py,sha256=0dn5X327eZwSdXklCCV4KN9L9-353GtmzaqjNs9_HeQ,38407
2
- smooth/mcp/__init__.py,sha256=0aJVFi2a8Ah3-5xtgyZ5UMbaaJsBWu2T8QLWoFQITk8,219
3
- smooth/mcp/server.py,sha256=9SymTD4NOGTMN8P-LNGlvYNvv81yCIZfZeeuhEcAc6s,20068
4
- smooth_py-0.3.0.dev20251009.dist-info/METADATA,sha256=cQ0TzuWCfXke3Rf7Zrp01lPUypKpOc2AB2tSQAx-wf8,7529
5
- smooth_py-0.3.0.dev20251009.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
6
- smooth_py-0.3.0.dev20251009.dist-info/RECORD,,