webctl 0.1.2__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.
Files changed (49) hide show
  1. webctl/__init__.py +14 -0
  2. webctl/__main__.py +6 -0
  3. webctl/cli/__init__.py +13 -0
  4. webctl/cli/app.py +1095 -0
  5. webctl/cli/commands/__init__.py +0 -0
  6. webctl/cli/output.py +313 -0
  7. webctl/config.py +154 -0
  8. webctl/daemon/__init__.py +14 -0
  9. webctl/daemon/detectors/__init__.py +15 -0
  10. webctl/daemon/detectors/action.py +177 -0
  11. webctl/daemon/detectors/auth.py +260 -0
  12. webctl/daemon/detectors/cookie_banner.py +356 -0
  13. webctl/daemon/detectors/view_change.py +229 -0
  14. webctl/daemon/event_emitter.py +134 -0
  15. webctl/daemon/handlers/__init__.py +11 -0
  16. webctl/daemon/handlers/console.py +90 -0
  17. webctl/daemon/handlers/error_screenshot.py +51 -0
  18. webctl/daemon/handlers/hitl.py +161 -0
  19. webctl/daemon/handlers/interact.py +777 -0
  20. webctl/daemon/handlers/navigation.py +171 -0
  21. webctl/daemon/handlers/observe.py +310 -0
  22. webctl/daemon/handlers/registry.py +31 -0
  23. webctl/daemon/handlers/session.py +280 -0
  24. webctl/daemon/handlers/wait.py +290 -0
  25. webctl/daemon/server.py +200 -0
  26. webctl/daemon/session_manager.py +391 -0
  27. webctl/exceptions.py +119 -0
  28. webctl/protocol/__init__.py +51 -0
  29. webctl/protocol/client.py +76 -0
  30. webctl/protocol/messages.py +133 -0
  31. webctl/protocol/transport.py +415 -0
  32. webctl/query/__init__.py +37 -0
  33. webctl/query/ast.py +97 -0
  34. webctl/query/grammar.py +47 -0
  35. webctl/query/parser.py +136 -0
  36. webctl/query/resolver.py +215 -0
  37. webctl/security/__init__.py +8 -0
  38. webctl/security/domain_policy.py +135 -0
  39. webctl/views/__init__.py +29 -0
  40. webctl/views/a11y.py +352 -0
  41. webctl/views/dom_lite.py +179 -0
  42. webctl/views/export.py +130 -0
  43. webctl/views/filters.py +142 -0
  44. webctl/views/markdown.py +86 -0
  45. webctl/views/redaction.py +61 -0
  46. webctl-0.1.2.dist-info/METADATA +318 -0
  47. webctl-0.1.2.dist-info/RECORD +49 -0
  48. webctl-0.1.2.dist-info/WHEEL +4 -0
  49. webctl-0.1.2.dist-info/entry_points.txt +3 -0
webctl/__init__.py ADDED
@@ -0,0 +1,14 @@
1
+ """
2
+ webctl - Stateful, agent-first browser interface.
3
+
4
+ A CLI tool for automating browser interactions with accessibility-first design.
5
+ """
6
+
7
+ __version__ = "0.1.0"
8
+
9
+
10
+ def main() -> None:
11
+ """Main entry point for webctl CLI."""
12
+ from .cli.app import app
13
+
14
+ app()
webctl/__main__.py ADDED
@@ -0,0 +1,6 @@
1
+ """Entry point for python -m webctl."""
2
+
3
+ from .cli.app import app
4
+
5
+ if __name__ == "__main__":
6
+ app()
webctl/cli/__init__.py ADDED
@@ -0,0 +1,13 @@
1
+ """CLI for webctl."""
2
+
3
+ from .app import app
4
+ from .output import OutputFormatter, print_error, print_info, print_success, print_warning
5
+
6
+ __all__ = [
7
+ "app",
8
+ "OutputFormatter",
9
+ "print_error",
10
+ "print_success",
11
+ "print_warning",
12
+ "print_info",
13
+ ]