Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

pypi release files

Gregor Žunič00f2c3de0c4c
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
new file mode 100644
index 000000000..548b389d7
--- /dev/null
+++ b/.github/workflows/publish.yml
@@ -0,0 +1,38 @@
+# This workflow will upload a Python Package using Twine when a release is created
+# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
+
+# This workflow uses actions that are not certified by GitHub.
+# They are provided by a third-party and are governed by
+# separate terms of service, privacy policy, and support
+# documentation.
+
+name: Upload Python Package
+
+on:
+ release:
+ types: [published]
+
+permissions:
+ contents: read
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up Python
+ uses: actions/setup-python@v3
+ with:
+ python-version: "3.x"
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install build hatch
+ - name: Build package
+ run: python -m build
+ - name: Publish package
+ uses: pypa/gh-action-pypi-publish@release/v1
+ with:
+ user: __token__
+ password: ${{ secrets.PYPI_API_TOKEN }}
diff --git a/README.md b/README.md
index 73e5a4092..e2c06d0bd 100644
--- a/README.md
+++ b/README.md
@@ -61,7 +61,7 @@ await agent.run()
```bash
# I recommend using uv
-pip install -r requirements.txt
+pip install .
```
2. Add your API keys to the `.env` file:
diff --git a/instruction.md b/instruction.md
deleted file mode 100644
index f1da7d7e4..000000000
--- a/instruction.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Product Requirements Document (PRD)
-
----
-
-## **1. Project Overview**
-
-**Project Name**: Web-use
-
-**Objective**: Develop a foundational layer that enables agents (specifically Large Language Models - LLMs) to interact with the web via a set of predefined browser actions. This layer allows developers to build higher-level planning agents capable of automating complex tasks, such as applying for jobs, data scraping, form filling, etc.
diff --git a/pyproject.toml b/pyproject.toml
index cdc95188e..06948b131 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,11 +1,34 @@
[project]
name = "browser-use"
+description = "Let LLMs interact with websites through a simple interface"
+authors = [
+ { name = "Gregor Zunic" }
+]
version = "0.1.0"
-description = "Open-Source Web Automation with LLMs"
readme = "README.md"
requires-python = ">=3.11"
+classifiers = [
+ "Programming Language :: Python :: 3",
+ "License :: OSI Approved :: MIT License",
+ "Operating System :: OS Independent",
+]
-dependencies = []
+dependencies = [
+ "MainContentExtractor>=0.0.4",
+ "Selenium-Screenshot>=2.1.0",
+ "beautifulsoup4>=4.12.3",
+ "langchain>=0.3.7",
+ "langchain-openai>=0.2.5",
+ "langchain-anthropic>=0.2.4",
+ "langchain-fireworks>=0.2.5",
+ "pydantic>=2.9.2",
+ "pytest>=8.3.3",
+ "pytest-asyncio>=0.24.0",
+ "python-dotenv>=1.0.1",
+ "requests>=2.32.3",
+ "selenium>=4.26.1",
+ "webdriver-manager>=4.0.2"
+]
[tool.ruff]
line-length = 100
@@ -14,3 +37,7 @@ line-length = 100
quote-style = "single"
indent-style = "tab"
docstring-code-format = true
+
+[build-system]
+requires = ["hatchling"]
+build-backend = "hatchling.build"
\ No newline at end of file
diff --git a/requirements.txt b/requirements.txt
index 7aa76e2f5..74d878466 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,14 +1,14 @@
-MainContentExtractor==0.0.4
-Selenium-Screenshot==2.1.0
-beautifulsoup4==4.12.3
-langchain==0.3.7
-langchain-openai==0.2.5
-langchain-anthropic==0.2.4
-langchain-fireworks==0.2.5
-pydantic==2.9.2
-pytest==8.3.3
-pytest-asyncio==0.24.0
-python-dotenv==1.0.1
-requests==2.32.3
-selenium==4.26.1
-webdriver-manager==4.0.2
\ No newline at end of file
+MainContentExtractor>=0.0.4
+Selenium-Screenshot>=2.1.0
+beautifulsoup4>=4.12.3
+langchain>=0.3.7
+langchain-openai>=0.2.5
+langchain-anthropic>=0.2.4
+langchain-fireworks>=0.2.5
+pydantic>=2.9.2
+pytest>=8.3.3
+pytest-asyncio>=0.24.0
+python-dotenv>=1.0.1
+requests>=2.32.3
+selenium>=4.26.1
+webdriver-manager>=4.0.2
\ No newline at end of file
diff --git a/setup.py b/setup.py
deleted file mode 100644
index 70f5f2b60..000000000
--- a/setup.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from setuptools import setup, find_packages
-
-setup(name='browser_use', packages=find_packages(), package_dir={'browser_use': 'src'})