zendriver 0.1.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.
- zendriver-0.1.0/.github/workflows/docs.yml +29 -0
- zendriver-0.1.0/.github/workflows/publish.yml +21 -0
- zendriver-0.1.0/.gitignore +78 -0
- zendriver-0.1.0/CHANGELOG.md +43 -0
- zendriver-0.1.0/LICENSE +619 -0
- zendriver-0.1.0/PKG-INFO +712 -0
- zendriver-0.1.0/README.md +74 -0
- zendriver-0.1.0/docs/index.md +66 -0
- zendriver-0.1.0/docs/quickstart.md +172 -0
- zendriver-0.1.0/docs/release-notes.md +28 -0
- zendriver-0.1.0/docs/stylesheets/extra.css +5 -0
- zendriver-0.1.0/example/browserscan.py +14 -0
- zendriver-0.1.0/example/demo.py +193 -0
- zendriver-0.1.0/example/fetch_domain.py +45 -0
- zendriver-0.1.0/example/imgur_upload_image.py +92 -0
- zendriver-0.1.0/example/mouse_drag_boxes.py +72 -0
- zendriver-0.1.0/example/network_monitor.py +65 -0
- zendriver-0.1.0/generate_cdp.py +1200 -0
- zendriver-0.1.0/mkdocs.yml +102 -0
- zendriver-0.1.0/pyproject.toml +44 -0
- zendriver-0.1.0/scripts/format.sh +5 -0
- zendriver-0.1.0/scripts/lint.sh +8 -0
- zendriver-0.1.0/scripts/mkdocs_generate_reference.py +110 -0
- zendriver-0.1.0/uv.lock +688 -0
- zendriver-0.1.0/zendriver/__init__.py +26 -0
- zendriver-0.1.0/zendriver/cdp/README.md +4 -0
- zendriver-0.1.0/zendriver/cdp/__init__.py +59 -0
- zendriver-0.1.0/zendriver/cdp/accessibility.py +735 -0
- zendriver-0.1.0/zendriver/cdp/animation.py +519 -0
- zendriver-0.1.0/zendriver/cdp/audits.py +1924 -0
- zendriver-0.1.0/zendriver/cdp/autofill.py +289 -0
- zendriver-0.1.0/zendriver/cdp/background_service.py +224 -0
- zendriver-0.1.0/zendriver/cdp/browser.py +753 -0
- zendriver-0.1.0/zendriver/cdp/cache_storage.py +317 -0
- zendriver-0.1.0/zendriver/cdp/cast.py +167 -0
- zendriver-0.1.0/zendriver/cdp/console.py +108 -0
- zendriver-0.1.0/zendriver/cdp/css.py +2536 -0
- zendriver-0.1.0/zendriver/cdp/database.py +177 -0
- zendriver-0.1.0/zendriver/cdp/debugger.py +1540 -0
- zendriver-0.1.0/zendriver/cdp/device_access.py +141 -0
- zendriver-0.1.0/zendriver/cdp/device_orientation.py +43 -0
- zendriver-0.1.0/zendriver/cdp/dom.py +2158 -0
- zendriver-0.1.0/zendriver/cdp/dom_debugger.py +328 -0
- zendriver-0.1.0/zendriver/cdp/dom_snapshot.py +1124 -0
- zendriver-0.1.0/zendriver/cdp/dom_storage.py +223 -0
- zendriver-0.1.0/zendriver/cdp/emulation.py +1148 -0
- zendriver-0.1.0/zendriver/cdp/event_breakpoints.py +54 -0
- zendriver-0.1.0/zendriver/cdp/extensions.py +29 -0
- zendriver-0.1.0/zendriver/cdp/fed_cm.py +294 -0
- zendriver-0.1.0/zendriver/cdp/fetch.py +553 -0
- zendriver-0.1.0/zendriver/cdp/headless_experimental.py +129 -0
- zendriver-0.1.0/zendriver/cdp/heap_profiler.py +404 -0
- zendriver-0.1.0/zendriver/cdp/indexed_db.py +554 -0
- zendriver-0.1.0/zendriver/cdp/input_.py +725 -0
- zendriver-0.1.0/zendriver/cdp/inspector.py +70 -0
- zendriver-0.1.0/zendriver/cdp/io.py +104 -0
- zendriver-0.1.0/zendriver/cdp/layer_tree.py +524 -0
- zendriver-0.1.0/zendriver/cdp/log.py +214 -0
- zendriver-0.1.0/zendriver/cdp/media.py +298 -0
- zendriver-0.1.0/zendriver/cdp/memory.py +273 -0
- zendriver-0.1.0/zendriver/cdp/network.py +4613 -0
- zendriver-0.1.0/zendriver/cdp/overlay.py +1691 -0
- zendriver-0.1.0/zendriver/cdp/page.py +4157 -0
- zendriver-0.1.0/zendriver/cdp/performance.py +125 -0
- zendriver-0.1.0/zendriver/cdp/performance_timeline.py +224 -0
- zendriver-0.1.0/zendriver/cdp/preload.py +625 -0
- zendriver-0.1.0/zendriver/cdp/profiler.py +457 -0
- zendriver-0.1.0/zendriver/cdp/pwa.py +261 -0
- zendriver-0.1.0/zendriver/cdp/py.typed +0 -0
- zendriver-0.1.0/zendriver/cdp/runtime.py +1843 -0
- zendriver-0.1.0/zendriver/cdp/schema.py +50 -0
- zendriver-0.1.0/zendriver/cdp/security.py +566 -0
- zendriver-0.1.0/zendriver/cdp/service_worker.py +426 -0
- zendriver-0.1.0/zendriver/cdp/storage.py +2139 -0
- zendriver-0.1.0/zendriver/cdp/system_info.py +406 -0
- zendriver-0.1.0/zendriver/cdp/target.py +747 -0
- zendriver-0.1.0/zendriver/cdp/tethering.py +58 -0
- zendriver-0.1.0/zendriver/cdp/tracing.py +421 -0
- zendriver-0.1.0/zendriver/cdp/util.py +19 -0
- zendriver-0.1.0/zendriver/cdp/web_audio.py +649 -0
- zendriver-0.1.0/zendriver/cdp/web_authn.py +585 -0
- zendriver-0.1.0/zendriver/core/_contradict.py +121 -0
- zendriver-0.1.0/zendriver/core/browser.py +777 -0
- zendriver-0.1.0/zendriver/core/config.py +322 -0
- zendriver-0.1.0/zendriver/core/connection.py +702 -0
- zendriver-0.1.0/zendriver/core/element.py +1172 -0
- zendriver-0.1.0/zendriver/core/tab.py +1393 -0
- zendriver-0.1.0/zendriver/core/util.py +343 -0
- zendriver-0.1.0/zendriver/py.typed +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: docs
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
paths:
|
|
7
|
+
- "docs/**"
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
jobs:
|
|
11
|
+
docs:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- name: Configure Git Credentials
|
|
16
|
+
run: |
|
|
17
|
+
git config user.name github-actions[bot]
|
|
18
|
+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
|
19
|
+
- name: Install uv
|
|
20
|
+
uses: astral-sh/setup-uv@v3
|
|
21
|
+
- name: Set up Python
|
|
22
|
+
run: uv python install
|
|
23
|
+
- name: Install dependencies
|
|
24
|
+
run: uv sync --all-extras --dev
|
|
25
|
+
- name: Generate API reference docs
|
|
26
|
+
run: |
|
|
27
|
+
uv run python scripts/mkdocs_generate_reference.py
|
|
28
|
+
- name: Deploy to GitHub Pages
|
|
29
|
+
run: uv run mkdocs gh-deploy --force
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: publish
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
tags:
|
|
5
|
+
- "*"
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
jobs:
|
|
8
|
+
publish:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v4
|
|
12
|
+
- name: Install uv
|
|
13
|
+
uses: astral-sh/setup-uv@v3
|
|
14
|
+
- name: Set up Python
|
|
15
|
+
run: uv python install
|
|
16
|
+
- name: Build wheel
|
|
17
|
+
run: uv build
|
|
18
|
+
- name: Publish to PyPI
|
|
19
|
+
run: uv publish
|
|
20
|
+
env:
|
|
21
|
+
UV_PUBLISH_TOKEN: ${{ secrets.UV_PUBLISH_TOKEN }}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# mkdocs
|
|
2
|
+
site/
|
|
3
|
+
docs/reference
|
|
4
|
+
|
|
5
|
+
# uv/pyenv
|
|
6
|
+
.python-version
|
|
7
|
+
|
|
8
|
+
# Byte-compiled / optimized / DLL files
|
|
9
|
+
__pycache__/
|
|
10
|
+
*.py[cod]
|
|
11
|
+
*$py.class
|
|
12
|
+
|
|
13
|
+
# C extensions
|
|
14
|
+
*.so
|
|
15
|
+
|
|
16
|
+
# Distribution / packaging
|
|
17
|
+
.Python
|
|
18
|
+
build/
|
|
19
|
+
develop-eggs/
|
|
20
|
+
dist/
|
|
21
|
+
eggs/
|
|
22
|
+
.eggs/
|
|
23
|
+
sdist/
|
|
24
|
+
wheels/
|
|
25
|
+
share/python-wheels/
|
|
26
|
+
*.egg-info/
|
|
27
|
+
.installed.cfg
|
|
28
|
+
*.egg
|
|
29
|
+
MANIFEST
|
|
30
|
+
|
|
31
|
+
# PyInstaller
|
|
32
|
+
# Usually these files are written by a python script from a template
|
|
33
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
34
|
+
*.manifest
|
|
35
|
+
*.spec
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# Unit test / coverage reports
|
|
39
|
+
htmlcov/
|
|
40
|
+
.tox/
|
|
41
|
+
.nox/
|
|
42
|
+
.coverage
|
|
43
|
+
.coverage.*
|
|
44
|
+
.cache
|
|
45
|
+
nosetests.xml
|
|
46
|
+
coverage.xml
|
|
47
|
+
*.cover
|
|
48
|
+
*.py,cover
|
|
49
|
+
.hypothesis/
|
|
50
|
+
.pytest_cache/
|
|
51
|
+
|
|
52
|
+
# Django stuff:
|
|
53
|
+
*.log
|
|
54
|
+
local_settings.py
|
|
55
|
+
db.sqlite3
|
|
56
|
+
db.sqlite3-journal
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
# Sphinx documentation
|
|
60
|
+
|
|
61
|
+
!docs/_build/html
|
|
62
|
+
!docs/_build/markdown
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
# IPython
|
|
67
|
+
profile_default/
|
|
68
|
+
ipython_config.py
|
|
69
|
+
|
|
70
|
+
# Environments
|
|
71
|
+
.env
|
|
72
|
+
.venv
|
|
73
|
+
env/
|
|
74
|
+
venv/
|
|
75
|
+
ENV/
|
|
76
|
+
env.bak/
|
|
77
|
+
venv.bak/
|
|
78
|
+
/docs/_build/doctrees/
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
### Removed
|
|
17
|
+
|
|
18
|
+
## [0.1.0] - 2024-10-20
|
|
19
|
+
|
|
20
|
+
Initial version, forked from [ultrafunkamsterdam/nodriver@`1bb6003`](https://github.com/ultrafunkamsterdam/nodriver/commit/1bb6003c7f0db4d3ec05fdf3fc8c8e0804260103) with a variety of improvements.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- `Browser.set_all` cookies function now correctly uses provided cookies @ilkecan
|
|
25
|
+
- "successfully removed temp profile" message printed on exit is now only shown only when a profile was actually removed. Message is now logged at debug level instead of printed. @mreiden @stephanlensky
|
|
26
|
+
- Fix crash on starting browser in headless mode @ilkecan
|
|
27
|
+
- Fix `Browser.close()` method to give the browser instance time to shut down before force killing @slensky
|
|
28
|
+
- Many `ruff` lint issues @slensky
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- Support for linting with `ruff` and `mypy`. All `ruff` lints are fixed in the initial release, but many `mypy` issues remain to be fixed at a later date. @slensky
|
|
33
|
+
- `py.typed` marker so importing as a library in other packages no longer causes `mypy` errors. @slensky
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- Project is now built with [`uv`](https://github.com/astral-sh/uv). Automatically install dependencies to a venv with `uv sync`, run commands from the venv with `uv run`, and build the project with `uv build`. See the official [`uv` docs](https://docs.astral.sh/uv/) for more information. @slensky
|
|
38
|
+
- Docs migrated from sphinx to [mkdocs-material](https://squidfunk.github.io/mkdocs-material/). @slensky
|
|
39
|
+
- `Browser.close()` is now async (so it must be `await`ed) @slensky
|
|
40
|
+
|
|
41
|
+
### Removed
|
|
42
|
+
|
|
43
|
+
- Twitter account creation example @slensky
|