create-browser-app 0.1.4__tar.gz → 0.1.6__tar.gz
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.
- {create_browser_app-0.1.4 → create_browser_app-0.1.6}/PKG-INFO +1 -1
- {create_browser_app-0.1.4 → create_browser_app-0.1.6}/create_browser_app/templates.py +13 -4
- {create_browser_app-0.1.4 → create_browser_app-0.1.6}/create_browser_app.egg-info/PKG-INFO +1 -1
- {create_browser_app-0.1.4 → create_browser_app-0.1.6}/create_browser_app.egg-info/top_level.txt +0 -1
- {create_browser_app-0.1.4 → create_browser_app-0.1.6}/pyproject.toml +6 -3
- {create_browser_app-0.1.4 → create_browser_app-0.1.6}/README.md +0 -0
- {create_browser_app-0.1.4 → create_browser_app-0.1.6}/create_browser_app/__init__.py +0 -0
- {create_browser_app-0.1.4 → create_browser_app-0.1.6}/create_browser_app/main.py +0 -0
- {create_browser_app-0.1.4 → create_browser_app-0.1.6}/create_browser_app/template_fetcher.py +0 -0
- {create_browser_app-0.1.4 → create_browser_app-0.1.6}/create_browser_app.egg-info/SOURCES.txt +0 -0
- {create_browser_app-0.1.4 → create_browser_app-0.1.6}/create_browser_app.egg-info/dependency_links.txt +0 -0
- {create_browser_app-0.1.4 → create_browser_app-0.1.6}/create_browser_app.egg-info/entry_points.txt +0 -0
- {create_browser_app-0.1.4 → create_browser_app-0.1.6}/create_browser_app.egg-info/requires.txt +0 -0
- {create_browser_app-0.1.4 → create_browser_app-0.1.6}/setup.cfg +0 -0
|
@@ -20,7 +20,9 @@ async def main():
|
|
|
20
20
|
page = stagehand.page
|
|
21
21
|
await page.goto("https://docs.stagehand.dev")
|
|
22
22
|
result = await page.extract("In a few words, what is Stagehand?")
|
|
23
|
-
print(
|
|
23
|
+
print()
|
|
24
|
+
print(result)
|
|
25
|
+
print()
|
|
24
26
|
|
|
25
27
|
await page.act("click on models")
|
|
26
28
|
await page.act({
|
|
@@ -30,7 +32,9 @@ async def main():
|
|
|
30
32
|
"args": []
|
|
31
33
|
})
|
|
32
34
|
elements = await page.observe("find the graph with the list of most accurate models")
|
|
33
|
-
print(
|
|
35
|
+
print()
|
|
36
|
+
print(elements)
|
|
37
|
+
print()
|
|
34
38
|
|
|
35
39
|
class Model(BaseModel):
|
|
36
40
|
name: str
|
|
@@ -41,8 +45,9 @@ async def main():
|
|
|
41
45
|
"the most accurate model",
|
|
42
46
|
schema=Model
|
|
43
47
|
)
|
|
44
|
-
print(
|
|
45
|
-
|
|
48
|
+
print()
|
|
49
|
+
print(extraction)
|
|
50
|
+
print()
|
|
46
51
|
if __name__ == "__main__":
|
|
47
52
|
asyncio.run(main())
|
|
48
53
|
|
|
@@ -55,6 +60,10 @@ python-dotenv
|
|
|
55
60
|
TEMPLATE_ENV = '''# Add your environment variables here
|
|
56
61
|
# BROWSERBASE_API_KEY=your_api_key_here
|
|
57
62
|
# BROWSERBASE_PROJECT_ID=your_project_id_here
|
|
63
|
+
# Add your LLM key
|
|
64
|
+
# OPENAI_API_KEY=your_api_key_here
|
|
65
|
+
# ANTHROPIC=your_api_key_here
|
|
66
|
+
# GOOGLE_API_KEY=your_api_key_here
|
|
58
67
|
'''
|
|
59
68
|
|
|
60
69
|
TEMPLATE_README = '''# {project_name}
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "create-browser-app"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.6"
|
|
8
8
|
description = "Start your Stagehand project with a single command"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -19,5 +19,8 @@ dependencies = [
|
|
|
19
19
|
[project.scripts]
|
|
20
20
|
create-browser-app = "create_browser_app.main:main"
|
|
21
21
|
|
|
22
|
-
[tool.setuptools
|
|
23
|
-
|
|
22
|
+
[tool.setuptools]
|
|
23
|
+
packages = ["create_browser_app"]
|
|
24
|
+
|
|
25
|
+
[tool.setuptools.package-data]
|
|
26
|
+
create_browser_app = ["*.py"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{create_browser_app-0.1.4 → create_browser_app-0.1.6}/create_browser_app/template_fetcher.py
RENAMED
|
File without changes
|
{create_browser_app-0.1.4 → create_browser_app-0.1.6}/create_browser_app.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{create_browser_app-0.1.4 → create_browser_app-0.1.6}/create_browser_app.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{create_browser_app-0.1.4 → create_browser_app-0.1.6}/create_browser_app.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|