hyperbrowser 0.39.0__py3-none-any.whl → 0.40.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/managers/async_manager/profile.py +7 -1
- hyperbrowser/client/managers/sync_manager/profile.py +7 -1
- hyperbrowser/models/__init__.py +2 -0
- hyperbrowser/models/profile.py +24 -1
- {hyperbrowser-0.39.0.dist-info → hyperbrowser-0.40.0.dist-info}/METADATA +1 -1
- {hyperbrowser-0.39.0.dist-info → hyperbrowser-0.40.0.dist-info}/RECORD +8 -8
- {hyperbrowser-0.39.0.dist-info → hyperbrowser-0.40.0.dist-info}/LICENSE +0 -0
- {hyperbrowser-0.39.0.dist-info → hyperbrowser-0.40.0.dist-info}/WHEEL +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from hyperbrowser.models.profile import (
|
|
2
|
+
CreateProfileParams,
|
|
2
3
|
CreateProfileResponse,
|
|
3
4
|
ProfileListParams,
|
|
4
5
|
ProfileListResponse,
|
|
@@ -11,9 +12,14 @@ class ProfileManager:
|
|
|
11
12
|
def __init__(self, client):
|
|
12
13
|
self._client = client
|
|
13
14
|
|
|
14
|
-
async def create(self) -> CreateProfileResponse:
|
|
15
|
+
async def create(self, params: CreateProfileParams = None) -> CreateProfileResponse:
|
|
15
16
|
response = await self._client.transport.post(
|
|
16
17
|
self._client._build_url("/profile"),
|
|
18
|
+
data=(
|
|
19
|
+
{}
|
|
20
|
+
if params is None
|
|
21
|
+
else params.model_dump(exclude_none=True, by_alias=True)
|
|
22
|
+
),
|
|
17
23
|
)
|
|
18
24
|
return CreateProfileResponse(**response.data)
|
|
19
25
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from hyperbrowser.models.profile import (
|
|
2
|
+
CreateProfileParams,
|
|
2
3
|
CreateProfileResponse,
|
|
3
4
|
ProfileListParams,
|
|
4
5
|
ProfileListResponse,
|
|
@@ -11,9 +12,14 @@ class ProfileManager:
|
|
|
11
12
|
def __init__(self, client):
|
|
12
13
|
self._client = client
|
|
13
14
|
|
|
14
|
-
def create(self) -> CreateProfileResponse:
|
|
15
|
+
def create(self, params: CreateProfileParams = None) -> CreateProfileResponse:
|
|
15
16
|
response = self._client.transport.post(
|
|
16
17
|
self._client._build_url("/profile"),
|
|
18
|
+
data=(
|
|
19
|
+
{}
|
|
20
|
+
if params is None
|
|
21
|
+
else params.model_dump(exclude_none=True, by_alias=True)
|
|
22
|
+
),
|
|
17
23
|
)
|
|
18
24
|
return CreateProfileResponse(**response.data)
|
|
19
25
|
|
hyperbrowser/models/__init__.py
CHANGED
|
@@ -53,6 +53,7 @@ from .extract import (
|
|
|
53
53
|
StartExtractJobResponse,
|
|
54
54
|
)
|
|
55
55
|
from .profile import (
|
|
56
|
+
CreateProfileParams,
|
|
56
57
|
CreateProfileResponse,
|
|
57
58
|
ProfileListParams,
|
|
58
59
|
ProfileListResponse,
|
|
@@ -142,6 +143,7 @@ __all__ = [
|
|
|
142
143
|
"StartExtractJobParams",
|
|
143
144
|
"StartExtractJobResponse",
|
|
144
145
|
# profile
|
|
146
|
+
"CreateProfileParams",
|
|
145
147
|
"CreateProfileResponse",
|
|
146
148
|
"ProfileListParams",
|
|
147
149
|
"ProfileListResponse",
|
hyperbrowser/models/profile.py
CHANGED
|
@@ -1,11 +1,32 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
|
-
from typing import List
|
|
2
|
+
from typing import List, Optional
|
|
3
3
|
|
|
4
4
|
from pydantic import BaseModel, ConfigDict, Field
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
class CreateProfileParams(BaseModel):
|
|
8
|
+
"""
|
|
9
|
+
Parameters for creating a new profile.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
model_config = ConfigDict(
|
|
13
|
+
populate_by_alias=True,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
name: Optional[str] = Field(default=None, serialization_alias="name")
|
|
17
|
+
|
|
18
|
+
|
|
7
19
|
class CreateProfileResponse(BaseModel):
|
|
20
|
+
"""
|
|
21
|
+
Response containing the created profile.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
model_config = ConfigDict(
|
|
25
|
+
populate_by_alias=True,
|
|
26
|
+
)
|
|
27
|
+
|
|
8
28
|
id: str
|
|
29
|
+
name: Optional[str] = Field(default=None)
|
|
9
30
|
|
|
10
31
|
|
|
11
32
|
class ProfileResponse(BaseModel):
|
|
@@ -14,6 +35,7 @@ class ProfileResponse(BaseModel):
|
|
|
14
35
|
)
|
|
15
36
|
|
|
16
37
|
id: str
|
|
38
|
+
name: Optional[str] = Field(default=None)
|
|
17
39
|
team_id: str = Field(alias="teamId")
|
|
18
40
|
created_at: datetime = Field(alias="createdAt")
|
|
19
41
|
updated_at: datetime = Field(alias="updatedAt")
|
|
@@ -30,6 +52,7 @@ class ProfileListParams(BaseModel):
|
|
|
30
52
|
|
|
31
53
|
page: int = Field(default=1, ge=1)
|
|
32
54
|
limit: int = Field(default=10, ge=1)
|
|
55
|
+
name: Optional[str] = Field(default=None)
|
|
33
56
|
|
|
34
57
|
|
|
35
58
|
class ProfileListResponse(BaseModel):
|
|
@@ -8,7 +8,7 @@ hyperbrowser/client/managers/async_manager/agents/cua.py,sha256=e43QgSLi0LvGd9cO
|
|
|
8
8
|
hyperbrowser/client/managers/async_manager/crawl.py,sha256=fzaF6cK5HZej2C6FwXxnrRt4OpJ5qYxMktaQGVYTlWE,4357
|
|
9
9
|
hyperbrowser/client/managers/async_manager/extension.py,sha256=a-xYtXXdCspukYtsguRgjEoQ8E_kzzA2tQAJtIyCtAs,1439
|
|
10
10
|
hyperbrowser/client/managers/async_manager/extract.py,sha256=wZO696_3Mse3tnsHgpSXibo6IfwcO5K1lWstcO_2GjQ,2492
|
|
11
|
-
hyperbrowser/client/managers/async_manager/profile.py,sha256=
|
|
11
|
+
hyperbrowser/client/managers/async_manager/profile.py,sha256=cQ4cYVwL83heQwEnQiBw0PHk1HWK7DWFXmmBnRXJt0E,1514
|
|
12
12
|
hyperbrowser/client/managers/async_manager/scrape.py,sha256=U8oa5QNOfLfYxd31BmcLE2dqJbOK60cmoLDGoHzJnAI,6500
|
|
13
13
|
hyperbrowser/client/managers/async_manager/session.py,sha256=4DTBbup-fK_uHNhgjZ4K7oqmTNtVH8tZtVQUpXzHyD8,2379
|
|
14
14
|
hyperbrowser/client/managers/sync_manager/agents/__init__.py,sha256=iQF-JlDvCG7X-c0848OTD2WUMdb3sUsUokvEJzDea2g,336
|
|
@@ -18,13 +18,13 @@ hyperbrowser/client/managers/sync_manager/agents/cua.py,sha256=rh3JyXWzh9SvSLkDB
|
|
|
18
18
|
hyperbrowser/client/managers/sync_manager/crawl.py,sha256=gwLtEX-qGNvqxA7IhCIKYTF3QV3_gX7nOpMWZ2s7HzA,4289
|
|
19
19
|
hyperbrowser/client/managers/sync_manager/extension.py,sha256=1YoyTZtMo43trl9jAsXv95aor0nBHiJEmLva39jFW-k,1415
|
|
20
20
|
hyperbrowser/client/managers/sync_manager/extract.py,sha256=rNSxAMR95_nL4qHuatPSzXrYFUGbLQE1xm9Us1myy9s,2391
|
|
21
|
-
hyperbrowser/client/managers/sync_manager/profile.py,sha256=
|
|
21
|
+
hyperbrowser/client/managers/sync_manager/profile.py,sha256=P6pQXeDiW40PN_XZJMzdr59FxwysFJ1fG1pOt5CbvtY,1466
|
|
22
22
|
hyperbrowser/client/managers/sync_manager/scrape.py,sha256=PD9K_jyFzvejDmwTkUrXNxaG86QQ-bxzyv-djdfYbug,6321
|
|
23
23
|
hyperbrowser/client/managers/sync_manager/session.py,sha256=ipPv6uesN8Y7gDF8YL0XL49O6BUfHWHY6Ias4Gq_JOM,2273
|
|
24
24
|
hyperbrowser/client/sync.py,sha256=LjBkuXGhGJaMbDPEZbF9mzonb2UBw_I9d6xk2MDQqIU,1297
|
|
25
25
|
hyperbrowser/config.py,sha256=6xtUiVXy7MQMiARAsadP62U46tL0wzVMDuGmQBcH_LQ,623
|
|
26
26
|
hyperbrowser/exceptions.py,sha256=SUUkptK2OL36xDORYmSicaTYR7pMbxeWAjAgz35xnM8,1171
|
|
27
|
-
hyperbrowser/models/__init__.py,sha256=
|
|
27
|
+
hyperbrowser/models/__init__.py,sha256=k12f4lcB89uGpwhrd0coX7-JJMWQNsCNEblxIia6B8k,4268
|
|
28
28
|
hyperbrowser/models/agents/browser_use.py,sha256=Wi-w0pTn33lDwfuleEre83vVfTc2oQDIoyuxgiHL3nA,5047
|
|
29
29
|
hyperbrowser/models/agents/claude_computer_use.py,sha256=6bnaF9Y-5jSr0vLXJijDwW29GZXr7H_8SMQSmY4vAFk,2568
|
|
30
30
|
hyperbrowser/models/agents/cua.py,sha256=ao7AA6NBet31duCZLI5aiWydNiiHvgQTPxkxHR5r2Cw,3061
|
|
@@ -32,7 +32,7 @@ hyperbrowser/models/consts.py,sha256=KdwLaRPMXv1U_oWwfGv8Kmml7Nygy-d1qH-IvAT2U_E
|
|
|
32
32
|
hyperbrowser/models/crawl.py,sha256=XUS5Ja-Abl8gMyDtLIsRaEKa_taSOORMLOFCdAPgGaI,2820
|
|
33
33
|
hyperbrowser/models/extension.py,sha256=nXjKXKt9R7RxyZ4hd3EvfqZsEGy_ufh1r5j2mqCLykQ,804
|
|
34
34
|
hyperbrowser/models/extract.py,sha256=DXg0HtO44plAtcFOmqUpdp9P93tq45U2fLWxn5jdjAw,1745
|
|
35
|
-
hyperbrowser/models/profile.py,sha256=
|
|
35
|
+
hyperbrowser/models/profile.py,sha256=GF0esQwru0oOs9sQ9DCuO8VX4GKPgRgKCVP8s7g0Pig,1846
|
|
36
36
|
hyperbrowser/models/scrape.py,sha256=iMsUuMx3UFtSci6TVUpcH5ytbgwiImIXjviVcGZ_gBQ,5048
|
|
37
37
|
hyperbrowser/models/session.py,sha256=rhDRb-HkjdXsfzjUg4VKOzaGMoHxcG38947bhT_jmiU,7044
|
|
38
38
|
hyperbrowser/tools/__init__.py,sha256=L-2xveBbSuIBQBQhJmXGCLNYEUq_XHDdgz_gBAsmQZo,4605
|
|
@@ -42,7 +42,7 @@ hyperbrowser/tools/schema.py,sha256=YFUAoQjx_SpjezS3UQdTCCn4xMdN3CgEeKAlulkIATc,
|
|
|
42
42
|
hyperbrowser/transport/async_transport.py,sha256=6HKoeM5TutIqraEscEWobvSPWF3iVKh2hPflGNKwykw,4128
|
|
43
43
|
hyperbrowser/transport/base.py,sha256=ildpMrDiM8nvrSGrH2LTOafmB17T7PQB_NQ1ODA378U,1703
|
|
44
44
|
hyperbrowser/transport/sync.py,sha256=aUVpxWF8sqSycLNKxVNEZvlsZSoqc1eHgPK1Y1QA1u8,3422
|
|
45
|
-
hyperbrowser-0.
|
|
46
|
-
hyperbrowser-0.
|
|
47
|
-
hyperbrowser-0.
|
|
48
|
-
hyperbrowser-0.
|
|
45
|
+
hyperbrowser-0.40.0.dist-info/LICENSE,sha256=6rUGKlyKb_1ZAH7h7YITYAAUNFN3MNGGKCyfrw49NLE,1071
|
|
46
|
+
hyperbrowser-0.40.0.dist-info/METADATA,sha256=2kOYgfu5d-6Z8t7e1SJ22CP7wg0Y47tJx5WUnD21XS0,3471
|
|
47
|
+
hyperbrowser-0.40.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
48
|
+
hyperbrowser-0.40.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|