-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpyproject.toml
More file actions
98 lines (90 loc) · 2.47 KB
/
pyproject.toml
File metadata and controls
98 lines (90 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[project]
name = "openbrowser-ai"
dynamic = ["version"]
description = "Agentic browser automation using LangGraph and raw CDP"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
# Core browser automation
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"python-dotenv",
"httpx>=0.28.1",
"websockets>=15.0.1",
"aiofiles",
"cdp-use",
"bubus>=1.5.6",
"psutil>=7.2.0",
"click>=8.1.8",
"pillow>=11.0.0",
"InquirerPy>=0.3.4",
# MCP protocol
"mcp>=1.0.0",
# Telemetry
"posthog>=3.7.0",
]
[project.optional-dependencies]
agent = [
"langgraph",
"langchain-core>=0.3.0",
"langchain-openai>=0.2.0",
"google-genai>=0.2.0",
"litellm==1.80.0",
"openai>=1.99.5,<2.0.0",
"pyotp",
"rich>=13.0.0",
"markdownify>=0.11.6",
"numpy>=2.4.0",
"pandas>=2.2.0",
"boto3>=1.36.0",
"reportlab",
]
video = ["imageio[ffmpeg]", "numpy"]
anthropic = ["anthropic>=0.68.0"]
groq = ["groq>=0.30.0"]
ollama = ["ollama>=0.5.1"]
aws = ["boto3"]
azure = ["openai"]
mcp = ["mcp>=1.0.0", "posthog>=3.7.0"]
telemetry = ["posthog>=3.7.0"]
pdf = ["pypdf", "reportlab"]
dev = [
"pytest>=9.0.2",
"pytest-asyncio>=1.0.0",
"pytest-cov>=6.0.0",
"pytest-timeout>=2.4.0",
"mcp>=1.0.0",
]
all = [
"openbrowser-ai[agent,video,anthropic,groq,ollama,aws,azure,pdf]",
]
[project.scripts]
openbrowser-ai = "openbrowser.cli:main"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
packages = ["src/openbrowser"]
# Force include non-Python files (markdown system prompts) in the wheel
# These are required for the agent to load system prompts at runtime
[tool.hatch.build.targets.wheel.force-include]
"src/openbrowser/agent/system_prompt.md" = "openbrowser/agent/system_prompt.md"
"src/openbrowser/agent/system_prompt_flash.md" = "openbrowser/agent/system_prompt_flash.md"
"src/openbrowser/agent/system_prompt_no_thinking.md" = "openbrowser/agent/system_prompt_no_thinking.md"
"src/openbrowser/code_use/system_prompt.md" = "openbrowser/code_use/system_prompt.md"
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
asyncio_default_test_loop_scope = "function"
markers = [
"asyncio: mark tests as async tests",
"integration: integration tests requiring a real browser",
]
[dependency-groups]
dev = [
"pytest-timeout>=2.4.0",
]