hyperbrowser 0.45.0__py3-none-any.whl → 0.46.0__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 hyperbrowser might be problematic. Click here for more details.
- hyperbrowser/client/base.py +1 -1
- hyperbrowser/client/managers/async_manager/session.py +22 -1
- hyperbrowser/client/managers/sync_manager/session.py +20 -1
- hyperbrowser/models/__init__.py +4 -0
- hyperbrowser/models/agents/claude_computer_use.py +2 -0
- hyperbrowser/models/consts.py +7 -0
- hyperbrowser/models/session.py +8 -0
- hyperbrowser-0.46.0.dist-info/LICENSE +21 -0
- {hyperbrowser-0.45.0.dist-info → hyperbrowser-0.46.0.dist-info}/METADATA +7 -3
- {hyperbrowser-0.45.0.dist-info → hyperbrowser-0.46.0.dist-info}/RECORD +11 -11
- hyperbrowser-0.45.0.dist-info/LICENSE +0 -16
- {hyperbrowser-0.45.0.dist-info → hyperbrowser-0.46.0.dist-info}/WHEEL +0 -0
hyperbrowser/client/base.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import List
|
|
1
|
+
from typing import List, Union, IO
|
|
2
2
|
from ....models.session import (
|
|
3
3
|
BasicResponse,
|
|
4
4
|
CreateSessionParams,
|
|
@@ -9,6 +9,7 @@ from ....models.session import (
|
|
|
9
9
|
SessionListParams,
|
|
10
10
|
SessionListResponse,
|
|
11
11
|
SessionRecording,
|
|
12
|
+
UploadFileResponse,
|
|
12
13
|
)
|
|
13
14
|
|
|
14
15
|
|
|
@@ -73,3 +74,23 @@ class SessionManager:
|
|
|
73
74
|
self._client._build_url(f"/session/{id}/downloads-url")
|
|
74
75
|
)
|
|
75
76
|
return GetSessionDownloadsUrlResponse(**response.data)
|
|
77
|
+
|
|
78
|
+
async def upload_file(
|
|
79
|
+
self, id: str, file_input: Union[str, IO]
|
|
80
|
+
) -> UploadFileResponse:
|
|
81
|
+
response = None
|
|
82
|
+
if isinstance(file_input, str):
|
|
83
|
+
with open(file_input, "rb") as file_obj:
|
|
84
|
+
files = {"file": file_obj}
|
|
85
|
+
response = await self._client.transport.post(
|
|
86
|
+
self._client._build_url(f"/session/{id}/uploads"),
|
|
87
|
+
files=files,
|
|
88
|
+
)
|
|
89
|
+
else:
|
|
90
|
+
files = {"file": file_input}
|
|
91
|
+
response = await self._client.transport.post(
|
|
92
|
+
self._client._build_url(f"/session/{id}/uploads"),
|
|
93
|
+
files=files,
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
return UploadFileResponse(**response.data)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import List
|
|
1
|
+
from typing import List, Union, IO
|
|
2
2
|
from ....models.session import (
|
|
3
3
|
BasicResponse,
|
|
4
4
|
CreateSessionParams,
|
|
@@ -9,6 +9,7 @@ from ....models.session import (
|
|
|
9
9
|
SessionListParams,
|
|
10
10
|
SessionListResponse,
|
|
11
11
|
SessionRecording,
|
|
12
|
+
UploadFileResponse,
|
|
12
13
|
)
|
|
13
14
|
|
|
14
15
|
|
|
@@ -69,3 +70,21 @@ class SessionManager:
|
|
|
69
70
|
self._client._build_url(f"/session/{id}/downloads-url")
|
|
70
71
|
)
|
|
71
72
|
return GetSessionDownloadsUrlResponse(**response.data)
|
|
73
|
+
|
|
74
|
+
def upload_file(self, id: str, file_input: Union[str, IO]) -> UploadFileResponse:
|
|
75
|
+
response = None
|
|
76
|
+
if isinstance(file_input, str):
|
|
77
|
+
with open(file_input, "rb") as file_obj:
|
|
78
|
+
files = {"file": file_obj}
|
|
79
|
+
response = self._client.transport.post(
|
|
80
|
+
self._client._build_url(f"/session/{id}/uploads"),
|
|
81
|
+
files=files,
|
|
82
|
+
)
|
|
83
|
+
else:
|
|
84
|
+
files = {"file": file_input}
|
|
85
|
+
response = self._client.transport.post(
|
|
86
|
+
self._client._build_url(f"/session/{id}/uploads"),
|
|
87
|
+
files=files,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
return UploadFileResponse(**response.data)
|
hyperbrowser/models/__init__.py
CHANGED
|
@@ -35,6 +35,7 @@ from .consts import (
|
|
|
35
35
|
POLLING_ATTEMPTS,
|
|
36
36
|
HyperAgentLlm,
|
|
37
37
|
BrowserUseLlm,
|
|
38
|
+
ClaudeComputerUseLlm,
|
|
38
39
|
Country,
|
|
39
40
|
DownloadsStatus,
|
|
40
41
|
OperatingSystem,
|
|
@@ -101,6 +102,7 @@ from .session import (
|
|
|
101
102
|
SessionListResponse,
|
|
102
103
|
SessionRecording,
|
|
103
104
|
SessionStatus,
|
|
105
|
+
UploadFileResponse,
|
|
104
106
|
)
|
|
105
107
|
|
|
106
108
|
__all__ = [
|
|
@@ -109,6 +111,7 @@ __all__ = [
|
|
|
109
111
|
"POLLING_ATTEMPTS",
|
|
110
112
|
"HyperAgentLlm",
|
|
111
113
|
"BrowserUseLlm",
|
|
114
|
+
"ClaudeComputerUseLlm",
|
|
112
115
|
"Country",
|
|
113
116
|
"DownloadsStatus",
|
|
114
117
|
"OperatingSystem",
|
|
@@ -200,4 +203,5 @@ __all__ = [
|
|
|
200
203
|
"SessionListResponse",
|
|
201
204
|
"SessionRecording",
|
|
202
205
|
"SessionStatus",
|
|
206
|
+
"UploadFileResponse",
|
|
203
207
|
]
|
|
@@ -3,6 +3,7 @@ from typing import Any, Literal, Optional
|
|
|
3
3
|
from pydantic import BaseModel, ConfigDict, Field
|
|
4
4
|
|
|
5
5
|
from ..session import CreateSessionParams
|
|
6
|
+
from ..consts import ClaudeComputerUseLlm
|
|
6
7
|
|
|
7
8
|
ClaudeComputerUseTaskStatus = Literal[
|
|
8
9
|
"pending", "running", "completed", "failed", "stopped"
|
|
@@ -19,6 +20,7 @@ class StartClaudeComputerUseTaskParams(BaseModel):
|
|
|
19
20
|
)
|
|
20
21
|
|
|
21
22
|
task: str
|
|
23
|
+
llm: Optional[ClaudeComputerUseLlm] = Field(default=None, serialization_alias="llm")
|
|
22
24
|
session_id: Optional[str] = Field(default=None, serialization_alias="sessionId")
|
|
23
25
|
max_failures: Optional[int] = Field(default=None, serialization_alias="maxFailures")
|
|
24
26
|
max_steps: Optional[int] = Field(default=None, serialization_alias="maxSteps")
|
hyperbrowser/models/consts.py
CHANGED
|
@@ -16,6 +16,9 @@ POLLING_ATTEMPTS = 5
|
|
|
16
16
|
BrowserUseLlm = Literal[
|
|
17
17
|
"gpt-4o",
|
|
18
18
|
"gpt-4o-mini",
|
|
19
|
+
"gpt-4.1",
|
|
20
|
+
"gpt-4.1-mini",
|
|
21
|
+
"claude-sonnet-4-20250514",
|
|
19
22
|
"claude-3-7-sonnet-20250219",
|
|
20
23
|
"claude-3-5-sonnet-20241022",
|
|
21
24
|
"claude-3-5-haiku-20241022",
|
|
@@ -28,6 +31,10 @@ HyperAgentLlm = Literal[
|
|
|
28
31
|
"gpt-4.1-mini",
|
|
29
32
|
"gpt-4.1-nano",
|
|
30
33
|
]
|
|
34
|
+
ClaudeComputerUseLlm = Literal[
|
|
35
|
+
"claude-3-7-sonnet-20250219",
|
|
36
|
+
"claude-sonnet-4-20250514",
|
|
37
|
+
]
|
|
31
38
|
|
|
32
39
|
Country = Literal[
|
|
33
40
|
"AD",
|
hyperbrowser/models/session.py
CHANGED
|
@@ -252,3 +252,11 @@ class GetSessionDownloadsUrlResponse(BaseModel):
|
|
|
252
252
|
status: DownloadsStatus = Field(alias="status")
|
|
253
253
|
downloads_url: Optional[str] = Field(default=None, alias="downloadsUrl")
|
|
254
254
|
error: Optional[str] = Field(default=None, alias="error")
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
class UploadFileResponse(BaseModel):
|
|
258
|
+
model_config = ConfigDict(
|
|
259
|
+
populate_by_alias=True,
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
message: str = Field(alias="message")
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 S2 Labs Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: hyperbrowser
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.46.0
|
|
4
4
|
Summary: Python SDK for hyperbrowser
|
|
5
|
-
License:
|
|
5
|
+
License: MIT
|
|
6
6
|
Author: Nikhil Shahi
|
|
7
7
|
Author-email: nshahi1998@gmail.com
|
|
8
8
|
Requires-Python: >=3.8,<4.0
|
|
9
|
-
Classifier: License :: OSI Approved ::
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.8
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.9
|
|
@@ -123,3 +123,7 @@ def main():
|
|
|
123
123
|
# Run the asyncio event loop
|
|
124
124
|
main()
|
|
125
125
|
```
|
|
126
|
+
## License
|
|
127
|
+
|
|
128
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
129
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
hyperbrowser/__init__.py,sha256=zWGcLhqhvWy6BTwuNpzWK1-0LpIn311ks-4U9nrsb7Y,187
|
|
2
2
|
hyperbrowser/client/async_client.py,sha256=TfDVCO0AxgUI5mB4bmnP0mvWdDR_C6yvMpo24KIkaDc,1474
|
|
3
|
-
hyperbrowser/client/base.py,sha256=
|
|
3
|
+
hyperbrowser/client/base.py,sha256=2nkTdGfRWjW3grqAuYez-IuD69SAAJ5qklCKNeAYd6A,1268
|
|
4
4
|
hyperbrowser/client/managers/async_manager/agents/__init__.py,sha256=GUkUBxoqW6vchz3-yNlUaE8TdEClNdp3RliHYMT1fsE,432
|
|
5
5
|
hyperbrowser/client/managers/async_manager/agents/browser_use.py,sha256=DLRcQfmM8LKBJsaFCx8cYn0L4UjCd0I3egoX5ytVoTg,2511
|
|
6
6
|
hyperbrowser/client/managers/async_manager/agents/claude_computer_use.py,sha256=gTnX8r3rETyLMsDy_4nO0oB5cDdHHN9s-y7xw-4ekqc,2657
|
|
@@ -11,7 +11,7 @@ hyperbrowser/client/managers/async_manager/extension.py,sha256=a-xYtXXdCspukYtsg
|
|
|
11
11
|
hyperbrowser/client/managers/async_manager/extract.py,sha256=wZO696_3Mse3tnsHgpSXibo6IfwcO5K1lWstcO_2GjQ,2492
|
|
12
12
|
hyperbrowser/client/managers/async_manager/profile.py,sha256=cQ4cYVwL83heQwEnQiBw0PHk1HWK7DWFXmmBnRXJt0E,1514
|
|
13
13
|
hyperbrowser/client/managers/async_manager/scrape.py,sha256=akVgbatTTHDFkmxugxcQpIPEwjSPm7VloJVDdbAPRh0,6560
|
|
14
|
-
hyperbrowser/client/managers/async_manager/session.py,sha256
|
|
14
|
+
hyperbrowser/client/managers/async_manager/session.py,sha256=-bp5wG8Is6J3NR4vIIFcFgpIjBK8GnOsWg09XddkWhg,3494
|
|
15
15
|
hyperbrowser/client/managers/sync_manager/agents/__init__.py,sha256=GUkUBxoqW6vchz3-yNlUaE8TdEClNdp3RliHYMT1fsE,432
|
|
16
16
|
hyperbrowser/client/managers/sync_manager/agents/browser_use.py,sha256=DX2Z5k6B_oA3wm4iYHCOq3l8B0ZyspdKlJhzf592-bw,2413
|
|
17
17
|
hyperbrowser/client/managers/sync_manager/agents/claude_computer_use.py,sha256=6mAaqDjKrLrxRaGZfZSgC7wYVyDQeWZEE6K6wLrnTXk,2557
|
|
@@ -22,22 +22,22 @@ hyperbrowser/client/managers/sync_manager/extension.py,sha256=1YoyTZtMo43trl9jAs
|
|
|
22
22
|
hyperbrowser/client/managers/sync_manager/extract.py,sha256=rNSxAMR95_nL4qHuatPSzXrYFUGbLQE1xm9Us1myy9s,2391
|
|
23
23
|
hyperbrowser/client/managers/sync_manager/profile.py,sha256=P6pQXeDiW40PN_XZJMzdr59FxwysFJ1fG1pOt5CbvtY,1466
|
|
24
24
|
hyperbrowser/client/managers/sync_manager/scrape.py,sha256=aNsTNZyPwzwCz6oCqzfoOWJm3qXUjwIIO68lIaCGzWE,6381
|
|
25
|
-
hyperbrowser/client/managers/sync_manager/session.py,sha256=
|
|
25
|
+
hyperbrowser/client/managers/sync_manager/session.py,sha256=81sjAXPc3w3F1bI0if6z02wHrS5HYsStDQTpqUpk6Fo,3330
|
|
26
26
|
hyperbrowser/client/sync.py,sha256=LjBkuXGhGJaMbDPEZbF9mzonb2UBw_I9d6xk2MDQqIU,1297
|
|
27
27
|
hyperbrowser/config.py,sha256=7P-sbcvqXVr8Qzubo5O6jJgzcCgB5DdwbeIgEjRZNlY,623
|
|
28
28
|
hyperbrowser/exceptions.py,sha256=SUUkptK2OL36xDORYmSicaTYR7pMbxeWAjAgz35xnM8,1171
|
|
29
|
-
hyperbrowser/models/__init__.py,sha256=
|
|
29
|
+
hyperbrowser/models/__init__.py,sha256=V_e2WqZJ9Vz_4iqUDu2SEW9neMXmGqRZjwzZrdfRvw8,5042
|
|
30
30
|
hyperbrowser/models/agents/browser_use.py,sha256=H-QUUgXkho14mMf9s4mdytsGjgLKk8dlx1Co6jYZKfM,5290
|
|
31
|
-
hyperbrowser/models/agents/claude_computer_use.py,sha256=
|
|
31
|
+
hyperbrowser/models/agents/claude_computer_use.py,sha256=gLP4ap9GzyZc9AS8o3nCT5xJ8sqGcOqgPdEVAAKVZAw,2699
|
|
32
32
|
hyperbrowser/models/agents/cua.py,sha256=ao7AA6NBet31duCZLI5aiWydNiiHvgQTPxkxHR5r2Cw,3061
|
|
33
33
|
hyperbrowser/models/agents/hyper_agent.py,sha256=bqRc9yWuwj3yRv6p--mbNSICRL-Qlj5tR7E_A7kozQk,3100
|
|
34
|
-
hyperbrowser/models/consts.py,sha256=
|
|
34
|
+
hyperbrowser/models/consts.py,sha256=qRZ9fW2pUmg1GKaWKozFgncs-_Pn3lMGeVekt-lS_R0,6883
|
|
35
35
|
hyperbrowser/models/crawl.py,sha256=XUS5Ja-Abl8gMyDtLIsRaEKa_taSOORMLOFCdAPgGaI,2820
|
|
36
36
|
hyperbrowser/models/extension.py,sha256=nXjKXKt9R7RxyZ4hd3EvfqZsEGy_ufh1r5j2mqCLykQ,804
|
|
37
37
|
hyperbrowser/models/extract.py,sha256=DXg0HtO44plAtcFOmqUpdp9P93tq45U2fLWxn5jdjAw,1745
|
|
38
38
|
hyperbrowser/models/profile.py,sha256=GF0esQwru0oOs9sQ9DCuO8VX4GKPgRgKCVP8s7g0Pig,1846
|
|
39
39
|
hyperbrowser/models/scrape.py,sha256=iMsUuMx3UFtSci6TVUpcH5ytbgwiImIXjviVcGZ_gBQ,5048
|
|
40
|
-
hyperbrowser/models/session.py,sha256=
|
|
40
|
+
hyperbrowser/models/session.py,sha256=LqHG9UcNs6zMP1O9gnCG58L4Tc2-e6EtapXsF7F4BPc,7840
|
|
41
41
|
hyperbrowser/tools/__init__.py,sha256=L-2xveBbSuIBQBQhJmXGCLNYEUq_XHDdgz_gBAsmQZo,4605
|
|
42
42
|
hyperbrowser/tools/anthropic.py,sha256=bo8jn2ROHCp_hpX1_cjkCk7qU0LmuBr_gvlvM0f5OMc,2699
|
|
43
43
|
hyperbrowser/tools/openai.py,sha256=YkdONf2CYuuJei2019a5cpCcZGn8g5bH-PnZ4YY7c4U,3514
|
|
@@ -45,7 +45,7 @@ hyperbrowser/tools/schema.py,sha256=YFUAoQjx_SpjezS3UQdTCCn4xMdN3CgEeKAlulkIATc,
|
|
|
45
45
|
hyperbrowser/transport/async_transport.py,sha256=6HKoeM5TutIqraEscEWobvSPWF3iVKh2hPflGNKwykw,4128
|
|
46
46
|
hyperbrowser/transport/base.py,sha256=ildpMrDiM8nvrSGrH2LTOafmB17T7PQB_NQ1ODA378U,1703
|
|
47
47
|
hyperbrowser/transport/sync.py,sha256=aUVpxWF8sqSycLNKxVNEZvlsZSoqc1eHgPK1Y1QA1u8,3422
|
|
48
|
-
hyperbrowser-0.
|
|
49
|
-
hyperbrowser-0.
|
|
50
|
-
hyperbrowser-0.
|
|
51
|
-
hyperbrowser-0.
|
|
48
|
+
hyperbrowser-0.46.0.dist-info/LICENSE,sha256=NbSXeOZ2JKnPpkyLBYkfPqt9eWNy-Lx3xb4sjsSR9mI,1069
|
|
49
|
+
hyperbrowser-0.46.0.dist-info/METADATA,sha256=fS9qFjWNHT-NTl7_WvCoR68kQXUdcZu5sPcR54CtWuY,3578
|
|
50
|
+
hyperbrowser-0.46.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
51
|
+
hyperbrowser-0.46.0.dist-info/RECORD,,
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
GNU AFFERO GENERAL PUBLIC LICENSE
|
|
2
|
-
Version 3, 19 November 2007
|
|
3
|
-
|
|
4
|
-
Copyright (C) 2025 S2 Labs Inc.
|
|
5
|
-
|
|
6
|
-
This program is free software: you can redistribute it and/or modify
|
|
7
|
-
it under the terms of the GNU Affero General Public License as
|
|
8
|
-
published by the Free Software Foundation, either version 3 of the
|
|
9
|
-
License, or (at your option) any later version.
|
|
10
|
-
|
|
11
|
-
This program is distributed in the hope that it will be useful,
|
|
12
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
-
GNU Affero General Public License for more details.
|
|
15
|
-
|
|
16
|
-
For the full license text, see <https://www.gnu.org/licenses/agpl-3.0.en.html>.
|
|
File without changes
|