anchorbrowser 0.3.11__py3-none-any.whl → 0.3.13__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.
- anchorbrowser/_types.py +3 -2
- anchorbrowser/_version.py +1 -1
- anchorbrowser/types/batch_session_create_params.py +34 -0
- anchorbrowser/types/session_create_params.py +32 -0
- anchorbrowser/types/task_create_params.py +8 -0
- anchorbrowser/types/task_create_response.py +8 -0
- anchorbrowser/types/task_list_response.py +8 -0
- anchorbrowser/types/task_run_params.py +8 -0
- {anchorbrowser-0.3.11.dist-info → anchorbrowser-0.3.13.dist-info}/METADATA +3 -2
- {anchorbrowser-0.3.11.dist-info → anchorbrowser-0.3.13.dist-info}/RECORD +12 -12
- {anchorbrowser-0.3.11.dist-info → anchorbrowser-0.3.13.dist-info}/WHEEL +0 -0
- {anchorbrowser-0.3.11.dist-info → anchorbrowser-0.3.13.dist-info}/licenses/LICENSE +0 -0
anchorbrowser/_types.py
CHANGED
|
@@ -243,6 +243,9 @@ _T_co = TypeVar("_T_co", covariant=True)
|
|
|
243
243
|
if TYPE_CHECKING:
|
|
244
244
|
# This works because str.__contains__ does not accept object (either in typeshed or at runtime)
|
|
245
245
|
# https://github.com/hauntsaninja/useful_types/blob/5e9710f3875107d068e7679fd7fec9cfab0eff3b/useful_types/__init__.py#L285
|
|
246
|
+
#
|
|
247
|
+
# Note: index() and count() methods are intentionally omitted to allow pyright to properly
|
|
248
|
+
# infer TypedDict types when dict literals are used in lists assigned to SequenceNotStr.
|
|
246
249
|
class SequenceNotStr(Protocol[_T_co]):
|
|
247
250
|
@overload
|
|
248
251
|
def __getitem__(self, index: SupportsIndex, /) -> _T_co: ...
|
|
@@ -251,8 +254,6 @@ if TYPE_CHECKING:
|
|
|
251
254
|
def __contains__(self, value: object, /) -> bool: ...
|
|
252
255
|
def __len__(self) -> int: ...
|
|
253
256
|
def __iter__(self) -> Iterator[_T_co]: ...
|
|
254
|
-
def index(self, value: Any, start: int = 0, stop: int = ..., /) -> int: ...
|
|
255
|
-
def count(self, value: Any, /) -> int: ...
|
|
256
257
|
def __reversed__(self) -> Iterator[_T_co]: ...
|
|
257
258
|
else:
|
|
258
259
|
# just point this to a normal `Sequence` at runtime to avoid having to special case
|
anchorbrowser/_version.py
CHANGED
|
@@ -47,11 +47,15 @@ class BatchSessionCreateParams(TypedDict, total=False):
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
class ConfigurationBrowserAdblock(TypedDict, total=False):
|
|
50
|
+
"""Configuration for ad-blocking."""
|
|
51
|
+
|
|
50
52
|
active: bool
|
|
51
53
|
"""Enable or disable ad-blocking. Defaults to `true`."""
|
|
52
54
|
|
|
53
55
|
|
|
54
56
|
class ConfigurationBrowserCaptchaSolver(TypedDict, total=False):
|
|
57
|
+
"""Configuration for captcha-solving."""
|
|
58
|
+
|
|
55
59
|
active: bool
|
|
56
60
|
"""Enable or disable captcha-solving.
|
|
57
61
|
|
|
@@ -60,6 +64,8 @@ class ConfigurationBrowserCaptchaSolver(TypedDict, total=False):
|
|
|
60
64
|
|
|
61
65
|
|
|
62
66
|
class ConfigurationBrowserDisableWebSecurity(TypedDict, total=False):
|
|
67
|
+
"""Configuration for disabling web security features."""
|
|
68
|
+
|
|
63
69
|
active: bool
|
|
64
70
|
"""Whether to disable web security features (CORS, same-origin policy, etc.).
|
|
65
71
|
|
|
@@ -69,11 +75,17 @@ class ConfigurationBrowserDisableWebSecurity(TypedDict, total=False):
|
|
|
69
75
|
|
|
70
76
|
|
|
71
77
|
class ConfigurationBrowserExtraStealth(TypedDict, total=False):
|
|
78
|
+
"""
|
|
79
|
+
Configuration for extra stealth mode to enhance browser fingerprinting protection.
|
|
80
|
+
"""
|
|
81
|
+
|
|
72
82
|
active: bool
|
|
73
83
|
"""Enable or disable extra stealth mode."""
|
|
74
84
|
|
|
75
85
|
|
|
76
86
|
class ConfigurationBrowserFullscreen(TypedDict, total=False):
|
|
87
|
+
"""Configuration for fullscreen mode."""
|
|
88
|
+
|
|
77
89
|
active: bool
|
|
78
90
|
"""Enable or disable fullscreen mode.
|
|
79
91
|
|
|
@@ -82,11 +94,15 @@ class ConfigurationBrowserFullscreen(TypedDict, total=False):
|
|
|
82
94
|
|
|
83
95
|
|
|
84
96
|
class ConfigurationBrowserHeadless(TypedDict, total=False):
|
|
97
|
+
"""Configuration for headless mode."""
|
|
98
|
+
|
|
85
99
|
active: bool
|
|
86
100
|
"""Whether browser should be headless or headful. Defaults to `false`."""
|
|
87
101
|
|
|
88
102
|
|
|
89
103
|
class ConfigurationBrowserP2pDownload(TypedDict, total=False):
|
|
104
|
+
"""Configuration for peer-to-peer download capture functionality."""
|
|
105
|
+
|
|
90
106
|
active: bool
|
|
91
107
|
"""Enable or disable P2P downloads.
|
|
92
108
|
|
|
@@ -96,6 +112,8 @@ class ConfigurationBrowserP2pDownload(TypedDict, total=False):
|
|
|
96
112
|
|
|
97
113
|
|
|
98
114
|
class ConfigurationBrowserPopupBlocker(TypedDict, total=False):
|
|
115
|
+
"""Configuration for popup blocking."""
|
|
116
|
+
|
|
99
117
|
active: bool
|
|
100
118
|
"""Blocks popups, including ads and CAPTCHA consent banners.
|
|
101
119
|
|
|
@@ -104,6 +122,8 @@ class ConfigurationBrowserPopupBlocker(TypedDict, total=False):
|
|
|
104
122
|
|
|
105
123
|
|
|
106
124
|
class ConfigurationBrowserProfile(TypedDict, total=False):
|
|
125
|
+
"""Options for managing and persisting browser session profiles."""
|
|
126
|
+
|
|
107
127
|
name: str
|
|
108
128
|
"""The name of the profile to be used during the browser session."""
|
|
109
129
|
|
|
@@ -115,6 +135,8 @@ class ConfigurationBrowserProfile(TypedDict, total=False):
|
|
|
115
135
|
|
|
116
136
|
|
|
117
137
|
class ConfigurationBrowserViewport(TypedDict, total=False):
|
|
138
|
+
"""Configuration for the browser's viewport size."""
|
|
139
|
+
|
|
118
140
|
height: int
|
|
119
141
|
"""Height of the viewport in pixels. Defaults to `900`."""
|
|
120
142
|
|
|
@@ -123,6 +145,8 @@ class ConfigurationBrowserViewport(TypedDict, total=False):
|
|
|
123
145
|
|
|
124
146
|
|
|
125
147
|
class ConfigurationBrowser(TypedDict, total=False):
|
|
148
|
+
"""Browser-specific configurations."""
|
|
149
|
+
|
|
126
150
|
adblock: ConfigurationBrowserAdblock
|
|
127
151
|
"""Configuration for ad-blocking."""
|
|
128
152
|
|
|
@@ -193,6 +217,8 @@ class ConfigurationIntegration(TypedDict, total=False):
|
|
|
193
217
|
|
|
194
218
|
|
|
195
219
|
class ConfigurationSessionLiveView(TypedDict, total=False):
|
|
220
|
+
"""Configuration for live viewing the browser session."""
|
|
221
|
+
|
|
196
222
|
read_only: bool
|
|
197
223
|
"""Enable or disable read-only mode for live viewing. Defaults to `false`."""
|
|
198
224
|
|
|
@@ -435,11 +461,15 @@ ConfigurationSessionProxy: TypeAlias = Union[ConfigurationSessionProxyAnchorProx
|
|
|
435
461
|
|
|
436
462
|
|
|
437
463
|
class ConfigurationSessionRecording(TypedDict, total=False):
|
|
464
|
+
"""Configuration for session recording."""
|
|
465
|
+
|
|
438
466
|
active: bool
|
|
439
467
|
"""Enable or disable video recording of the browser session. Defaults to `true`."""
|
|
440
468
|
|
|
441
469
|
|
|
442
470
|
class ConfigurationSessionTimeout(TypedDict, total=False):
|
|
471
|
+
"""Timeout configurations for the browser session."""
|
|
472
|
+
|
|
443
473
|
idle_timeout: int
|
|
444
474
|
"""
|
|
445
475
|
The amount of time (in minutes) the browser session waits for new connections
|
|
@@ -454,6 +484,8 @@ class ConfigurationSessionTimeout(TypedDict, total=False):
|
|
|
454
484
|
|
|
455
485
|
|
|
456
486
|
class ConfigurationSession(TypedDict, total=False):
|
|
487
|
+
"""Session-related configurations."""
|
|
488
|
+
|
|
457
489
|
initial_url: str
|
|
458
490
|
"""The URL to navigate to when the browser session starts.
|
|
459
491
|
|
|
@@ -474,6 +506,8 @@ class ConfigurationSession(TypedDict, total=False):
|
|
|
474
506
|
|
|
475
507
|
|
|
476
508
|
class Configuration(TypedDict, total=False):
|
|
509
|
+
"""Configuration that applies to all sessions in the batch"""
|
|
510
|
+
|
|
477
511
|
browser: ConfigurationBrowser
|
|
478
512
|
"""Browser-specific configurations."""
|
|
479
513
|
|
|
@@ -49,11 +49,15 @@ class SessionCreateParams(TypedDict, total=False):
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
class BrowserAdblock(TypedDict, total=False):
|
|
52
|
+
"""Configuration for ad-blocking."""
|
|
53
|
+
|
|
52
54
|
active: bool
|
|
53
55
|
"""Enable or disable ad-blocking. Defaults to `true`."""
|
|
54
56
|
|
|
55
57
|
|
|
56
58
|
class BrowserCaptchaSolver(TypedDict, total=False):
|
|
59
|
+
"""Configuration for captcha-solving."""
|
|
60
|
+
|
|
57
61
|
active: bool
|
|
58
62
|
"""Enable or disable captcha-solving.
|
|
59
63
|
|
|
@@ -62,6 +66,8 @@ class BrowserCaptchaSolver(TypedDict, total=False):
|
|
|
62
66
|
|
|
63
67
|
|
|
64
68
|
class BrowserDisableWebSecurity(TypedDict, total=False):
|
|
69
|
+
"""Configuration for disabling web security features."""
|
|
70
|
+
|
|
65
71
|
active: bool
|
|
66
72
|
"""Whether to disable web security features (CORS, same-origin policy, etc.).
|
|
67
73
|
|
|
@@ -71,11 +77,17 @@ class BrowserDisableWebSecurity(TypedDict, total=False):
|
|
|
71
77
|
|
|
72
78
|
|
|
73
79
|
class BrowserExtraStealth(TypedDict, total=False):
|
|
80
|
+
"""
|
|
81
|
+
Configuration for extra stealth mode to enhance browser fingerprinting protection.
|
|
82
|
+
"""
|
|
83
|
+
|
|
74
84
|
active: bool
|
|
75
85
|
"""Enable or disable extra stealth mode."""
|
|
76
86
|
|
|
77
87
|
|
|
78
88
|
class BrowserFullscreen(TypedDict, total=False):
|
|
89
|
+
"""Configuration for fullscreen mode."""
|
|
90
|
+
|
|
79
91
|
active: bool
|
|
80
92
|
"""Enable or disable fullscreen mode.
|
|
81
93
|
|
|
@@ -84,11 +96,15 @@ class BrowserFullscreen(TypedDict, total=False):
|
|
|
84
96
|
|
|
85
97
|
|
|
86
98
|
class BrowserHeadless(TypedDict, total=False):
|
|
99
|
+
"""Configuration for headless mode."""
|
|
100
|
+
|
|
87
101
|
active: bool
|
|
88
102
|
"""Whether browser should be headless or headful. Defaults to `false`."""
|
|
89
103
|
|
|
90
104
|
|
|
91
105
|
class BrowserP2pDownload(TypedDict, total=False):
|
|
106
|
+
"""Configuration for peer-to-peer download capture functionality."""
|
|
107
|
+
|
|
92
108
|
active: bool
|
|
93
109
|
"""Enable or disable P2P downloads.
|
|
94
110
|
|
|
@@ -98,6 +114,8 @@ class BrowserP2pDownload(TypedDict, total=False):
|
|
|
98
114
|
|
|
99
115
|
|
|
100
116
|
class BrowserPopupBlocker(TypedDict, total=False):
|
|
117
|
+
"""Configuration for popup blocking."""
|
|
118
|
+
|
|
101
119
|
active: bool
|
|
102
120
|
"""Blocks popups, including ads and CAPTCHA consent banners.
|
|
103
121
|
|
|
@@ -106,6 +124,8 @@ class BrowserPopupBlocker(TypedDict, total=False):
|
|
|
106
124
|
|
|
107
125
|
|
|
108
126
|
class BrowserProfile(TypedDict, total=False):
|
|
127
|
+
"""Options for managing and persisting browser session profiles."""
|
|
128
|
+
|
|
109
129
|
name: str
|
|
110
130
|
"""The name of the profile to be used during the browser session."""
|
|
111
131
|
|
|
@@ -117,6 +137,8 @@ class BrowserProfile(TypedDict, total=False):
|
|
|
117
137
|
|
|
118
138
|
|
|
119
139
|
class BrowserViewport(TypedDict, total=False):
|
|
140
|
+
"""Configuration for the browser's viewport size."""
|
|
141
|
+
|
|
120
142
|
height: int
|
|
121
143
|
"""Height of the viewport in pixels. Defaults to `900`."""
|
|
122
144
|
|
|
@@ -125,6 +147,8 @@ class BrowserViewport(TypedDict, total=False):
|
|
|
125
147
|
|
|
126
148
|
|
|
127
149
|
class Browser(TypedDict, total=False):
|
|
150
|
+
"""Browser-specific configurations."""
|
|
151
|
+
|
|
128
152
|
adblock: BrowserAdblock
|
|
129
153
|
"""Configuration for ad-blocking."""
|
|
130
154
|
|
|
@@ -194,6 +218,8 @@ class Integration(TypedDict, total=False):
|
|
|
194
218
|
|
|
195
219
|
|
|
196
220
|
class SessionLiveView(TypedDict, total=False):
|
|
221
|
+
"""Configuration for live viewing the browser session."""
|
|
222
|
+
|
|
197
223
|
read_only: bool
|
|
198
224
|
"""Enable or disable read-only mode for live viewing. Defaults to `false`."""
|
|
199
225
|
|
|
@@ -437,11 +463,15 @@ SessionProxy: TypeAlias = Union[SessionProxyAnchorProxy, SessionProxyCustomProxy
|
|
|
437
463
|
|
|
438
464
|
|
|
439
465
|
class SessionRecording(TypedDict, total=False):
|
|
466
|
+
"""Configuration for session recording."""
|
|
467
|
+
|
|
440
468
|
active: bool
|
|
441
469
|
"""Enable or disable video recording of the browser session. Defaults to `true`."""
|
|
442
470
|
|
|
443
471
|
|
|
444
472
|
class SessionTimeout(TypedDict, total=False):
|
|
473
|
+
"""Timeout configurations for the browser session."""
|
|
474
|
+
|
|
445
475
|
idle_timeout: int
|
|
446
476
|
"""
|
|
447
477
|
The amount of time (in minutes) the browser session waits for new connections
|
|
@@ -456,6 +486,8 @@ class SessionTimeout(TypedDict, total=False):
|
|
|
456
486
|
|
|
457
487
|
|
|
458
488
|
class Session(TypedDict, total=False):
|
|
489
|
+
"""Session-related configurations."""
|
|
490
|
+
|
|
459
491
|
initial_url: str
|
|
460
492
|
"""The URL to navigate to when the browser session starts.
|
|
461
493
|
|
|
@@ -37,6 +37,8 @@ class TaskCreateParams(TypedDict, total=False):
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
class BrowserConfigurationLiveView(TypedDict, total=False):
|
|
40
|
+
"""Configuration for live viewing the browser session."""
|
|
41
|
+
|
|
40
42
|
read_only: bool
|
|
41
43
|
"""Enable or disable read-only mode for live viewing. Defaults to `false`."""
|
|
42
44
|
|
|
@@ -279,11 +281,15 @@ BrowserConfigurationProxy: TypeAlias = Union[BrowserConfigurationProxyAnchorProx
|
|
|
279
281
|
|
|
280
282
|
|
|
281
283
|
class BrowserConfigurationRecording(TypedDict, total=False):
|
|
284
|
+
"""Configuration for session recording."""
|
|
285
|
+
|
|
282
286
|
active: bool
|
|
283
287
|
"""Enable or disable video recording of the browser session. Defaults to `true`."""
|
|
284
288
|
|
|
285
289
|
|
|
286
290
|
class BrowserConfigurationTimeout(TypedDict, total=False):
|
|
291
|
+
"""Timeout configurations for the browser session."""
|
|
292
|
+
|
|
287
293
|
idle_timeout: int
|
|
288
294
|
"""
|
|
289
295
|
The amount of time (in minutes) the browser session waits for new connections
|
|
@@ -298,6 +304,8 @@ class BrowserConfigurationTimeout(TypedDict, total=False):
|
|
|
298
304
|
|
|
299
305
|
|
|
300
306
|
class BrowserConfiguration(TypedDict, total=False):
|
|
307
|
+
"""Browser configuration for task execution"""
|
|
308
|
+
|
|
301
309
|
initial_url: str
|
|
302
310
|
"""The URL to navigate to when the browser session starts.
|
|
303
311
|
|
|
@@ -22,6 +22,8 @@ __all__ = [
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
class DataBrowserConfigurationLiveView(BaseModel):
|
|
25
|
+
"""Configuration for live viewing the browser session."""
|
|
26
|
+
|
|
25
27
|
read_only: Optional[bool] = None
|
|
26
28
|
"""Enable or disable read-only mode for live viewing. Defaults to `false`."""
|
|
27
29
|
|
|
@@ -268,11 +270,15 @@ DataBrowserConfigurationProxy: TypeAlias = Union[
|
|
|
268
270
|
|
|
269
271
|
|
|
270
272
|
class DataBrowserConfigurationRecording(BaseModel):
|
|
273
|
+
"""Configuration for session recording."""
|
|
274
|
+
|
|
271
275
|
active: Optional[bool] = None
|
|
272
276
|
"""Enable or disable video recording of the browser session. Defaults to `true`."""
|
|
273
277
|
|
|
274
278
|
|
|
275
279
|
class DataBrowserConfigurationTimeout(BaseModel):
|
|
280
|
+
"""Timeout configurations for the browser session."""
|
|
281
|
+
|
|
276
282
|
idle_timeout: Optional[int] = None
|
|
277
283
|
"""
|
|
278
284
|
The amount of time (in minutes) the browser session waits for new connections
|
|
@@ -287,6 +293,8 @@ class DataBrowserConfigurationTimeout(BaseModel):
|
|
|
287
293
|
|
|
288
294
|
|
|
289
295
|
class DataBrowserConfiguration(BaseModel):
|
|
296
|
+
"""Browser configuration for task execution"""
|
|
297
|
+
|
|
290
298
|
initial_url: Optional[str] = None
|
|
291
299
|
"""The URL to navigate to when the browser session starts.
|
|
292
300
|
|
|
@@ -23,6 +23,8 @@ __all__ = [
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
class DataTaskBrowserConfigurationLiveView(BaseModel):
|
|
26
|
+
"""Configuration for live viewing the browser session."""
|
|
27
|
+
|
|
26
28
|
read_only: Optional[bool] = None
|
|
27
29
|
"""Enable or disable read-only mode for live viewing. Defaults to `false`."""
|
|
28
30
|
|
|
@@ -269,11 +271,15 @@ DataTaskBrowserConfigurationProxy: TypeAlias = Union[
|
|
|
269
271
|
|
|
270
272
|
|
|
271
273
|
class DataTaskBrowserConfigurationRecording(BaseModel):
|
|
274
|
+
"""Configuration for session recording."""
|
|
275
|
+
|
|
272
276
|
active: Optional[bool] = None
|
|
273
277
|
"""Enable or disable video recording of the browser session. Defaults to `true`."""
|
|
274
278
|
|
|
275
279
|
|
|
276
280
|
class DataTaskBrowserConfigurationTimeout(BaseModel):
|
|
281
|
+
"""Timeout configurations for the browser session."""
|
|
282
|
+
|
|
277
283
|
idle_timeout: Optional[int] = None
|
|
278
284
|
"""
|
|
279
285
|
The amount of time (in minutes) the browser session waits for new connections
|
|
@@ -288,6 +294,8 @@ class DataTaskBrowserConfigurationTimeout(BaseModel):
|
|
|
288
294
|
|
|
289
295
|
|
|
290
296
|
class DataTaskBrowserConfiguration(BaseModel):
|
|
297
|
+
"""Browser configuration for task execution"""
|
|
298
|
+
|
|
291
299
|
initial_url: Optional[str] = None
|
|
292
300
|
"""The URL to navigate to when the browser session starts.
|
|
293
301
|
|
|
@@ -39,6 +39,8 @@ class RunExecuteParams(TypedDict, total=False):
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
class OverrideBrowserConfigurationLiveView(TypedDict, total=False):
|
|
42
|
+
"""Configuration for live viewing the browser session."""
|
|
43
|
+
|
|
42
44
|
read_only: bool
|
|
43
45
|
"""Enable or disable read-only mode for live viewing. Defaults to `false`."""
|
|
44
46
|
|
|
@@ -283,11 +285,15 @@ OverrideBrowserConfigurationProxy: TypeAlias = Union[
|
|
|
283
285
|
|
|
284
286
|
|
|
285
287
|
class OverrideBrowserConfigurationRecording(TypedDict, total=False):
|
|
288
|
+
"""Configuration for session recording."""
|
|
289
|
+
|
|
286
290
|
active: bool
|
|
287
291
|
"""Enable or disable video recording of the browser session. Defaults to `true`."""
|
|
288
292
|
|
|
289
293
|
|
|
290
294
|
class OverrideBrowserConfigurationTimeout(TypedDict, total=False):
|
|
295
|
+
"""Timeout configurations for the browser session."""
|
|
296
|
+
|
|
291
297
|
idle_timeout: int
|
|
292
298
|
"""
|
|
293
299
|
The amount of time (in minutes) the browser session waits for new connections
|
|
@@ -302,6 +308,8 @@ class OverrideBrowserConfigurationTimeout(TypedDict, total=False):
|
|
|
302
308
|
|
|
303
309
|
|
|
304
310
|
class OverrideBrowserConfiguration(TypedDict, total=False):
|
|
311
|
+
"""Override browser configuration for this execution"""
|
|
312
|
+
|
|
305
313
|
initial_url: str
|
|
306
314
|
"""The URL to navigate to when the browser session starts.
|
|
307
315
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: anchorbrowser
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.13
|
|
4
4
|
Summary: The official Python library for the anchorbrowser API
|
|
5
5
|
Project-URL: Homepage, https://github.com/anchorbrowser/AnchorBrowser-SDK-Python
|
|
6
6
|
Project-URL: Repository, https://github.com/anchorbrowser/AnchorBrowser-SDK-Python
|
|
@@ -120,6 +120,7 @@ pip install anchorbrowser[aiohttp]
|
|
|
120
120
|
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
|
|
121
121
|
|
|
122
122
|
```python
|
|
123
|
+
import os
|
|
123
124
|
import asyncio
|
|
124
125
|
from anchorbrowser import DefaultAioHttpClient
|
|
125
126
|
from anchorbrowser import AsyncAnchorbrowser
|
|
@@ -127,7 +128,7 @@ from anchorbrowser import AsyncAnchorbrowser
|
|
|
127
128
|
|
|
128
129
|
async def main() -> None:
|
|
129
130
|
async with AsyncAnchorbrowser(
|
|
130
|
-
api_key="
|
|
131
|
+
api_key=os.environ.get("ANCHORBROWSER_API_KEY"), # This is the default and can be omitted
|
|
131
132
|
http_client=DefaultAioHttpClient(),
|
|
132
133
|
) as client:
|
|
133
134
|
session = await client.sessions.create(
|
|
@@ -10,8 +10,8 @@ anchorbrowser/_qs.py,sha256=craIKyvPktJ94cvf9zn8j8ekG9dWJzhWv0ob34lIOv4,4828
|
|
|
10
10
|
anchorbrowser/_resource.py,sha256=7lE1EgpVj5kwckk-27umtigTOf9nKTyRl97cgNwRbRQ,1142
|
|
11
11
|
anchorbrowser/_response.py,sha256=xsiyWOC8LWW-NvbFtZ-MJD4f7eI9RnivKwtKImZ-8o4,28860
|
|
12
12
|
anchorbrowser/_streaming.py,sha256=ey2jst1hntYHV6HDiCFfHhWr_dUCSG4dG-VUqQkmCQ4,10249
|
|
13
|
-
anchorbrowser/_types.py,sha256=
|
|
14
|
-
anchorbrowser/_version.py,sha256=
|
|
13
|
+
anchorbrowser/_types.py,sha256=nAsmJDL_VDIWprgQ9LdTLnW1NtUssCOAD8OKIqeaHQ8,7302
|
|
14
|
+
anchorbrowser/_version.py,sha256=VGF8vRdRUkArtxIHGBMPwI03jycobg6hcEX6ZIjBn8w,166
|
|
15
15
|
anchorbrowser/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
anchorbrowser/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
17
17
|
anchorbrowser/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
|
|
@@ -51,7 +51,7 @@ anchorbrowser/resources/sessions/recordings/primary.py,sha256=p739aM0tU6CUx2KAgb
|
|
|
51
51
|
anchorbrowser/resources/sessions/recordings/recordings.py,sha256=LtaT51hX5GWdl21ypu2SGKzEHJHfsjWhJkqAy_fjWGo,13746
|
|
52
52
|
anchorbrowser/resources/task/run.py,sha256=wgh4guYSaeysvEmbnxBZtrrZXTJGv62aiacXPqxM3MU,7919
|
|
53
53
|
anchorbrowser/types/__init__.py,sha256=mnuoFsN6OClbSkY0jpie8UQuq_ukz-XMlY6l_flVcHM,3620
|
|
54
|
-
anchorbrowser/types/batch_session_create_params.py,sha256=
|
|
54
|
+
anchorbrowser/types/batch_session_create_params.py,sha256=XeyFgTBqdW1cqsmN_wCtiC96cEpDH-XpLYK-t5SwwfM,12448
|
|
55
55
|
anchorbrowser/types/batch_session_create_response.py,sha256=K3EqFJzenfNDjzoTaWefPjuyULlxTMhdemBjKAd3_Dg,761
|
|
56
56
|
anchorbrowser/types/batch_session_retrieve_response.py,sha256=nCA22nuUPnmq2Ec-0ZzkZehNpMLCtLJa0aBPdaVAGDk,2800
|
|
57
57
|
anchorbrowser/types/event_signal_params.py,sha256=aEq0J4fq3YBGz3LLo2jtQH5GQUmfXj8Nuk-VFnnXRs8,372
|
|
@@ -67,7 +67,7 @@ anchorbrowser/types/profile_create_params.py,sha256=JU53ky-FAMbjHPFQzA70H63qrgvy
|
|
|
67
67
|
anchorbrowser/types/profile_list_response.py,sha256=8mDdiQ_YHaKeAzVbzw9D9XbFbyLL1MSBaJQN9dE1xeE,1041
|
|
68
68
|
anchorbrowser/types/profile_retrieve_response.py,sha256=OW5f6dcJfWUJUl1uKFQmwul5Uw4J5iyxP-f4vP19ufc,891
|
|
69
69
|
anchorbrowser/types/session_copy_response.py,sha256=S6SzIEYrjLATuBWk5xCuT3QhVqE1ztWr-5UomASXL7g,289
|
|
70
|
-
anchorbrowser/types/session_create_params.py,sha256=
|
|
70
|
+
anchorbrowser/types/session_create_params.py,sha256=cA1BDje6iDgL5We42vZil-9n5vexnFC9l027ZIv2qaM,11201
|
|
71
71
|
anchorbrowser/types/session_create_response.py,sha256=SKTtGQlEfLwfdQ9e8n5kETeYXHdwhnDPaXw6Myx584k,539
|
|
72
72
|
anchorbrowser/types/session_drag_and_drop_params.py,sha256=z3q4hyiRKkW7Vq8bo1Q1ryGS2FEzlfv5cw1p8qvXmcs,795
|
|
73
73
|
anchorbrowser/types/session_drag_and_drop_response.py,sha256=mxxEdrYAdbgR0khm8wPTYcZRXae5Xf1m35WAc1g9irU,270
|
|
@@ -82,11 +82,11 @@ anchorbrowser/types/session_scroll_params.py,sha256=lRVL0Gda1Xs5Xrqu6oj70gOFd8a_
|
|
|
82
82
|
anchorbrowser/types/session_scroll_response.py,sha256=FhBbUooF9AYNg-oX1HyHcNINcMGYt--hP47Hne4yxZE,260
|
|
83
83
|
anchorbrowser/types/session_upload_file_params.py,sha256=dRPj6LQSDNtp3TiU4IoQj16bLRmYmJyG1IQfckcOUfY,379
|
|
84
84
|
anchorbrowser/types/session_upload_file_response.py,sha256=00pC6pJOSJymJEZ6EISQJTMRfDax44RWi545h4-dSN4,368
|
|
85
|
-
anchorbrowser/types/task_create_params.py,sha256=
|
|
86
|
-
anchorbrowser/types/task_create_response.py,sha256=
|
|
85
|
+
anchorbrowser/types/task_create_params.py,sha256=3a55Cu-r8fslLooQEsFqcliJBl1_Z9q2Av-gfj8tMNo,6478
|
|
86
|
+
anchorbrowser/types/task_create_response.py,sha256=zYqfjOnibXTh7TvtPY5_aiXVXMCpK9N6WiO6cllt0Yc,8033
|
|
87
87
|
anchorbrowser/types/task_list_params.py,sha256=pu0gLGBp5UxKLpbEpSEz-J-kSRrY6VIvzjc-A0sOUFc,328
|
|
88
|
-
anchorbrowser/types/task_list_response.py,sha256=
|
|
89
|
-
anchorbrowser/types/task_run_params.py,sha256=
|
|
88
|
+
anchorbrowser/types/task_list_response.py,sha256=4hSdAkWJXqMErtqbsuHX4wBuEJywMkvREcSOAkqrr7U,8348
|
|
89
|
+
anchorbrowser/types/task_run_params.py,sha256=U-5fDfwftOkHNBbnMDkQTK0qWVpUT4EdEb8O7ug1u8U,6790
|
|
90
90
|
anchorbrowser/types/task_run_response.py,sha256=Vy33PwbYTneLeAe0rAi_K6nr4M4uwMg4fzgvf0bBe3w,830
|
|
91
91
|
anchorbrowser/types/tool_fetch_webpage_params.py,sha256=g_C7tLpyFx4I2r7-iizM7ZiQ71-VfowCj9aufaSHjmg,1181
|
|
92
92
|
anchorbrowser/types/tool_fetch_webpage_response.py,sha256=hdbrNgPz_LeWa3_aVbtck-n-SRvO4moFDbGoSf_2_tU,210
|
|
@@ -118,7 +118,7 @@ anchorbrowser/types/sessions/agent/file_upload_response.py,sha256=9DnqplfvEud89U
|
|
|
118
118
|
anchorbrowser/types/sessions/recordings/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
119
119
|
anchorbrowser/types/shared/__init__.py,sha256=FQKjY3VDxI8T0feNRazdY5TOqb2KDeEwZaoJjsxuEl4,152
|
|
120
120
|
anchorbrowser/types/shared/success_response.py,sha256=l9OWrucXoSjBdsx5QKdvBPFtxv8d0YdpYY6iL5cWWuc,314
|
|
121
|
-
anchorbrowser-0.3.
|
|
122
|
-
anchorbrowser-0.3.
|
|
123
|
-
anchorbrowser-0.3.
|
|
124
|
-
anchorbrowser-0.3.
|
|
121
|
+
anchorbrowser-0.3.13.dist-info/METADATA,sha256=InbsW2ZCocXuZfL5FZPMTvhprHSzaHJZLintlm9AnoE,15408
|
|
122
|
+
anchorbrowser-0.3.13.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
123
|
+
anchorbrowser-0.3.13.dist-info/licenses/LICENSE,sha256=QYTH6OztHxnELDn890vME8F7-euzmsHhWI4XOSYxwOg,11343
|
|
124
|
+
anchorbrowser-0.3.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|