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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: create-browser-app
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Summary: Start your Stagehand project with a single command
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -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] python main.py",
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("\n", result, "\n")
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("\n", elements, "\n")
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("\n", extraction, "\n")
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}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: create-browser-app
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Summary: Start your Stagehand project with a single command
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "create-browser-app"
7
- version = "0.1.5"
7
+ version = "0.1.7"
8
8
  description = "Start your Stagehand project with a single command"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"