Skip to content

Commit ac76593

Browse files
authored
add browsery memory size (#97)
1 parent e97c57b commit ac76593

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

hyperbrowser/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@
242242
)
243243
from .session import (
244244
BasicResponse,
245+
BrowserMemorySize,
245246
CreateSessionParams,
246247
CreateSessionProfile,
247248
CreateSessionSnapshotResponse,
@@ -515,6 +516,7 @@
515516
"StorageStateOptions",
516517
# session
517518
"BasicResponse",
519+
"BrowserMemorySize",
518520
"CreateSessionParams",
519521
"CreateSessionProfile",
520522
"CreateSessionSnapshotResponse",

hyperbrowser/models/session.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
)
1717

1818
SessionStatus = Literal["active", "closed", "error"]
19+
BrowserMemorySize = Literal["small", "medium", "large"]
1920
CaptchaSolverType = Literal["visual"]
2021
CaptchaEvaluationType = Literal[
2122
"turnstile",
@@ -509,6 +510,9 @@ class CreateSessionParams(BaseModel):
509510
disable_post_quantum_key_agreement: Optional[bool] = Field(
510511
default=None, serialization_alias="disablePostQuantumKeyAgreement"
511512
)
513+
browser_memory_size: Optional[BrowserMemorySize] = Field(
514+
default=None, serialization_alias="browserMemorySize"
515+
)
512516
start_from_snapshot: Optional[StartSessionFromSnapshotParams] = Field(
513517
default=None,
514518
serialization_alias="startFromSnapshot",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "hyperbrowser"
3-
version = "0.92.1"
3+
version = "0.92.2"
44
description = "Python SDK for hyperbrowser"
55
authors = ["Nikhil Shahi <nshahi1998@gmail.com>"]
66
license = "MIT"

0 commit comments

Comments
 (0)