create-browser-app 0.1.5__tar.gz → 0.1.7__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.5 → create_browser_app-0.1.7}/PKG-INFO +1 -1
- {create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app/main.py +2 -1
- {create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app/templates.py +13 -4
- {create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app.egg-info/PKG-INFO +1 -1
- {create_browser_app-0.1.5 → create_browser_app-0.1.7}/pyproject.toml +1 -1
- {create_browser_app-0.1.5 → create_browser_app-0.1.7}/README.md +0 -0
- {create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app/__init__.py +0 -0
- {create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app/template_fetcher.py +0 -0
- {create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app.egg-info/SOURCES.txt +0 -0
- {create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app.egg-info/dependency_links.txt +0 -0
- {create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app.egg-info/entry_points.txt +0 -0
- {create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app.egg-info/requires.txt +0 -0
- {create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app.egg-info/top_level.txt +0 -0
- {create_browser_app-0.1.5 → create_browser_app-0.1.7}/setup.cfg +0 -0
|
@@ -99,7 +99,8 @@ def main(name, template):
|
|
|
99
99
|
f"[bold cyan]1.[/bold cyan] cd {project_dir}\n"
|
|
100
100
|
f"[bold cyan]2.[/bold cyan] cp .env.example .env\n"
|
|
101
101
|
f"[bold cyan]3.[/bold cyan] [dim]Add your Browserbase API key to .env[/dim]\n"
|
|
102
|
-
f"[bold cyan]4.[/bold cyan]
|
|
102
|
+
f"[bold cyan]4.[/bold cyan] pip install -r requirements.txt\n"
|
|
103
|
+
f"[bold cyan]5.[/bold cyan] python main.py",
|
|
103
104
|
title="[bold yellow]🚀 Launch now 🚀[/bold yellow]",
|
|
104
105
|
border_style="yellow",
|
|
105
106
|
padding=(1, 2)
|
|
@@ -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}
|
|
File without changes
|
|
File without changes
|
{create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app/template_fetcher.py
RENAMED
|
File without changes
|
{create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app.egg-info/requires.txt
RENAMED
|
File without changes
|
{create_browser_app-0.1.5 → create_browser_app-0.1.7}/create_browser_app.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|