Skip to content

Commit 2bcffcd

Browse files
committed
SDK regeneration
1 parent 8fb83e2 commit 2bcffcd

File tree

10 files changed

+147
-156
lines changed

10 files changed

+147
-156
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ The SDK provides access to raw response data, including headers, through the `.w
205205
The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
206206

207207
```python
208-
from browser_use import BrowserUseClient
208+
from browser_use import BrowserUse
209209

210-
client = BrowserUseClient(
210+
client = BrowserUse(
211211
...,
212212
)
213213
response = client.tasks.with_raw_response.create_task(...)
@@ -241,9 +241,9 @@ The SDK defaults to a 60 second timeout. You can configure this with a timeout o
241241

242242
```python
243243

244-
from browser_use import BrowserUseClient
244+
from browser_use import BrowserUse
245245

246-
client = BrowserUseClient(
246+
client = BrowserUse(
247247
...,
248248
timeout=20.0,
249249
)
@@ -262,9 +262,9 @@ and transports.
262262

263263
```python
264264
import httpx
265-
from browser_use import BrowserUseClient
265+
from browser_use import BrowserUse
266266

267-
client = BrowserUseClient(
267+
client = BrowserUse(
268268
...,
269269
httpx_client=httpx.Client(
270270
proxies="http://my.test.proxy.example.com",
@@ -483,9 +483,9 @@ A full reference for this library is available [here](https://github.com/browser
483483
Instantiate and use the client with the following:
484484

485485
```python
486-
from browser_use import BrowserUseClient
486+
from browser_use import BrowserUse
487487

488-
client = BrowserUseClient(
488+
client = BrowserUse(
489489
api_key="YOUR_API_KEY",
490490
)
491491
client.tasks.create_task(
@@ -500,9 +500,9 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
500500
```python
501501
import asyncio
502502

503-
from browser_use import AsyncBrowserUseClient
503+
from browser_use import AsyncBrowserUse
504504

505-
client = AsyncBrowserUseClient(
505+
client = AsyncBrowserUse(
506506
api_key="YOUR_API_KEY",
507507
)
508508

reference.md

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ Get authenticated account information including credit balances and account deta
2727
<dd>
2828

2929
```python
30-
from browser_use import BrowserUseClient
30+
from browser_use import BrowserUse
3131

32-
client = BrowserUseClient(
32+
client = BrowserUse(
3333
api_key="YOUR_API_KEY",
3434
)
3535
client.accounts.get_account_me()
@@ -88,9 +88,9 @@ Get paginated list of AI agent tasks with optional filtering by session and stat
8888
<dd>
8989

9090
```python
91-
from browser_use import BrowserUseClient
91+
from browser_use import BrowserUse
9292

93-
client = BrowserUseClient(
93+
client = BrowserUse(
9494
api_key="YOUR_API_KEY",
9595
)
9696
client.tasks.list_tasks()
@@ -198,9 +198,9 @@ You can either:
198198
<dd>
199199

200200
```python
201-
from browser_use import BrowserUseClient
201+
from browser_use import BrowserUse
202202

203-
client = BrowserUseClient(
203+
client = BrowserUse(
204204
api_key="YOUR_API_KEY",
205205
)
206206
client.tasks.create_task(
@@ -372,9 +372,9 @@ Get detailed task information including status, progress, steps, and file output
372372
<dd>
373373

374374
```python
375-
from browser_use import BrowserUseClient
375+
from browser_use import BrowserUse
376376

377-
client = BrowserUseClient(
377+
client = BrowserUse(
378378
api_key="YOUR_API_KEY",
379379
)
380380
client.tasks.get_task(
@@ -442,9 +442,9 @@ Control task execution with stop, pause, resume, or stop task and session action
442442
<dd>
443443

444444
```python
445-
from browser_use import BrowserUseClient
445+
from browser_use import BrowserUse
446446

447-
client = BrowserUseClient(
447+
client = BrowserUse(
448448
api_key="YOUR_API_KEY",
449449
)
450450
client.tasks.update_task(
@@ -521,9 +521,9 @@ Get secure download URL for task execution logs with step-by-step details.
521521
<dd>
522522

523523
```python
524-
from browser_use import BrowserUseClient
524+
from browser_use import BrowserUse
525525

526-
client = BrowserUseClient(
526+
client = BrowserUse(
527527
api_key="YOUR_API_KEY",
528528
)
529529
client.tasks.get_task_logs(
@@ -592,9 +592,9 @@ Get paginated list of AI agent sessions with optional status filtering.
592592
<dd>
593593

594594
```python
595-
from browser_use import BrowserUseClient
595+
from browser_use import BrowserUse
596596

597-
client = BrowserUseClient(
597+
client = BrowserUse(
598598
api_key="YOUR_API_KEY",
599599
)
600600
client.sessions.list_sessions()
@@ -676,9 +676,9 @@ Create a new session with a new task.
676676
<dd>
677677

678678
```python
679-
from browser_use import BrowserUseClient
679+
from browser_use import BrowserUse
680680

681-
client = BrowserUseClient(
681+
client = BrowserUse(
682682
api_key="YOUR_API_KEY",
683683
)
684684
client.sessions.create_session()
@@ -752,9 +752,9 @@ Get detailed session information including status, URLs, and task details.
752752
<dd>
753753

754754
```python
755-
from browser_use import BrowserUseClient
755+
from browser_use import BrowserUse
756756

757-
client = BrowserUseClient(
757+
client = BrowserUse(
758758
api_key="YOUR_API_KEY",
759759
)
760760
client.sessions.get_session(
@@ -822,9 +822,9 @@ Permanently delete a session and all associated data.
822822
<dd>
823823

824824
```python
825-
from browser_use import BrowserUseClient
825+
from browser_use import BrowserUse
826826

827-
client = BrowserUseClient(
827+
client = BrowserUse(
828828
api_key="YOUR_API_KEY",
829829
)
830830
client.sessions.delete_session(
@@ -892,9 +892,9 @@ Stop a session and all its running tasks.
892892
<dd>
893893

894894
```python
895-
from browser_use import BrowserUseClient
895+
from browser_use import BrowserUse
896896

897-
client = BrowserUseClient(
897+
client = BrowserUse(
898898
api_key="YOUR_API_KEY",
899899
)
900900
client.sessions.update_session(
@@ -962,9 +962,9 @@ Get public share information including URL and usage statistics.
962962
<dd>
963963

964964
```python
965-
from browser_use import BrowserUseClient
965+
from browser_use import BrowserUse
966966

967-
client = BrowserUseClient(
967+
client = BrowserUse(
968968
api_key="YOUR_API_KEY",
969969
)
970970
client.sessions.get_session_public_share(
@@ -1032,9 +1032,9 @@ Create or return existing public share for a session.
10321032
<dd>
10331033

10341034
```python
1035-
from browser_use import BrowserUseClient
1035+
from browser_use import BrowserUse
10361036

1037-
client = BrowserUseClient(
1037+
client = BrowserUse(
10381038
api_key="YOUR_API_KEY",
10391039
)
10401040
client.sessions.create_session_public_share(
@@ -1102,9 +1102,9 @@ Remove public share for a session.
11021102
<dd>
11031103

11041104
```python
1105-
from browser_use import BrowserUseClient
1105+
from browser_use import BrowserUse
11061106

1107-
client = BrowserUseClient(
1107+
client = BrowserUse(
11081108
api_key="YOUR_API_KEY",
11091109
)
11101110
client.sessions.delete_session_public_share(
@@ -1173,9 +1173,9 @@ Generate a secure presigned URL for uploading files that AI agents can use durin
11731173
<dd>
11741174

11751175
```python
1176-
from browser_use import BrowserUseClient
1176+
from browser_use import BrowserUse
11771177

1178-
client = BrowserUseClient(
1178+
client = BrowserUse(
11791179
api_key="YOUR_API_KEY",
11801180
)
11811181
client.files.user_upload_file_presigned_url(
@@ -1270,9 +1270,9 @@ Get secure download URL for an output file generated by the AI agent.
12701270
<dd>
12711271

12721272
```python
1273-
from browser_use import BrowserUseClient
1273+
from browser_use import BrowserUse
12741274

1275-
client = BrowserUseClient(
1275+
client = BrowserUse(
12761276
api_key="YOUR_API_KEY",
12771277
)
12781278
client.files.get_task_output_file_presigned_url(
@@ -1350,9 +1350,9 @@ Get paginated list of profiles.
13501350
<dd>
13511351

13521352
```python
1353-
from browser_use import BrowserUseClient
1353+
from browser_use import BrowserUse
13541354

1355-
client = BrowserUseClient(
1355+
client = BrowserUse(
13561356
api_key="YOUR_API_KEY",
13571357
)
13581358
client.profiles.list_profiles()
@@ -1431,9 +1431,9 @@ You can create a new profile by calling this endpoint.
14311431
<dd>
14321432

14331433
```python
1434-
from browser_use import BrowserUseClient
1434+
from browser_use import BrowserUse
14351435

1436-
client = BrowserUseClient(
1436+
client = BrowserUse(
14371437
api_key="YOUR_API_KEY",
14381438
)
14391439
client.profiles.create_profile()
@@ -1491,9 +1491,9 @@ Get profile details.
14911491
<dd>
14921492

14931493
```python
1494-
from browser_use import BrowserUseClient
1494+
from browser_use import BrowserUse
14951495

1496-
client = BrowserUseClient(
1496+
client = BrowserUse(
14971497
api_key="YOUR_API_KEY",
14981498
)
14991499
client.profiles.get_profile(
@@ -1561,9 +1561,9 @@ Permanently delete a browser profile and its configuration.
15611561
<dd>
15621562

15631563
```python
1564-
from browser_use import BrowserUseClient
1564+
from browser_use import BrowserUse
15651565

1566-
client = BrowserUseClient(
1566+
client = BrowserUse(
15671567
api_key="YOUR_API_KEY",
15681568
)
15691569
client.profiles.delete_browser_profile(

src/browser_use/__init__.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,7 @@
33
# isort: skip_file
44

55
from . import accounts, files, profiles, sessions, tasks
6-
from .client import AsyncBrowserUseClient, BrowserUseClient
6+
from .client import AsyncBrowserUse, BrowserUse
77
from .version import __version__
88

9-
__all__ = [
10-
"AsyncBrowserUseClient",
11-
"BrowserUseClient",
12-
"__version__",
13-
"accounts",
14-
"files",
15-
"profiles",
16-
"sessions",
17-
"tasks",
18-
]
9+
__all__ = ["AsyncBrowserUse", "BrowserUse", "__version__", "accounts", "files", "profiles", "sessions", "tasks"]

src/browser_use/accounts/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ def get_account_me(self, *, request_options: typing.Optional[RequestOptions] = N
3939
4040
Examples
4141
--------
42-
from browser_use import BrowserUseClient
42+
from browser_use import BrowserUse
4343
44-
client = BrowserUseClient(
44+
client = BrowserUse(
4545
api_key="YOUR_API_KEY",
4646
)
4747
client.accounts.get_account_me()
@@ -83,9 +83,9 @@ async def get_account_me(self, *, request_options: typing.Optional[RequestOption
8383
--------
8484
import asyncio
8585
86-
from browser_use import AsyncBrowserUseClient
86+
from browser_use import AsyncBrowserUse
8787
88-
client = AsyncBrowserUseClient(
88+
client = AsyncBrowserUse(
8989
api_key="YOUR_API_KEY",
9090
)
9191

0 commit comments

Comments
 (0)