parsagon 0.14.10__tar.gz → 0.14.12__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.
Files changed (38) hide show
  1. {parsagon-0.14.10 → parsagon-0.14.12}/PKG-INFO +1 -1
  2. {parsagon-0.14.10 → parsagon-0.14.12}/pyproject.toml +1 -1
  3. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/assistant.py +2 -2
  4. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/runs.py +5 -5
  5. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon.egg-info/PKG-INFO +1 -1
  6. {parsagon-0.14.10 → parsagon-0.14.12}/README.md +0 -0
  7. {parsagon-0.14.10 → parsagon-0.14.12}/setup.cfg +0 -0
  8. {parsagon-0.14.10 → parsagon-0.14.12}/src/__init__.py +0 -0
  9. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/__init__.py +0 -0
  10. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/api.py +0 -0
  11. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/create.py +0 -0
  12. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/custom_function.py +0 -0
  13. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/edit.py +0 -0
  14. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/exceptions.py +0 -0
  15. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/executor.py +0 -0
  16. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/gui/__init__.py +0 -0
  17. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/gui/controller.py +0 -0
  18. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/gui/menu.py +0 -0
  19. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/gui/window.py +0 -0
  20. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/gui_entry.py +0 -0
  21. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/highlights.js +0 -0
  22. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/main.py +0 -0
  23. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/print.py +0 -0
  24. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/secrets.py +0 -0
  25. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/settings.py +0 -0
  26. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/tests/__init__.py +0 -0
  27. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/tests/api_mocks.py +0 -0
  28. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/tests/conftest.py +0 -0
  29. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/tests/test_executor.py +0 -0
  30. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/tests/test_invalid_args.py +0 -0
  31. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/tests/test_pipeline_operations.py +0 -0
  32. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/tests/test_print.py +0 -0
  33. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon/tests/test_secrets.py +0 -0
  34. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon.egg-info/SOURCES.txt +0 -0
  35. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon.egg-info/dependency_links.txt +0 -0
  36. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon.egg-info/entry_points.txt +0 -0
  37. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon.egg-info/requires.txt +0 -0
  38. {parsagon-0.14.10 → parsagon-0.14.12}/src/parsagon.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: parsagon
3
- Version: 0.14.10
3
+ Version: 0.14.12
4
4
  Summary: Allows you to create browser automations with natural language
5
5
  Author-email: Sandy Suh <sandy@parsagon.io>
6
6
  Project-URL: Homepage, https://parsagon.io
@@ -16,7 +16,7 @@ line-length = 120
16
16
 
17
17
  [project]
18
18
  name = "parsagon"
19
- version = "0.14.10"
19
+ version = "0.14.12"
20
20
  description = "Allows you to create browser automations with natural language"
21
21
  readme = "README.md"
22
22
  requires-python = ">=3.8"
@@ -67,7 +67,7 @@ def assist(verbose=False):
67
67
 
68
68
  def get_page_html(url, headless=False, use_uc=False):
69
69
  browser_print(f"Checking what {url} looks like...")
70
- executor = Executor("")
70
+ executor = Executor("", headless=headless, use_uc=use_uc)
71
71
  executor.goto(url)
72
72
  html = executor.get_visible_html()
73
73
  executor.quit()
@@ -76,7 +76,7 @@ def get_page_html(url, headless=False, use_uc=False):
76
76
 
77
77
  def get_page_text(url, headless=False, use_uc=False):
78
78
  browser_print(f"Checking what {url} looks like...")
79
- executor = Executor("")
79
+ executor = Executor("", headless=headless, use_uc=use_uc)
80
80
  executor.goto(url)
81
81
  text = executor.driver.execute_script("return document.body.innerText;")
82
82
  executor.quit()
@@ -48,9 +48,9 @@ def run(
48
48
  with status("Program running remotely..."):
49
49
  while True:
50
50
  run = get_run(result["id"])
51
- status = run["status"]
51
+ run_status = run["status"]
52
52
 
53
- if output_log and status in ("FINISHED", "ERROR"):
53
+ if output_log and run_status in ("FINISHED", "ERROR"):
54
54
  result = {k: v for k, v in run.items() if k in ("output", "status", "log", "warnings", "error")}
55
55
  if output_file:
56
56
  with open(output_file, "w") as f:
@@ -59,7 +59,7 @@ def run(
59
59
  else:
60
60
  return result
61
61
 
62
- if status == "FINISHED":
62
+ if run_status == "FINISHED":
63
63
  if verbose:
64
64
  logger.info(run["log"])
65
65
  for warning in run["warnings"]:
@@ -72,9 +72,9 @@ def run(
72
72
  return
73
73
  else:
74
74
  return result
75
- elif status == "ERROR":
75
+ elif run_status == "ERROR":
76
76
  raise ParsagonException(f"Program failed to run: {run['error']}")
77
- elif status == "CANCELED":
77
+ elif run_status == "CANCELED":
78
78
  raise ParsagonException("Program execution was canceled")
79
79
 
80
80
  time.sleep(5)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: parsagon
3
- Version: 0.14.10
3
+ Version: 0.14.12
4
4
  Summary: Allows you to create browser automations with natural language
5
5
  Author-email: Sandy Suh <sandy@parsagon.io>
6
6
  Project-URL: Homepage, https://parsagon.io
File without changes
File without changes
File without changes