Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
.gitignore
.vscode/

src/browser_use/client.py
src/browser_use/lib/
src/browser_use/wrapper/
src/browser_use_sdk/client.py
src/browser_use_sdk/lib/
src/browser_use_sdk/wrapper/
examples/
assets/

Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,3 @@ jobs:

- name: Test
run: poetry run pytest -rP .

publish:
needs: [compile, test]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
- name: Install dependencies
run: poetry install
- name: Publish to pypi
run: |
poetry config repositories.remote https://upload.pypi.org/legacy/
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ The BrowserUse Python library provides convenient access to the BrowserUse APIs
1. 🦄 Automate the Internet!

```python
from browser_use_sdk import BrowserUseClient
from browser_use_sdk import BrowserUse

client = BrowserUseClient(api_key="bu_...")
client = BrowserUse(api_key="bu_...")

task = client.tasks.create_task(
task="Search for the top 10 Hacker News posts and return the title and url."
llm="gpt-4.1",
task="Search for the top 10 Hacker News posts and return the title and url.",
llm="gpt-4.1"
)

result = task.complete()
Expand All @@ -48,6 +48,10 @@ The BrowserUse Python library provides convenient access to the BrowserUse APIs
Browser Use Python SDK provides first class support for Pydantic models.

```py
from browser_use_sdk import AsyncBrowserUse

client = AsyncBrowserUse(api_key=API_KEY)

class HackerNewsPost(BaseModel):
title: str
url: str
Expand Down
2 changes: 1 addition & 1 deletion examples/async_retrieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from api import API_KEY
from pydantic import BaseModel

from browser_use import AsyncBrowserUse
from browser_use_sdk import AsyncBrowserUse

client = AsyncBrowserUse(api_key=API_KEY)

Expand Down
2 changes: 1 addition & 1 deletion examples/async_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from api import API_KEY
from pydantic import BaseModel

from browser_use import AsyncBrowserUse
from browser_use_sdk import AsyncBrowserUse

client = AsyncBrowserUse(api_key=API_KEY)

Expand Down
2 changes: 1 addition & 1 deletion examples/async_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from api import API_KEY
from pydantic import BaseModel

from browser_use import AsyncBrowserUse
from browser_use_sdk import AsyncBrowserUse

client = AsyncBrowserUse(api_key=API_KEY)

Expand Down
2 changes: 1 addition & 1 deletion examples/async_watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from api import API_KEY
from pydantic import BaseModel

from browser_use import AsyncBrowserUse
from browser_use_sdk import AsyncBrowserUse

client = AsyncBrowserUse(api_key=API_KEY)

Expand Down
2 changes: 1 addition & 1 deletion examples/retrieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from api import API_KEY
from pydantic import BaseModel

from browser_use import BrowserUse
from browser_use_sdk import BrowserUse

client = BrowserUse(api_key=API_KEY)

Expand Down
2 changes: 1 addition & 1 deletion examples/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from api import API_KEY
from pydantic import BaseModel

from browser_use import BrowserUse
from browser_use_sdk import BrowserUse

client = BrowserUse(api_key=API_KEY)

Expand Down
2 changes: 1 addition & 1 deletion examples/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from api import API_KEY
from pydantic import BaseModel

from browser_use import BrowserUse
from browser_use_sdk import BrowserUse

client = BrowserUse(api_key=API_KEY)

Expand Down
2 changes: 1 addition & 1 deletion examples/watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from api import API_KEY
from pydantic import BaseModel

from browser_use import BrowserUse
from browser_use_sdk import BrowserUse

client = BrowserUse(api_key=API_KEY)

Expand Down
2 changes: 1 addition & 1 deletion examples/webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from datetime import datetime
from typing import Any, Dict, Tuple

from browser_use.lib.webhooks import (
from browser_use_sdk.lib.webhooks import (
Webhook,
WebhookAgentTaskStatusUpdate,
WebhookAgentTaskStatusUpdatePayload,
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[project]
name = "browser-use-sdk"
name = "browser-use"

[tool.poetry]
name = "browser-use-sdk"
version = "2.0.1"
name = "browser-use"
version = "0.0.0"
description = ""
readme = "README.md"
authors = []
Expand All @@ -27,7 +27,7 @@ classifiers = [
"Typing :: Typed"
]
packages = [
{ include = "browser_use", from = "src"}
{ include = "browser_use_sdk", from = "src"}
]

[project.urls]
Expand Down
Loading