parsagon 0.14.35__py3-none-any.whl → 0.14.37__py3-none-any.whl

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.
parsagon/create.py CHANGED
@@ -44,7 +44,7 @@ def create_program(task, headless=False, undetected=False, program_name=None, as
44
44
 
45
45
  # Execute the abridged program to gather examples
46
46
  executor = Executor(task, headless=headless, infer=infer, use_uc=undetected)
47
- executor.execute(abridged_program)
47
+ example_output = executor.execute(abridged_program)
48
48
 
49
49
  # The user must select a name
50
50
  while True:
@@ -83,4 +83,5 @@ def create_program(task, headless=False, undetected=False, program_name=None, as
83
83
  "success": True,
84
84
  "outcome": f"Program successfully saved with name {program_name}",
85
85
  "program_name": program_name,
86
+ "example_output": example_output,
86
87
  }
parsagon/executor.py CHANGED
@@ -693,6 +693,7 @@ class Executor:
693
693
  try:
694
694
  exec(code, self.execution_context, loc)
695
695
  browser_print(f"Program finished and returned a value of:\n{loc['output']}\n")
696
+ return loc["output"]
696
697
  finally:
697
698
  self.quit()
698
699
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: parsagon
3
- Version: 0.14.35
3
+ Version: 0.14.37
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
@@ -23,6 +23,7 @@ Requires-Dist: simplejson==3.19.1
23
23
  Requires-Dist: pypdf==4.2.0
24
24
  Requires-Dist: python-dateutil==2.9.0.post0
25
25
  Requires-Dist: html2text==2024.2.26
26
+ Requires-Dist: feedparser==6.0.11
26
27
  Provides-Extra: dev
27
28
  Requires-Dist: pytest==7.3.2; extra == "dev"
28
29
  Requires-Dist: pytest-mock==3.11.1; extra == "dev"
@@ -1,11 +1,11 @@
1
1
  parsagon/__init__.py,sha256=_S5MlYHBViB4iY96_UbGo3mfGndE8MmFmb1EORJppK8,452
2
2
  parsagon/api.py,sha256=UuHPK1HsKF0pvqUeBGlv2tDHHK5-i0PP9Di3bolcr2g,10383
3
3
  parsagon/assistant.py,sha256=V3NL6UdDqe74W_X3wPQ1qwFuJRvHzitXtOt-XSCXvds,4065
4
- parsagon/create.py,sha256=igrJN8jVP5p3P9-dPSabrHGOQOlG2Flx7ep4SqEDB14,4373
4
+ parsagon/create.py,sha256=BERrBviwMvifg5OwApqdanvULJHHk39fIvnTCZN3Xkk,4432
5
5
  parsagon/custom_function.py,sha256=oEj28qItaHUnsvLIHD7kg5QL3J3aO6rW6xKKP-H-Drs,770
6
6
  parsagon/edit.py,sha256=5gtnx0gNB7Gvz8ET00SczE-ZS0TomN1um6uObP-OObE,3120
7
7
  parsagon/exceptions.py,sha256=tG1vnpmUN1GdJ1GSpe1MaWH3zWmFLZCwtOfEGu8qPP0,910
8
- parsagon/executor.py,sha256=5rDPomE_iC8OZP9NBrq39MCO7vQqUE1uf1H7repjS1I,28399
8
+ parsagon/executor.py,sha256=kBSfLqQ7LO2Ap_A7e0r5CDWAkv9I-qrHF1FFDINKL6s,28432
9
9
  parsagon/gui_entry.py,sha256=bqG9K0CArXWWwDGoT8aV17YLNM8MfjSf6SJ_B3QbNeA,671
10
10
  parsagon/highlights.js,sha256=2UDfUApblU9xtGgTLCq4X7rHRV0wcqDSSFZPmJS6fJg,16643
11
11
  parsagon/main.py,sha256=WPxrT1ZyPe6wNSFP7GnnKIGisgPM2dFieHP2TC5TGVQ,9467
@@ -25,8 +25,8 @@ parsagon/tests/test_invalid_args.py,sha256=TAFdHGy92lUxjljPrtODOuEGVss6rn-F5GvEK
25
25
  parsagon/tests/test_pipeline_operations.py,sha256=aEwZNtIwOl9X7jdLDLB4YEdgMp7_x8PXCINAE7RT4NY,805
26
26
  parsagon/tests/test_print.py,sha256=BG7f55YDBoL0S7k291-so_Gje_hUAQOkB-jh-bEYsJY,198
27
27
  parsagon/tests/test_secrets.py,sha256=Ctsscl2tmMTZcFAy5dnyqUlgTov2UharZgLpbRCLdEg,2662
28
- parsagon-0.14.35.dist-info/METADATA,sha256=cEDoSbH8qv3Xbt14NQkWlSJ6cQuQIb10Ro3ft7yyyRU,2522
29
- parsagon-0.14.35.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
30
- parsagon-0.14.35.dist-info/entry_points.txt,sha256=I1UlPUb4oY2k9idkI8kvdkEcrjKGRSOl5pMbA6uu6kw,48
31
- parsagon-0.14.35.dist-info/top_level.txt,sha256=ih5uYQzW4qjhRKppys-WiHLIbXVZ99YdqDcfAtlcQwk,9
32
- parsagon-0.14.35.dist-info/RECORD,,
28
+ parsagon-0.14.37.dist-info/METADATA,sha256=uVOmIu2G7gRtS8ZaKC2GCrPTyRgz2JSK3sD6JNCVz3k,2556
29
+ parsagon-0.14.37.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
30
+ parsagon-0.14.37.dist-info/entry_points.txt,sha256=I1UlPUb4oY2k9idkI8kvdkEcrjKGRSOl5pMbA6uu6kw,48
31
+ parsagon-0.14.37.dist-info/top_level.txt,sha256=ih5uYQzW4qjhRKppys-WiHLIbXVZ99YdqDcfAtlcQwk,9
32
+ parsagon-0.14.37.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5