hyperbrowser 0.45.0__tar.gz → 0.46.0__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.

Potentially problematic release.


This version of hyperbrowser might be problematic. Click here for more details.

Files changed (52) hide show
  1. hyperbrowser-0.46.0/LICENSE +21 -0
  2. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/PKG-INFO +7 -3
  3. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/README.md +4 -1
  4. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/base.py +1 -1
  5. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/async_manager/session.py +22 -1
  6. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/sync_manager/session.py +20 -1
  7. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/models/__init__.py +4 -0
  8. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/models/agents/claude_computer_use.py +2 -0
  9. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/models/consts.py +7 -0
  10. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/models/session.py +8 -0
  11. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/pyproject.toml +2 -2
  12. hyperbrowser-0.45.0/LICENSE +0 -16
  13. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/__init__.py +0 -0
  14. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/async_client.py +0 -0
  15. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/async_manager/agents/__init__.py +0 -0
  16. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/async_manager/agents/browser_use.py +0 -0
  17. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/async_manager/agents/claude_computer_use.py +0 -0
  18. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/async_manager/agents/cua.py +0 -0
  19. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/async_manager/agents/hyper_agent.py +0 -0
  20. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/async_manager/crawl.py +0 -0
  21. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/async_manager/extension.py +0 -0
  22. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/async_manager/extract.py +0 -0
  23. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/async_manager/profile.py +0 -0
  24. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/async_manager/scrape.py +0 -0
  25. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/sync_manager/agents/__init__.py +0 -0
  26. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/sync_manager/agents/browser_use.py +0 -0
  27. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/sync_manager/agents/claude_computer_use.py +0 -0
  28. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/sync_manager/agents/cua.py +0 -0
  29. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/sync_manager/agents/hyper_agent.py +0 -0
  30. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/sync_manager/crawl.py +0 -0
  31. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/sync_manager/extension.py +0 -0
  32. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/sync_manager/extract.py +0 -0
  33. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/sync_manager/profile.py +0 -0
  34. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/managers/sync_manager/scrape.py +0 -0
  35. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/client/sync.py +0 -0
  36. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/config.py +0 -0
  37. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/exceptions.py +0 -0
  38. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/models/agents/browser_use.py +0 -0
  39. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/models/agents/cua.py +0 -0
  40. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/models/agents/hyper_agent.py +0 -0
  41. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/models/crawl.py +0 -0
  42. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/models/extension.py +0 -0
  43. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/models/extract.py +0 -0
  44. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/models/profile.py +0 -0
  45. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/models/scrape.py +0 -0
  46. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/tools/__init__.py +0 -0
  47. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/tools/anthropic.py +0 -0
  48. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/tools/openai.py +0 -0
  49. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/tools/schema.py +0 -0
  50. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/transport/async_transport.py +0 -0
  51. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/transport/base.py +0 -0
  52. {hyperbrowser-0.45.0 → hyperbrowser-0.46.0}/hyperbrowser/transport/sync.py +0 -0
@@ -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.45.0
3
+ Version: 0.46.0
4
4
  Summary: Python SDK for hyperbrowser
5
- License: AGPL-3.0-or-later
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 :: GNU Affero General Public License v3 or later (AGPLv3+)
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
+
@@ -99,4 +99,7 @@ def main():
99
99
 
100
100
  # Run the asyncio event loop
101
101
  main()
102
- ```
102
+ ```
103
+ ## License
104
+
105
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
@@ -27,7 +27,7 @@ class HyperbrowserBase:
27
27
  base_url
28
28
  if base_url is not None
29
29
  else os.environ.get(
30
- "HYPERBROWSER_BASE_URL", "https://app.hyperbrowser.ai"
30
+ "HYPERBROWSER_BASE_URL", "https://api.hyperbrowser.ai"
31
31
  )
32
32
  ),
33
33
  )
@@ -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)
@@ -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")
@@ -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",
@@ -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")
@@ -1,9 +1,9 @@
1
1
  [tool.poetry]
2
2
  name = "hyperbrowser"
3
- version = "0.45.0"
3
+ version = "0.46.0"
4
4
  description = "Python SDK for hyperbrowser"
5
5
  authors = ["Nikhil Shahi <nshahi1998@gmail.com>"]
6
- license = "AGPL-3.0-or-later"
6
+ license = "MIT"
7
7
  readme = "README.md"
8
8
  include = ["LICENSE"]
9
9
  homepage = "https://github.com/hyperbrowserai/python-sdk"
@@ -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>.