wavexis 2.0.0__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 (197) hide show
  1. wavexis-2.0.0/.dockerignore +15 -0
  2. wavexis-2.0.0/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
  3. wavexis-2.0.0/.github/ISSUE_TEMPLATE/feature_request.md +23 -0
  4. wavexis-2.0.0/.github/PULL_REQUEST_TEMPLATE.md +21 -0
  5. wavexis-2.0.0/.github/workflows/ci.yml +102 -0
  6. wavexis-2.0.0/.github/workflows/docs.yml +42 -0
  7. wavexis-2.0.0/.github/workflows/release.yml +78 -0
  8. wavexis-2.0.0/.gitignore +0 -0
  9. wavexis-2.0.0/CHANGELOG.md +91 -0
  10. wavexis-2.0.0/CODE_OF_CONDUCT.md +132 -0
  11. wavexis-2.0.0/CONTRIBUTING.md +124 -0
  12. wavexis-2.0.0/Dockerfile +49 -0
  13. wavexis-2.0.0/LICENSE +21 -0
  14. wavexis-2.0.0/PKG-INFO +463 -0
  15. wavexis-2.0.0/README.md +416 -0
  16. wavexis-2.0.0/SECURITY.md +46 -0
  17. wavexis-2.0.0/docs/api/actions.md +115 -0
  18. wavexis-2.0.0/docs/api/backends.md +17 -0
  19. wavexis-2.0.0/docs/api/cli.md +3 -0
  20. wavexis-2.0.0/docs/api/config.md +3 -0
  21. wavexis-2.0.0/docs/api/exceptions.md +3 -0
  22. wavexis-2.0.0/docs/api/multi.md +3 -0
  23. wavexis-2.0.0/docs/api/plugins.md +3 -0
  24. wavexis-2.0.0/docs/api/serve.md +3 -0
  25. wavexis-2.0.0/docs/cookbook/auth.md +48 -0
  26. wavexis-2.0.0/docs/cookbook/ci-cd.md +90 -0
  27. wavexis-2.0.0/docs/cookbook/css.md +50 -0
  28. wavexis-2.0.0/docs/cookbook/debug.md +69 -0
  29. wavexis-2.0.0/docs/cookbook/record-replay.md +61 -0
  30. wavexis-2.0.0/docs/cookbook/scraping.md +47 -0
  31. wavexis-2.0.0/docs/cookbook/screenshots.md +37 -0
  32. wavexis-2.0.0/docs/cookbook/serve-mode.md +154 -0
  33. wavexis-2.0.0/docs/guide/assert.md +161 -0
  34. wavexis-2.0.0/docs/guide/backends.md +68 -0
  35. wavexis-2.0.0/docs/guide/commands.md +622 -0
  36. wavexis-2.0.0/docs/guide/init.md +210 -0
  37. wavexis-2.0.0/docs/guide/installation.md +51 -0
  38. wavexis-2.0.0/docs/guide/multi.md +430 -0
  39. wavexis-2.0.0/docs/guide/perf.md +168 -0
  40. wavexis-2.0.0/docs/guide/plugins.md +154 -0
  41. wavexis-2.0.0/docs/guide/quickstart.md +77 -0
  42. wavexis-2.0.0/docs/guide/raw.md +50 -0
  43. wavexis-2.0.0/docs/guide/repl.md +113 -0
  44. wavexis-2.0.0/docs/guide/troubleshooting.md +67 -0
  45. wavexis-2.0.0/docs/index.md +97 -0
  46. wavexis-2.0.0/mkdocs.yml +96 -0
  47. wavexis-2.0.0/pyproject.toml +90 -0
  48. wavexis-2.0.0/stubs/bidiwave/__init__.pyi +40 -0
  49. wavexis-2.0.0/stubs/cdpwave/__init__.pyi +49 -0
  50. wavexis-2.0.0/tests/__init__.py +1 -0
  51. wavexis-2.0.0/tests/conftest.py +11 -0
  52. wavexis-2.0.0/tests/integration/__init__.py +1 -0
  53. wavexis-2.0.0/tests/integration/test_a11y.py +42 -0
  54. wavexis-2.0.0/tests/integration/test_animation.py +35 -0
  55. wavexis-2.0.0/tests/integration/test_backend_selection.py +44 -0
  56. wavexis-2.0.0/tests/integration/test_browser.py +67 -0
  57. wavexis-2.0.0/tests/integration/test_console.py +48 -0
  58. wavexis-2.0.0/tests/integration/test_css.py +61 -0
  59. wavexis-2.0.0/tests/integration/test_debug.py +56 -0
  60. wavexis-2.0.0/tests/integration/test_dialog.py +34 -0
  61. wavexis-2.0.0/tests/integration/test_dom.py +132 -0
  62. wavexis-2.0.0/tests/integration/test_dom_snapshot.py +32 -0
  63. wavexis-2.0.0/tests/integration/test_emulation.py +92 -0
  64. wavexis-2.0.0/tests/integration/test_emulation_advanced.py +58 -0
  65. wavexis-2.0.0/tests/integration/test_eval.py +69 -0
  66. wavexis-2.0.0/tests/integration/test_har.py +53 -0
  67. wavexis-2.0.0/tests/integration/test_input.py +51 -0
  68. wavexis-2.0.0/tests/integration/test_media.py +35 -0
  69. wavexis-2.0.0/tests/integration/test_multi.py +59 -0
  70. wavexis-2.0.0/tests/integration/test_navigate.py +52 -0
  71. wavexis-2.0.0/tests/integration/test_network.py +123 -0
  72. wavexis-2.0.0/tests/integration/test_network_advanced.py +47 -0
  73. wavexis-2.0.0/tests/integration/test_overlay.py +44 -0
  74. wavexis-2.0.0/tests/integration/test_pdf.py +67 -0
  75. wavexis-2.0.0/tests/integration/test_perf.py +115 -0
  76. wavexis-2.0.0/tests/integration/test_permissions.py +24 -0
  77. wavexis-2.0.0/tests/integration/test_raw.py +86 -0
  78. wavexis-2.0.0/tests/integration/test_record.py +61 -0
  79. wavexis-2.0.0/tests/integration/test_scrape.py +70 -0
  80. wavexis-2.0.0/tests/integration/test_screenshot.py +67 -0
  81. wavexis-2.0.0/tests/integration/test_security.py +23 -0
  82. wavexis-2.0.0/tests/integration/test_serve.py +83 -0
  83. wavexis-2.0.0/tests/integration/test_service_worker.py +35 -0
  84. wavexis-2.0.0/tests/integration/test_storage.py +130 -0
  85. wavexis-2.0.0/tests/integration/test_tabs.py +41 -0
  86. wavexis-2.0.0/tests/integration/test_webaudio.py +35 -0
  87. wavexis-2.0.0/tests/integration/test_webauthn.py +64 -0
  88. wavexis-2.0.0/tests/unit/__init__.py +1 -0
  89. wavexis-2.0.0/tests/unit/test_abstract_backend_phase5.py +87 -0
  90. wavexis-2.0.0/tests/unit/test_actions.py +551 -0
  91. wavexis-2.0.0/tests/unit/test_actions_phase5.py +166 -0
  92. wavexis-2.0.0/tests/unit/test_animation_action.py +101 -0
  93. wavexis-2.0.0/tests/unit/test_assert_multi.py +197 -0
  94. wavexis-2.0.0/tests/unit/test_auth.py +121 -0
  95. wavexis-2.0.0/tests/unit/test_backend_manager.py +598 -0
  96. wavexis-2.0.0/tests/unit/test_bidi_backend.py +266 -0
  97. wavexis-2.0.0/tests/unit/test_bidi_phase5.py +150 -0
  98. wavexis-2.0.0/tests/unit/test_bluetooth_action.py +85 -0
  99. wavexis-2.0.0/tests/unit/test_cast_action.py +77 -0
  100. wavexis-2.0.0/tests/unit/test_cli_phase5.py +119 -0
  101. wavexis-2.0.0/tests/unit/test_config.py +321 -0
  102. wavexis-2.0.0/tests/unit/test_config_phase5.py +117 -0
  103. wavexis-2.0.0/tests/unit/test_cookies_headers_actions.py +185 -0
  104. wavexis-2.0.0/tests/unit/test_css_action.py +122 -0
  105. wavexis-2.0.0/tests/unit/test_debug_action.py +177 -0
  106. wavexis-2.0.0/tests/unit/test_dom_snapshot_action.py +57 -0
  107. wavexis-2.0.0/tests/unit/test_download_screencast.py +76 -0
  108. wavexis-2.0.0/tests/unit/test_emulation_action.py +82 -0
  109. wavexis-2.0.0/tests/unit/test_error_handling.py +105 -0
  110. wavexis-2.0.0/tests/unit/test_exceptions.py +62 -0
  111. wavexis-2.0.0/tests/unit/test_format_record.py +149 -0
  112. wavexis-2.0.0/tests/unit/test_global_options.py +220 -0
  113. wavexis-2.0.0/tests/unit/test_init.py +227 -0
  114. wavexis-2.0.0/tests/unit/test_input_action.py +106 -0
  115. wavexis-2.0.0/tests/unit/test_interactions_crawl.py +256 -0
  116. wavexis-2.0.0/tests/unit/test_manager.py +315 -0
  117. wavexis-2.0.0/tests/unit/test_media_action.py +73 -0
  118. wavexis-2.0.0/tests/unit/test_multi.py +131 -0
  119. wavexis-2.0.0/tests/unit/test_multi_improvements.py +265 -0
  120. wavexis-2.0.0/tests/unit/test_new_features.py +477 -0
  121. wavexis-2.0.0/tests/unit/test_output.py +96 -0
  122. wavexis-2.0.0/tests/unit/test_overlay_action.py +96 -0
  123. wavexis-2.0.0/tests/unit/test_perf_action.py +137 -0
  124. wavexis-2.0.0/tests/unit/test_perf_console.py +221 -0
  125. wavexis-2.0.0/tests/unit/test_plugins.py +195 -0
  126. wavexis-2.0.0/tests/unit/test_raw.py +99 -0
  127. wavexis-2.0.0/tests/unit/test_record.py +90 -0
  128. wavexis-2.0.0/tests/unit/test_repl.py +194 -0
  129. wavexis-2.0.0/tests/unit/test_serve.py +401 -0
  130. wavexis-2.0.0/tests/unit/test_service_worker_action.py +85 -0
  131. wavexis-2.0.0/tests/unit/test_storage_action.py +169 -0
  132. wavexis-2.0.0/tests/unit/test_webaudio_action.py +72 -0
  133. wavexis-2.0.0/tests/unit/test_webauthn_action.py +144 -0
  134. wavexis-2.0.0/wavexis/__init__.py +3 -0
  135. wavexis-2.0.0/wavexis/__main__.py +6 -0
  136. wavexis-2.0.0/wavexis/actions/__init__.py +1 -0
  137. wavexis-2.0.0/wavexis/actions/accessibility.py +62 -0
  138. wavexis-2.0.0/wavexis/actions/animation.py +59 -0
  139. wavexis-2.0.0/wavexis/actions/base.py +31 -0
  140. wavexis-2.0.0/wavexis/actions/bluetooth.py +68 -0
  141. wavexis-2.0.0/wavexis/actions/browser.py +39 -0
  142. wavexis-2.0.0/wavexis/actions/cast.py +67 -0
  143. wavexis-2.0.0/wavexis/actions/console.py +57 -0
  144. wavexis-2.0.0/wavexis/actions/cookies.py +57 -0
  145. wavexis-2.0.0/wavexis/actions/crawl.py +105 -0
  146. wavexis-2.0.0/wavexis/actions/css.py +107 -0
  147. wavexis-2.0.0/wavexis/actions/debug.py +145 -0
  148. wavexis-2.0.0/wavexis/actions/dialog.py +59 -0
  149. wavexis-2.0.0/wavexis/actions/dom.py +70 -0
  150. wavexis-2.0.0/wavexis/actions/dom_snapshot.py +45 -0
  151. wavexis-2.0.0/wavexis/actions/download.py +45 -0
  152. wavexis-2.0.0/wavexis/actions/emulation.py +45 -0
  153. wavexis-2.0.0/wavexis/actions/eval.py +36 -0
  154. wavexis-2.0.0/wavexis/actions/extract.py +86 -0
  155. wavexis-2.0.0/wavexis/actions/form.py +73 -0
  156. wavexis-2.0.0/wavexis/actions/har.py +27 -0
  157. wavexis-2.0.0/wavexis/actions/headers.py +52 -0
  158. wavexis-2.0.0/wavexis/actions/input.py +72 -0
  159. wavexis-2.0.0/wavexis/actions/lighthouse.py +312 -0
  160. wavexis-2.0.0/wavexis/actions/media.py +62 -0
  161. wavexis-2.0.0/wavexis/actions/multi.py +40 -0
  162. wavexis-2.0.0/wavexis/actions/navigate.py +98 -0
  163. wavexis-2.0.0/wavexis/actions/network.py +70 -0
  164. wavexis-2.0.0/wavexis/actions/overlay.py +69 -0
  165. wavexis-2.0.0/wavexis/actions/pdf.py +32 -0
  166. wavexis-2.0.0/wavexis/actions/performance.py +80 -0
  167. wavexis-2.0.0/wavexis/actions/permissions.py +59 -0
  168. wavexis-2.0.0/wavexis/actions/record.py +151 -0
  169. wavexis-2.0.0/wavexis/actions/scrape.py +50 -0
  170. wavexis-2.0.0/wavexis/actions/screencast.py +50 -0
  171. wavexis-2.0.0/wavexis/actions/screenshot.py +37 -0
  172. wavexis-2.0.0/wavexis/actions/security.py +59 -0
  173. wavexis-2.0.0/wavexis/actions/service_worker.py +69 -0
  174. wavexis-2.0.0/wavexis/actions/session.py +114 -0
  175. wavexis-2.0.0/wavexis/actions/storage.py +92 -0
  176. wavexis-2.0.0/wavexis/actions/tabs.py +53 -0
  177. wavexis-2.0.0/wavexis/actions/wait.py +23 -0
  178. wavexis-2.0.0/wavexis/actions/webaudio.py +62 -0
  179. wavexis-2.0.0/wavexis/actions/webauthn.py +96 -0
  180. wavexis-2.0.0/wavexis/actions/websocket.py +110 -0
  181. wavexis-2.0.0/wavexis/auth.py +86 -0
  182. wavexis-2.0.0/wavexis/backend/__init__.py +1 -0
  183. wavexis-2.0.0/wavexis/backend/base.py +838 -0
  184. wavexis-2.0.0/wavexis/backend/bidi.py +2160 -0
  185. wavexis-2.0.0/wavexis/backend/cdp.py +2413 -0
  186. wavexis-2.0.0/wavexis/backend/manager.py +120 -0
  187. wavexis-2.0.0/wavexis/cli/__init__.py +8 -0
  188. wavexis-2.0.0/wavexis/cli/app.py +3874 -0
  189. wavexis-2.0.0/wavexis/config.py +651 -0
  190. wavexis-2.0.0/wavexis/exceptions.py +95 -0
  191. wavexis-2.0.0/wavexis/init.py +177 -0
  192. wavexis-2.0.0/wavexis/multi.py +305 -0
  193. wavexis-2.0.0/wavexis/output.py +195 -0
  194. wavexis-2.0.0/wavexis/plugins.py +250 -0
  195. wavexis-2.0.0/wavexis/record.py +114 -0
  196. wavexis-2.0.0/wavexis/repl.py +225 -0
  197. wavexis-2.0.0/wavexis/serve.py +665 -0
@@ -0,0 +1,15 @@
1
+ .git
2
+ .github
3
+ __pycache__
4
+ *.pyc
5
+ .pytest_cache
6
+ .mypy_cache
7
+ .ruff_cache
8
+ site/
9
+ dist/
10
+ build/
11
+ *.egg-info
12
+ tests/
13
+ docs/
14
+ *.md
15
+ !README.md
@@ -0,0 +1,37 @@
1
+ ---
2
+
3
+ name: Bug Report
4
+ about: Report a bug to help us improve wavexis
5
+ title: "[BUG] "
6
+ labels: bug
7
+ ---
8
+
9
+ ## Description
10
+
11
+ A clear and concise description of the bug.
12
+
13
+ ## Steps to Reproduce
14
+
15
+ 1. Run `wavexis ...`
16
+ 2. ...
17
+ 3. See error
18
+
19
+ ## Expected Behavior
20
+
21
+ What you expected to happen.
22
+
23
+ ## Actual Behavior
24
+
25
+ What actually happened.
26
+
27
+ ## Environment
28
+
29
+ - wavexis version: `wavexis --version` (or pip show wavexis)
30
+ - Python version: `python --version`
31
+ - OS: [e.g. Windows 11, Ubuntu 22.04, macOS 14]
32
+ - Browser: [e.g. Chrome 125, Edge 125, Brave 1.65]
33
+ - Backend: [cdp / bidi]
34
+
35
+ ## Additional Context
36
+
37
+ Any other context, logs, or screenshots.
@@ -0,0 +1,23 @@
1
+ ---
2
+
3
+ name: Feature Request
4
+ about: Suggest a new feature or improvement for wavexis
5
+ title: "[FEATURE] "
6
+ labels: enhancement
7
+ ---
8
+
9
+ ## Problem
10
+
11
+ A clear description of the problem this feature would solve.
12
+
13
+ ## Proposed Solution
14
+
15
+ A description of what you want to happen.
16
+
17
+ ## Alternatives Considered
18
+
19
+ Any alternative solutions or features you've considered.
20
+
21
+ ## Additional Context
22
+
23
+ Any other context, examples, or references.
@@ -0,0 +1,21 @@
1
+ ## Summary
2
+
3
+ Brief description of the changes.
4
+
5
+ ## Type of Change
6
+
7
+ - [ ] Bug fix (non-breaking change which fixes an issue)
8
+ - [ ] New feature (non-breaking change which adds functionality)
9
+ - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
10
+ - [ ] Documentation update
11
+ - [ ] Refactor / cleanup
12
+
13
+ ## Checklist
14
+
15
+ - [ ] Code follows PEP 8 and passes `ruff check .`
16
+ - [ ] Type hints on all parameters and return types
17
+ - [ ] `mypy wavexis/` passes
18
+ - [ ] Tests added or updated for changes
19
+ - [ ] `pytest tests/unit/ -v` passes
20
+ - [ ] Conventional commit message used
21
+ - [ ] Documentation updated if needed
@@ -0,0 +1,102 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ concurrency:
10
+ group: ci-${{ github.ref }}
11
+ cancel-in-progress: true
12
+
13
+ jobs:
14
+ lint:
15
+ name: Lint (ruff)
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.11"
22
+ - run: pip install "ruff>=0.4"
23
+ - run: ruff check .
24
+
25
+ typecheck:
26
+ name: Typecheck (mypy)
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@v4
30
+ - uses: actions/setup-python@v5
31
+ with:
32
+ python-version: "3.11"
33
+ - run: pip install -e ".[dev,cdp,bidi]"
34
+ - run: pip install types-PyYAML
35
+ - run: mypy wavexis/
36
+
37
+ unit-tests:
38
+ name: Unit tests (Python ${{ matrix.python-version }})
39
+ runs-on: ubuntu-latest
40
+ strategy:
41
+ matrix:
42
+ python-version: ["3.11", "3.12", "3.13"]
43
+ steps:
44
+ - uses: actions/checkout@v4
45
+ - uses: actions/setup-python@v5
46
+ with:
47
+ python-version: ${{ matrix.python-version }}
48
+ - run: pip install -e ".[dev,cdp,bidi,serve]"
49
+ - run: pytest tests/unit/ -m unit -v --cov=wavexis --cov-report=xml
50
+ - uses: actions/upload-artifact@v4
51
+ if: matrix.python-version == '3.11'
52
+ with:
53
+ name: coverage
54
+ path: coverage.xml
55
+
56
+ serve-tests:
57
+ name: Serve mode tests
58
+ runs-on: ubuntu-latest
59
+ steps:
60
+ - uses: actions/checkout@v4
61
+ - uses: actions/setup-python@v5
62
+ with:
63
+ python-version: "3.12"
64
+ - run: pip install -e ".[cdp,serve,dev]"
65
+ - uses: browser-actions/setup-chrome@v1
66
+ - run: pytest tests/unit/test_serve.py -v
67
+ - run: pytest tests/integration/test_serve.py -v -m integration --timeout=60
68
+ continue-on-error: true
69
+ env:
70
+ CHROME_PATH: /opt/chrome/chrome
71
+
72
+ integration-tests:
73
+ name: Integration tests
74
+ runs-on: ubuntu-latest
75
+ steps:
76
+ - uses: actions/checkout@v4
77
+ - uses: actions/setup-python@v5
78
+ with:
79
+ python-version: "3.11"
80
+ - uses: browser-actions/setup-chrome@v1
81
+ with:
82
+ chrome-version: stable
83
+ - run: pip install -e ".[dev,cdp]"
84
+ - run: pytest tests/integration/ -m integration -v --timeout=60
85
+ continue-on-error: true
86
+ env:
87
+ CHROME_PATH: /opt/chrome/chrome
88
+
89
+ docker-build:
90
+ name: Docker build
91
+ runs-on: ubuntu-latest
92
+ steps:
93
+ - uses: actions/checkout@v4
94
+ - uses: docker/setup-buildx-action@v3
95
+ - uses: docker/build-push-action@v6
96
+ with:
97
+ context: .
98
+ push: false
99
+ tags: wavexis:ci
100
+ cache-from: type=gha
101
+ cache-to: type=gha,mode=max
102
+ continue-on-error: true
@@ -0,0 +1,42 @@
1
+ name: Docs
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+ pages: write
11
+ id-token: write
12
+
13
+ concurrency:
14
+ group: pages
15
+ cancel-in-progress: true
16
+
17
+ jobs:
18
+ build-docs:
19
+ name: Build mkdocs site
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ - uses: actions/setup-python@v5
24
+ with:
25
+ python-version: "3.11"
26
+ - run: pip install -e ".[docs]"
27
+ - run: mkdocs build
28
+ - uses: actions/configure-pages@v5
29
+ - uses: actions/upload-pages-artifact@v3
30
+ with:
31
+ path: site/
32
+
33
+ deploy-docs:
34
+ name: Deploy to GitHub Pages
35
+ needs: build-docs
36
+ runs-on: ubuntu-latest
37
+ environment:
38
+ name: github-pages
39
+ url: ${{ steps.deployment.outputs.page_url }}
40
+ steps:
41
+ - id: deployment
42
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,78 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*.*.*"
7
+
8
+ permissions:
9
+ contents: read
10
+ packages: write
11
+
12
+ concurrency:
13
+ group: release-${{ github.ref }}
14
+ cancel-in-progress: false
15
+
16
+ jobs:
17
+ build:
18
+ name: Build sdist + wheel
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ - uses: actions/setup-python@v5
23
+ with:
24
+ python-version: "3.11"
25
+ - run: pip install "build>=1.2"
26
+ - run: python -m build
27
+ - uses: actions/upload-artifact@v4
28
+ with:
29
+ name: dist
30
+ path: dist/
31
+
32
+ publish-pypi:
33
+ name: Publish to PyPI
34
+ needs: build
35
+ runs-on: ubuntu-latest
36
+ environment: pypi
37
+ permissions:
38
+ id-token: write
39
+ steps:
40
+ - uses: actions/download-artifact@v4
41
+ with:
42
+ name: dist
43
+ path: dist/
44
+ - uses: pypa/gh-action-pypi-publish@release/v1
45
+ continue-on-error: true
46
+
47
+ docker:
48
+ name: Build & push Docker image
49
+ needs: build
50
+ runs-on: ubuntu-latest
51
+ permissions:
52
+ packages: write
53
+ steps:
54
+ - uses: actions/checkout@v4
55
+ - uses: docker/setup-buildx-action@v3
56
+ - uses: docker/login-action@v3
57
+ with:
58
+ registry: ghcr.io
59
+ username: ${{ github.actor }}
60
+ password: ${{ secrets.GITHUB_TOKEN }}
61
+ - uses: docker/metadata-action@v5
62
+ id: meta
63
+ with:
64
+ images: ghcr.io/${{ github.repository }}
65
+ tags: |
66
+ type=semver,pattern={{version}}
67
+ type=semver,pattern={{major}}.{{minor}}
68
+ type=semver,pattern={{major}}
69
+ latest
70
+ - uses: docker/build-push-action@v6
71
+ with:
72
+ context: .
73
+ push: true
74
+ tags: ${{ steps.meta.outputs.tags }}
75
+ labels: ${{ steps.meta.outputs.labels }}
76
+ cache-from: type=gha
77
+ cache-to: type=gha,mode=max
78
+ continue-on-error: true
Binary file
@@ -0,0 +1,91 @@
1
+ # Changelog
2
+
3
+ All notable changes to wavexis are documented in this file.
4
+
5
+ ## v2.0.0 — 2026-07-06
6
+
7
+ ### Changed
8
+
9
+ - **Breaking:** Renamed package from `browsix` to `wavexis`
10
+ - CLI entry point changed from `browsix` to `wavexis`
11
+ - Plugin entry-point group changed from `browsix.plugins` to `wavexis.plugins`
12
+ - All imports updated from `browsix.*` to `wavexis.*`
13
+ - Project URLs updated to `github.com/MathiasPaulenko/wavexis`
14
+ - Version bumped to 2.0.0
15
+
16
+ ## v1.0.0 — 2026-07-05
17
+
18
+ ### Added
19
+
20
+ - Error handling with consistent exit codes (0 success, 1 browser, 2 config, 3 backend)
21
+ - `Output.error()`, `Output.success()`, `Output.info()` with optional rich formatting
22
+ - Global CLI flags: `--verbose`, `--quiet`, `--version`
23
+ - Shell completions command (`wavexis completions <shell>`)
24
+ - GitHub Actions CI workflow (lint, typecheck, unit tests, integration tests)
25
+ - GitHub Actions release workflow (PyPI publish, GitHub Pages docs)
26
+ - mkdocs documentation site with material theme
27
+ - Comprehensive README with badges, examples, and comparison table
28
+ - Troubleshooting guide
29
+ - Contributing guide
30
+
31
+ ### Changed
32
+
33
+ - Version bumped to 1.0.0
34
+ - Development status classifier updated to "Production/Stable"
35
+ - CLI help strings improved for all commands and options
36
+ - All error messages now use `Output.error()` for consistent formatting
37
+
38
+ ## v0.3.0 — 2026-06-28
39
+
40
+ ### Added
41
+
42
+ - Emulation commands: device, viewport, geolocation, timezone, dark mode
43
+ - `EmulationAction` class for emulation operations
44
+ - `MultiAction` class for YAML multi-action execution
45
+ - `multi` CLI command with YAML config parsing
46
+ - `backends` CLI command to list available backends
47
+ - `install_check` CLI command to check backend installation status
48
+ - Global `--backend` CLI flag for backend selection
49
+ - `WAIT_PRESETS` and `THROTTLE_PRESETS` config dictionaries
50
+ - `EmulationParams` dataclass
51
+ - `MultiConfigError` exception for invalid multi configs
52
+ - `BackendManager.install_check()` method
53
+ - `BackendManager.list_available()` method
54
+ - `BackendManager.select(preferred)` with preferred backend support
55
+
56
+ ## v0.2.0 — 2026-06-14
57
+
58
+ ### Added
59
+
60
+ - DOM operations: get, query, set attribute, remove attribute, remove, focus, scroll
61
+ - HAR capture for network traffic analysis
62
+ - Cookie management: get, set, delete, clear
63
+ - Extra HTTP headers setting
64
+ - User-Agent override
65
+ - Browser context management
66
+ - Tab management: list, new, close, activate
67
+ - Console message capture
68
+ - Browser log capture
69
+ - Scrape command for batch URL processing
70
+ - `DOMAction`, `HARAction`, `TabsAction`, `ConsoleAction` classes
71
+ - `CookieParams`, `HarParams`, `DOMParams`, `TabsParams`, `ConsoleParams` dataclasses
72
+ - Device presets dictionary
73
+ - Paper sizes dictionary
74
+
75
+ ## v0.1.0 — 2026-05-30
76
+
77
+ ### Added
78
+
79
+ - Initial wavexis release
80
+ - `AbstractBackend` interface with all core methods
81
+ - `CDPBackend` implementation using cdpwave
82
+ - `BiDiBackend` minimal implementation using bidiwave
83
+ - `BackendManager` for backend registration and selection
84
+ - Core CLI commands: screenshot, pdf, eval, navigate, back, forward, reload, stop
85
+ - `ScreenshotAction`, `PDFAction`, `EvalAction`, `NavigateAction` classes
86
+ - `BrowserOptions`, `ScreenshotParams`, `PDFParams`, `EvalParams` dataclasses
87
+ - `WaitStrategy` with load, domcontentloaded, selector, networkidle strategies
88
+ - `Output` helpers for bytes, JSON, text, CSV
89
+ - Exception hierarchy: `wavexisError`, `BackendNotAvailableError`, `NavigationError`, `WaitTimeoutError`, `ElementNotFoundError`
90
+ - Typer CLI with help strings and no-args-is-help
91
+ - Unit and integration test infrastructure
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best for the overall community, not just us as
26
+ individuals
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned with this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ **mathias.paulenko@outlook.com**.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://www.mozilla.org/en-US/about/governance/policies/anti-harassment/
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,124 @@
1
+ # Contributing to wavexis
2
+
3
+ Thank you for your interest in contributing to wavexis! This document outlines
4
+ the process for contributing bug reports, feature requests, code changes, and
5
+ documentation improvements.
6
+
7
+ ## Getting Started
8
+
9
+ ### Prerequisites
10
+
11
+ - Python 3.11 or higher
12
+ - A Chromium-based browser (Chrome, Edge, Brave, or Chromium)
13
+ - Git
14
+
15
+ ### Development Setup
16
+
17
+ ```bash
18
+ git clone https://github.com/MathiasPaulenko/wavexis.git
19
+ cd wavexis
20
+ pip install -e ".[cdp,dev]"
21
+ ```
22
+
23
+ ### Running Tests
24
+
25
+ ```bash
26
+ # Unit tests (no browser required)
27
+ pytest tests/unit/ -v --cov=wavexis --cov-report=term-missing
28
+
29
+ # Linting and type checking
30
+ ruff check .
31
+ mypy wavexis/
32
+
33
+ # Spike test (requires Chrome installed)
34
+ python spike.py
35
+ ```
36
+
37
+ ### Project Structure
38
+
39
+ ```
40
+ wavexis/
41
+ ├── wavexis/ # Source code
42
+ │ ├── cli/ # Typer CLI commands
43
+ │ ├── backend/ # Backend abstraction (CDPBackend, BiDiBackend)
44
+ │ ├── actions/ # Action classes (ScreenshotAction, etc.)
45
+ │ ├── config.py # Dataclasses for params and presets
46
+ │ ├── auth.py # Auth context loader
47
+ │ ├── output.py # Output helpers (file, stdout, JSON)
48
+ │ └── exceptions.py # Custom exceptions
49
+ ├── tests/ # Test suite
50
+ │ ├── unit/ # Unit tests with mocks
51
+ │ └── integration/ # Integration tests (require Chrome)
52
+ ├── docs/ # Documentation
53
+ └── pyproject.toml # Project configuration
54
+ ```
55
+
56
+ ## How to Contribute
57
+
58
+ ### Reporting Bugs
59
+
60
+ Before creating a bug report, check existing issues to avoid duplicates. When
61
+ creating a bug report, use the **Bug Report** issue template and include:
62
+
63
+ 1. A clear description of the problem
64
+ 2. Steps to reproduce the issue
65
+ 3. Expected vs actual behavior
66
+ 4. wavexis version, Python version, OS, and browser version
67
+ 5. Minimal command example (if applicable)
68
+
69
+ ### Suggesting Features
70
+
71
+ Use the **Feature Request** issue template. Describe:
72
+
73
+ 1. The problem your feature would solve
74
+ 2. The proposed solution
75
+ 3. Alternatives you've considered
76
+
77
+ ### Pull Requests
78
+
79
+ 1. **Fork** the repository and create your branch from `main`
80
+ 2. **Write tests** for your changes — unit tests are required for new features
81
+ 3. **Ensure all checks pass**:
82
+ ```bash
83
+ ruff check .
84
+ mypy wavexis/
85
+ pytest tests/unit/ -v
86
+ ```
87
+ 4. **Use conventional commit messages**:
88
+ - `feat:` new feature
89
+ - `fix:` bug fix
90
+ - `docs:` documentation only
91
+ - `refactor:` code change that neither fixes a bug nor adds a feature
92
+ - `test:` adding or correcting tests
93
+ - `chore:` tooling, dependencies, config
94
+ 5. **Keep PRs focused** — one feature or fix per PR
95
+ 6. **Update documentation** if your change affects the public API
96
+
97
+ ### Code Style
98
+
99
+ - Follow PEP 8 (enforced by ruff, line-length=100)
100
+ - Use type hints for all function parameters and return types
101
+ - Write docstrings in Google style for all public methods
102
+ - Prefer small, single-responsibility functions
103
+ - No comments that don't add value — the code should be self-documenting
104
+
105
+ ## Release Process
106
+
107
+ Releases are managed by the maintainer:
108
+
109
+ 1. Version bump in `pyproject.toml` and `wavexis/__init__.py`
110
+ 2. Create annotated git tag (`vX.Y.Z`)
111
+ 3. GitHub Actions builds and publishes to PyPI automatically
112
+
113
+ Versioning follows [Semantic Versioning](https://semver.org/):
114
+ - **MAJOR**: breaking API changes
115
+ - **MINOR**: new features, backwards compatible
116
+ - **PATCH**: bug fixes, backwards compatible
117
+
118
+ ## Questions?
119
+
120
+ Feel free to open a **Question** issue or reach out at
121
+ **mathias.paulenko@outlook.com**.
122
+
123
+ By participating in this project, you agree to abide by the
124
+ [Code of Conduct](CODE_OF_CONDUCT.md).