@scrypted/arlo 0.11.26 → 0.11.28
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.
- package/dist/plugin.zip +0 -0
- package/package.json +1 -1
- package/venv/bin/Activate.ps1 +0 -247
- package/venv/bin/activate +0 -69
- package/venv/bin/activate.csh +0 -26
- package/venv/bin/activate.fish +0 -69
- package/venv/bin/normalizer +0 -8
- package/venv/bin/pip +0 -8
- package/venv/bin/pip3 +0 -8
- package/venv/bin/pip3.10 +0 -8
- package/venv/lib/python3.10/site-packages/_cffi_backend.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/_distutils_hack/__init__.py +0 -132
- package/venv/lib/python3.10/site-packages/_distutils_hack/override.py +0 -1
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/__init__.py +0 -13
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/_staggered.py +0 -202
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/impl.py +0 -210
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/types.py +0 -12
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs/utils.py +0 -97
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/LICENSE +0 -279
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/METADATA +0 -123
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/RECORD +0 -16
- package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/_cparser.pxd.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/_find_header.pxd.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/_http_parser.pyx.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/_http_writer.pyx.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/.hash/hdrs.py.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/__init__.py +0 -264
- package/venv/lib/python3.10/site-packages/aiohttp/_cparser.pxd +0 -158
- package/venv/lib/python3.10/site-packages/aiohttp/_find_header.pxd +0 -2
- package/venv/lib/python3.10/site-packages/aiohttp/_headers.pxi +0 -83
- package/venv/lib/python3.10/site-packages/aiohttp/_http_parser.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_http_parser.pyx +0 -837
- package/venv/lib/python3.10/site-packages/aiohttp/_http_writer.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_http_writer.pyx +0 -162
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/.hash/mask.pxd.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/.hash/mask.pyx.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/.hash/reader_c.pxd.hash +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/__init__.py +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/helpers.py +0 -147
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/mask.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/mask.pxd +0 -3
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/mask.pyx +0 -48
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/models.py +0 -84
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader.py +0 -31
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_c.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_c.pxd +0 -102
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_c.py +0 -468
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_py.py +0 -468
- package/venv/lib/python3.10/site-packages/aiohttp/_websocket/writer.py +0 -177
- package/venv/lib/python3.10/site-packages/aiohttp/abc.py +0 -253
- package/venv/lib/python3.10/site-packages/aiohttp/base_protocol.py +0 -100
- package/venv/lib/python3.10/site-packages/aiohttp/client.py +0 -1550
- package/venv/lib/python3.10/site-packages/aiohttp/client_exceptions.py +0 -421
- package/venv/lib/python3.10/site-packages/aiohttp/client_proto.py +0 -307
- package/venv/lib/python3.10/site-packages/aiohttp/client_reqrep.py +0 -1315
- package/venv/lib/python3.10/site-packages/aiohttp/client_ws.py +0 -426
- package/venv/lib/python3.10/site-packages/aiohttp/compression_utils.py +0 -173
- package/venv/lib/python3.10/site-packages/aiohttp/connector.py +0 -1652
- package/venv/lib/python3.10/site-packages/aiohttp/cookiejar.py +0 -495
- package/venv/lib/python3.10/site-packages/aiohttp/formdata.py +0 -182
- package/venv/lib/python3.10/site-packages/aiohttp/hdrs.py +0 -121
- package/venv/lib/python3.10/site-packages/aiohttp/helpers.py +0 -944
- package/venv/lib/python3.10/site-packages/aiohttp/http.py +0 -72
- package/venv/lib/python3.10/site-packages/aiohttp/http_exceptions.py +0 -112
- package/venv/lib/python3.10/site-packages/aiohttp/http_parser.py +0 -1046
- package/venv/lib/python3.10/site-packages/aiohttp/http_websocket.py +0 -36
- package/venv/lib/python3.10/site-packages/aiohttp/http_writer.py +0 -249
- package/venv/lib/python3.10/site-packages/aiohttp/log.py +0 -8
- package/venv/lib/python3.10/site-packages/aiohttp/multipart.py +0 -1071
- package/venv/lib/python3.10/site-packages/aiohttp/payload.py +0 -519
- package/venv/lib/python3.10/site-packages/aiohttp/payload_streamer.py +0 -78
- package/venv/lib/python3.10/site-packages/aiohttp/py.typed +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp/pytest_plugin.py +0 -436
- package/venv/lib/python3.10/site-packages/aiohttp/resolver.py +0 -187
- package/venv/lib/python3.10/site-packages/aiohttp/streams.py +0 -727
- package/venv/lib/python3.10/site-packages/aiohttp/tcp_helpers.py +0 -37
- package/venv/lib/python3.10/site-packages/aiohttp/test_utils.py +0 -770
- package/venv/lib/python3.10/site-packages/aiohttp/tracing.py +0 -470
- package/venv/lib/python3.10/site-packages/aiohttp/typedefs.py +0 -69
- package/venv/lib/python3.10/site-packages/aiohttp/web.py +0 -605
- package/venv/lib/python3.10/site-packages/aiohttp/web_app.py +0 -620
- package/venv/lib/python3.10/site-packages/aiohttp/web_exceptions.py +0 -452
- package/venv/lib/python3.10/site-packages/aiohttp/web_fileresponse.py +0 -418
- package/venv/lib/python3.10/site-packages/aiohttp/web_log.py +0 -216
- package/venv/lib/python3.10/site-packages/aiohttp/web_middlewares.py +0 -121
- package/venv/lib/python3.10/site-packages/aiohttp/web_protocol.py +0 -750
- package/venv/lib/python3.10/site-packages/aiohttp/web_request.py +0 -916
- package/venv/lib/python3.10/site-packages/aiohttp/web_response.py +0 -840
- package/venv/lib/python3.10/site-packages/aiohttp/web_routedef.py +0 -214
- package/venv/lib/python3.10/site-packages/aiohttp/web_runner.py +0 -399
- package/venv/lib/python3.10/site-packages/aiohttp/web_server.py +0 -84
- package/venv/lib/python3.10/site-packages/aiohttp/web_urldispatcher.py +0 -1301
- package/venv/lib/python3.10/site-packages/aiohttp/web_ws.py +0 -622
- package/venv/lib/python3.10/site-packages/aiohttp/worker.py +0 -252
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/LICENSE.txt +0 -13
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/METADATA +0 -250
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/RECORD +0 -132
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/aiosignal/__init__.py +0 -36
- package/venv/lib/python3.10/site-packages/aiosignal/__init__.pyi +0 -12
- package/venv/lib/python3.10/site-packages/aiosignal/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/LICENSE +0 -201
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/METADATA +0 -123
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/RECORD +0 -10
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/async_timeout/__init__.py +0 -276
- package/venv/lib/python3.10/site-packages/async_timeout/py.typed +0 -1
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/LICENSE +0 -13
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/METADATA +0 -163
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/RECORD +0 -11
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/WHEEL +0 -5
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/zip-safe +0 -1
- package/venv/lib/python3.10/site-packages/attr/__init__.py +0 -104
- package/venv/lib/python3.10/site-packages/attr/__init__.pyi +0 -389
- package/venv/lib/python3.10/site-packages/attr/_cmp.py +0 -160
- package/venv/lib/python3.10/site-packages/attr/_cmp.pyi +0 -13
- package/venv/lib/python3.10/site-packages/attr/_compat.py +0 -94
- package/venv/lib/python3.10/site-packages/attr/_config.py +0 -31
- package/venv/lib/python3.10/site-packages/attr/_funcs.py +0 -468
- package/venv/lib/python3.10/site-packages/attr/_make.py +0 -3055
- package/venv/lib/python3.10/site-packages/attr/_next_gen.py +0 -623
- package/venv/lib/python3.10/site-packages/attr/_typing_compat.pyi +0 -15
- package/venv/lib/python3.10/site-packages/attr/_version_info.py +0 -86
- package/venv/lib/python3.10/site-packages/attr/_version_info.pyi +0 -9
- package/venv/lib/python3.10/site-packages/attr/converters.py +0 -162
- package/venv/lib/python3.10/site-packages/attr/converters.pyi +0 -19
- package/venv/lib/python3.10/site-packages/attr/exceptions.py +0 -95
- package/venv/lib/python3.10/site-packages/attr/exceptions.pyi +0 -17
- package/venv/lib/python3.10/site-packages/attr/filters.py +0 -72
- package/venv/lib/python3.10/site-packages/attr/filters.pyi +0 -6
- package/venv/lib/python3.10/site-packages/attr/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/attr/setters.py +0 -79
- package/venv/lib/python3.10/site-packages/attr/setters.pyi +0 -20
- package/venv/lib/python3.10/site-packages/attr/validators.py +0 -710
- package/venv/lib/python3.10/site-packages/attr/validators.pyi +0 -86
- package/venv/lib/python3.10/site-packages/attrs/__init__.py +0 -69
- package/venv/lib/python3.10/site-packages/attrs/__init__.pyi +0 -263
- package/venv/lib/python3.10/site-packages/attrs/converters.py +0 -3
- package/venv/lib/python3.10/site-packages/attrs/exceptions.py +0 -3
- package/venv/lib/python3.10/site-packages/attrs/filters.py +0 -3
- package/venv/lib/python3.10/site-packages/attrs/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/attrs/setters.py +0 -3
- package/venv/lib/python3.10/site-packages/attrs/validators.py +0 -3
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/METADATA +0 -232
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/RECORD +0 -55
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/licenses/LICENSE +0 -21
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/METADATA +0 -123
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/RECORD +0 -90
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/licenses/AUTHORS +0 -49
- package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/licenses/LICENSE +0 -31
- package/venv/lib/python3.10/site-packages/bs4/__init__.py +0 -1170
- package/venv/lib/python3.10/site-packages/bs4/_deprecation.py +0 -80
- package/venv/lib/python3.10/site-packages/bs4/_typing.py +0 -196
- package/venv/lib/python3.10/site-packages/bs4/_warnings.py +0 -98
- package/venv/lib/python3.10/site-packages/bs4/builder/__init__.py +0 -848
- package/venv/lib/python3.10/site-packages/bs4/builder/_html5lib.py +0 -594
- package/venv/lib/python3.10/site-packages/bs4/builder/_htmlparser.py +0 -474
- package/venv/lib/python3.10/site-packages/bs4/builder/_lxml.py +0 -490
- package/venv/lib/python3.10/site-packages/bs4/css.py +0 -338
- package/venv/lib/python3.10/site-packages/bs4/dammit.py +0 -1408
- package/venv/lib/python3.10/site-packages/bs4/diagnose.py +0 -268
- package/venv/lib/python3.10/site-packages/bs4/element.py +0 -2886
- package/venv/lib/python3.10/site-packages/bs4/exceptions.py +0 -28
- package/venv/lib/python3.10/site-packages/bs4/filter.py +0 -755
- package/venv/lib/python3.10/site-packages/bs4/formatter.py +0 -276
- package/venv/lib/python3.10/site-packages/bs4/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/__init__.py +0 -1305
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4670634698080256.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4818336571064320.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4999465949331456.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5000587759190016.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5167584867909632.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5270998950477824.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5375146639360000.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5492400320282624.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5703933063462912.testcase +0 -2
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5843991618256896.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5984173902397440.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6124268085182464.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6241471367348224.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6306874195312640.testcase +0 -1
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6450958476902400.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6600557255327744.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/crash-0d306a50c8ed8bcd0785b67000fcd5dea1d33f08.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/crash-ffbdfa8a2b26f13537b68d3794b0478a4090ee4a.testcase +0 -0
- package/venv/lib/python3.10/site-packages/bs4/tests/test_builder.py +0 -28
- package/venv/lib/python3.10/site-packages/bs4/tests/test_builder_registry.py +0 -139
- package/venv/lib/python3.10/site-packages/bs4/tests/test_css.py +0 -536
- package/venv/lib/python3.10/site-packages/bs4/tests/test_dammit.py +0 -433
- package/venv/lib/python3.10/site-packages/bs4/tests/test_element.py +0 -138
- package/venv/lib/python3.10/site-packages/bs4/tests/test_filter.py +0 -674
- package/venv/lib/python3.10/site-packages/bs4/tests/test_formatter.py +0 -170
- package/venv/lib/python3.10/site-packages/bs4/tests/test_fuzz.py +0 -181
- package/venv/lib/python3.10/site-packages/bs4/tests/test_html5lib.py +0 -264
- package/venv/lib/python3.10/site-packages/bs4/tests/test_htmlparser.py +0 -161
- package/venv/lib/python3.10/site-packages/bs4/tests/test_lxml.py +0 -196
- package/venv/lib/python3.10/site-packages/bs4/tests/test_navigablestring.py +0 -144
- package/venv/lib/python3.10/site-packages/bs4/tests/test_pageelement.py +0 -437
- package/venv/lib/python3.10/site-packages/bs4/tests/test_soup.py +0 -602
- package/venv/lib/python3.10/site-packages/bs4/tests/test_tag.py +0 -241
- package/venv/lib/python3.10/site-packages/bs4/tests/test_tree.py +0 -1452
- package/venv/lib/python3.10/site-packages/cachetools/__init__.py +0 -859
- package/venv/lib/python3.10/site-packages/cachetools/func.py +0 -121
- package/venv/lib/python3.10/site-packages/cachetools/keys.py +0 -62
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/LICENSE +0 -20
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/METADATA +0 -151
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/RECORD +0 -13
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/WHEEL +0 -5
- package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/certifi/__init__.py +0 -4
- package/venv/lib/python3.10/site-packages/certifi/__main__.py +0 -12
- package/venv/lib/python3.10/site-packages/certifi/cacert.pem +0 -4897
- package/venv/lib/python3.10/site-packages/certifi/core.py +0 -114
- package/venv/lib/python3.10/site-packages/certifi/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/LICENSE +0 -20
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/METADATA +0 -77
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/RECORD +0 -14
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/WHEEL +0 -5
- package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/cffi/__init__.py +0 -14
- package/venv/lib/python3.10/site-packages/cffi/_cffi_errors.h +0 -149
- package/venv/lib/python3.10/site-packages/cffi/_cffi_include.h +0 -389
- package/venv/lib/python3.10/site-packages/cffi/_embedding.h +0 -550
- package/venv/lib/python3.10/site-packages/cffi/_imp_emulation.py +0 -83
- package/venv/lib/python3.10/site-packages/cffi/_shimmed_dist_utils.py +0 -45
- package/venv/lib/python3.10/site-packages/cffi/api.py +0 -967
- package/venv/lib/python3.10/site-packages/cffi/backend_ctypes.py +0 -1121
- package/venv/lib/python3.10/site-packages/cffi/cffi_opcode.py +0 -187
- package/venv/lib/python3.10/site-packages/cffi/commontypes.py +0 -82
- package/venv/lib/python3.10/site-packages/cffi/cparser.py +0 -1015
- package/venv/lib/python3.10/site-packages/cffi/error.py +0 -31
- package/venv/lib/python3.10/site-packages/cffi/ffiplatform.py +0 -113
- package/venv/lib/python3.10/site-packages/cffi/lock.py +0 -30
- package/venv/lib/python3.10/site-packages/cffi/model.py +0 -618
- package/venv/lib/python3.10/site-packages/cffi/parse_c_type.h +0 -181
- package/venv/lib/python3.10/site-packages/cffi/pkgconfig.py +0 -121
- package/venv/lib/python3.10/site-packages/cffi/recompiler.py +0 -1598
- package/venv/lib/python3.10/site-packages/cffi/setuptools_ext.py +0 -216
- package/venv/lib/python3.10/site-packages/cffi/vengine_cpy.py +0 -1084
- package/venv/lib/python3.10/site-packages/cffi/vengine_gen.py +0 -679
- package/venv/lib/python3.10/site-packages/cffi/verifier.py +0 -306
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/LICENSE +0 -26
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/METADATA +0 -40
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/RECORD +0 -48
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/entry_points.txt +0 -2
- package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/top_level.txt +0 -2
- package/venv/lib/python3.10/site-packages/charset_normalizer/__init__.py +0 -48
- package/venv/lib/python3.10/site-packages/charset_normalizer/__main__.py +0 -6
- package/venv/lib/python3.10/site-packages/charset_normalizer/api.py +0 -668
- package/venv/lib/python3.10/site-packages/charset_normalizer/cd.py +0 -395
- package/venv/lib/python3.10/site-packages/charset_normalizer/cli/__init__.py +0 -8
- package/venv/lib/python3.10/site-packages/charset_normalizer/cli/__main__.py +0 -321
- package/venv/lib/python3.10/site-packages/charset_normalizer/constant.py +0 -1998
- package/venv/lib/python3.10/site-packages/charset_normalizer/legacy.py +0 -66
- package/venv/lib/python3.10/site-packages/charset_normalizer/md.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/md.py +0 -630
- package/venv/lib/python3.10/site-packages/charset_normalizer/md__mypyc.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/models.py +0 -360
- package/venv/lib/python3.10/site-packages/charset_normalizer/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/charset_normalizer/utils.py +0 -408
- package/venv/lib/python3.10/site-packages/charset_normalizer/version.py +0 -8
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/LICENSE +0 -21
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/METADATA +0 -721
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/RECORD +0 -35
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/entry_points.txt +0 -2
- package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/cloudscraper/__init__.py +0 -407
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/2captcha.py +0 -258
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/9kw.py +0 -214
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/__init__.py +0 -47
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/anticaptcha.py +0 -199
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/capmonster.py +0 -199
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/capsolver.py +0 -188
- package/venv/lib/python3.10/site-packages/cloudscraper/captcha/deathbycaptcha.py +0 -276
- package/venv/lib/python3.10/site-packages/cloudscraper/cloudflare.py +0 -490
- package/venv/lib/python3.10/site-packages/cloudscraper/exceptions.py +0 -111
- package/venv/lib/python3.10/site-packages/cloudscraper/help.py +0 -72
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/__init__.py +0 -56
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/chakracore.py +0 -103
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/encapsulated.py +0 -62
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/js2py.py +0 -44
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/jsunfuck.py +0 -97
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/native.py +0 -233
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/nodejs.py +0 -49
- package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/v8.py +0 -33
- package/venv/lib/python3.10/site-packages/cloudscraper/user_agent/__init__.py +0 -124
- package/venv/lib/python3.10/site-packages/cloudscraper/user_agent/browsers.json +0 -7913
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/LICENSE +0 -22
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/METADATA +0 -674
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/RECORD +0 -48
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/curl_cffi/__init__.py +0 -37
- package/venv/lib/python3.10/site-packages/curl_cffi/__version__.py +0 -8
- package/venv/lib/python3.10/site-packages/curl_cffi/_asyncio_selector.py +0 -344
- package/venv/lib/python3.10/site-packages/curl_cffi/_wrapper.abi3.so +0 -0
- package/venv/lib/python3.10/site-packages/curl_cffi/aio.py +0 -257
- package/venv/lib/python3.10/site-packages/curl_cffi/const.py +0 -581
- package/venv/lib/python3.10/site-packages/curl_cffi/curl.py +0 -548
- package/venv/lib/python3.10/site-packages/curl_cffi/py.typed +0 -1
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/__init__.py +0 -146
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/cookies.py +0 -355
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/errors.py +0 -7
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/exceptions.py +0 -219
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/headers.py +0 -348
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/impersonate.py +0 -360
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/models.py +0 -292
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/session.py +0 -1021
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/utils.py +0 -663
- package/venv/lib/python3.10/site-packages/curl_cffi/requests/websockets.py +0 -711
- package/venv/lib/python3.10/site-packages/curl_cffi/utils.py +0 -13
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/LICENSE +0 -21
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/METADATA +0 -333
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/RECORD +0 -43
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/distutils-precedence.pth +0 -1
- package/venv/lib/python3.10/site-packages/frozenlist/__init__.py +0 -98
- package/venv/lib/python3.10/site-packages/frozenlist/__init__.pyi +0 -47
- package/venv/lib/python3.10/site-packages/frozenlist/_frozenlist.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/frozenlist/_frozenlist.pyx +0 -123
- package/venv/lib/python3.10/site-packages/frozenlist/py.typed +0 -1
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/LICENSE +0 -201
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/METADATA +0 -477
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/RECORD +0 -12
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/WHEEL +0 -8
- package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/idna/__init__.py +0 -45
- package/venv/lib/python3.10/site-packages/idna/codec.py +0 -122
- package/venv/lib/python3.10/site-packages/idna/compat.py +0 -15
- package/venv/lib/python3.10/site-packages/idna/core.py +0 -437
- package/venv/lib/python3.10/site-packages/idna/idnadata.py +0 -4243
- package/venv/lib/python3.10/site-packages/idna/intranges.py +0 -57
- package/venv/lib/python3.10/site-packages/idna/package_data.py +0 -1
- package/venv/lib/python3.10/site-packages/idna/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/idna/uts46data.py +0 -8681
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/LICENSE.md +0 -31
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/METADATA +0 -250
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/RECORD +0 -22
- package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/multidict/__init__.py +0 -48
- package/venv/lib/python3.10/site-packages/multidict/__init__.pyi +0 -152
- package/venv/lib/python3.10/site-packages/multidict/_abc.py +0 -48
- package/venv/lib/python3.10/site-packages/multidict/_compat.py +0 -14
- package/venv/lib/python3.10/site-packages/multidict/_multidict.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/multidict/_multidict_base.py +0 -152
- package/venv/lib/python3.10/site-packages/multidict/_multidict_py.py +0 -527
- package/venv/lib/python3.10/site-packages/multidict/py.typed +0 -1
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/LICENSE +0 -13
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/METADATA +0 -140
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/RECORD +0 -19
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/paho/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/__init__.py +0 -5
- package/venv/lib/python3.10/site-packages/paho/mqtt/client.py +0 -5004
- package/venv/lib/python3.10/site-packages/paho/mqtt/enums.py +0 -113
- package/venv/lib/python3.10/site-packages/paho/mqtt/matcher.py +0 -78
- package/venv/lib/python3.10/site-packages/paho/mqtt/packettypes.py +0 -43
- package/venv/lib/python3.10/site-packages/paho/mqtt/properties.py +0 -421
- package/venv/lib/python3.10/site-packages/paho/mqtt/publish.py +0 -306
- package/venv/lib/python3.10/site-packages/paho/mqtt/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/paho/mqtt/reasoncodes.py +0 -223
- package/venv/lib/python3.10/site-packages/paho/mqtt/subscribe.py +0 -281
- package/venv/lib/python3.10/site-packages/paho/mqtt/subscribeoptions.py +0 -113
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/METADATA +0 -635
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/RECORD +0 -29
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/licenses/LICENSE.txt +0 -3
- package/venv/lib/python3.10/site-packages/pip/__init__.py +0 -13
- package/venv/lib/python3.10/site-packages/pip/__main__.py +0 -31
- package/venv/lib/python3.10/site-packages/pip/_internal/__init__.py +0 -19
- package/venv/lib/python3.10/site-packages/pip/_internal/build_env.py +0 -296
- package/venv/lib/python3.10/site-packages/pip/_internal/cache.py +0 -264
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/__init__.py +0 -4
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/autocompletion.py +0 -171
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/base_command.py +0 -220
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/cmdoptions.py +0 -1018
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/command_context.py +0 -27
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/main.py +0 -70
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/main_parser.py +0 -87
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/parser.py +0 -292
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/progress_bars.py +0 -321
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/req_command.py +0 -506
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/spinners.py +0 -157
- package/venv/lib/python3.10/site-packages/pip/_internal/cli/status_codes.py +0 -6
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/__init__.py +0 -127
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/cache.py +0 -223
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/check.py +0 -53
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/completion.py +0 -96
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/configuration.py +0 -266
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/debug.py +0 -202
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/download.py +0 -140
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/freeze.py +0 -97
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/hash.py +0 -59
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/help.py +0 -41
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/index.py +0 -139
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/install.py +0 -771
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/list.py +0 -363
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/search.py +0 -174
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/show.py +0 -178
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/uninstall.py +0 -105
- package/venv/lib/python3.10/site-packages/pip/_internal/commands/wheel.py +0 -178
- package/venv/lib/python3.10/site-packages/pip/_internal/configuration.py +0 -366
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/__init__.py +0 -21
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/base.py +0 -36
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/installed.py +0 -20
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py +0 -127
- package/venv/lib/python3.10/site-packages/pip/_internal/distributions/wheel.py +0 -31
- package/venv/lib/python3.10/site-packages/pip/_internal/exceptions.py +0 -658
- package/venv/lib/python3.10/site-packages/pip/_internal/index/__init__.py +0 -2
- package/venv/lib/python3.10/site-packages/pip/_internal/index/collector.py +0 -648
- package/venv/lib/python3.10/site-packages/pip/_internal/index/package_finder.py +0 -1004
- package/venv/lib/python3.10/site-packages/pip/_internal/index/sources.py +0 -224
- package/venv/lib/python3.10/site-packages/pip/_internal/locations/__init__.py +0 -520
- package/venv/lib/python3.10/site-packages/pip/_internal/locations/_distutils.py +0 -169
- package/venv/lib/python3.10/site-packages/pip/_internal/locations/_sysconfig.py +0 -219
- package/venv/lib/python3.10/site-packages/pip/_internal/locations/base.py +0 -52
- package/venv/lib/python3.10/site-packages/pip/_internal/main.py +0 -12
- package/venv/lib/python3.10/site-packages/pip/_internal/metadata/__init__.py +0 -62
- package/venv/lib/python3.10/site-packages/pip/_internal/metadata/base.py +0 -546
- package/venv/lib/python3.10/site-packages/pip/_internal/metadata/pkg_resources.py +0 -256
- package/venv/lib/python3.10/site-packages/pip/_internal/models/__init__.py +0 -2
- package/venv/lib/python3.10/site-packages/pip/_internal/models/candidate.py +0 -34
- package/venv/lib/python3.10/site-packages/pip/_internal/models/direct_url.py +0 -220
- package/venv/lib/python3.10/site-packages/pip/_internal/models/format_control.py +0 -80
- package/venv/lib/python3.10/site-packages/pip/_internal/models/index.py +0 -28
- package/venv/lib/python3.10/site-packages/pip/_internal/models/link.py +0 -288
- package/venv/lib/python3.10/site-packages/pip/_internal/models/scheme.py +0 -31
- package/venv/lib/python3.10/site-packages/pip/_internal/models/search_scope.py +0 -129
- package/venv/lib/python3.10/site-packages/pip/_internal/models/selection_prefs.py +0 -51
- package/venv/lib/python3.10/site-packages/pip/_internal/models/target_python.py +0 -110
- package/venv/lib/python3.10/site-packages/pip/_internal/models/wheel.py +0 -89
- package/venv/lib/python3.10/site-packages/pip/_internal/network/__init__.py +0 -2
- package/venv/lib/python3.10/site-packages/pip/_internal/network/auth.py +0 -323
- package/venv/lib/python3.10/site-packages/pip/_internal/network/cache.py +0 -69
- package/venv/lib/python3.10/site-packages/pip/_internal/network/download.py +0 -185
- package/venv/lib/python3.10/site-packages/pip/_internal/network/lazy_wheel.py +0 -210
- package/venv/lib/python3.10/site-packages/pip/_internal/network/session.py +0 -454
- package/venv/lib/python3.10/site-packages/pip/_internal/network/utils.py +0 -96
- package/venv/lib/python3.10/site-packages/pip/_internal/network/xmlrpc.py +0 -60
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/metadata.py +0 -39
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_editable.py +0 -41
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_legacy.py +0 -74
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/wheel.py +0 -37
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_editable.py +0 -46
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_legacy.py +0 -102
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/check.py +0 -149
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/freeze.py +0 -254
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/__init__.py +0 -2
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/editable_legacy.py +0 -47
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/legacy.py +0 -120
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/wheel.py +0 -738
- package/venv/lib/python3.10/site-packages/pip/_internal/operations/prepare.py +0 -642
- package/venv/lib/python3.10/site-packages/pip/_internal/pyproject.py +0 -168
- package/venv/lib/python3.10/site-packages/pip/_internal/req/__init__.py +0 -94
- package/venv/lib/python3.10/site-packages/pip/_internal/req/constructors.py +0 -490
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_file.py +0 -536
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_install.py +0 -858
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_set.py +0 -189
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_tracker.py +0 -124
- package/venv/lib/python3.10/site-packages/pip/_internal/req/req_uninstall.py +0 -633
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/base.py +0 -20
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/legacy/resolver.py +0 -467
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/base.py +0 -141
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py +0 -547
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py +0 -739
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +0 -155
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/provider.py +0 -248
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/reporter.py +0 -68
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/requirements.py +0 -166
- package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py +0 -292
- package/venv/lib/python3.10/site-packages/pip/_internal/self_outdated_check.py +0 -189
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/_log.py +0 -38
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/appdirs.py +0 -52
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/compat.py +0 -63
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/compatibility_tags.py +0 -165
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/datetime.py +0 -11
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/deprecation.py +0 -120
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/direct_url_helpers.py +0 -87
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/distutils_args.py +0 -42
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/egg_link.py +0 -75
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/encoding.py +0 -36
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/entrypoints.py +0 -27
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/filesystem.py +0 -182
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/filetypes.py +0 -27
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/glibc.py +0 -88
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/hashes.py +0 -144
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/inject_securetransport.py +0 -35
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/logging.py +0 -343
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/misc.py +0 -653
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/models.py +0 -39
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/packaging.py +0 -57
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/setuptools_build.py +0 -195
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/subprocess.py +0 -260
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/temp_dir.py +0 -246
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/unpacking.py +0 -258
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/urls.py +0 -62
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/virtualenv.py +0 -104
- package/venv/lib/python3.10/site-packages/pip/_internal/utils/wheel.py +0 -136
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/__init__.py +0 -15
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/bazaar.py +0 -101
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/git.py +0 -526
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/mercurial.py +0 -163
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/subversion.py +0 -324
- package/venv/lib/python3.10/site-packages/pip/_internal/vcs/versioncontrol.py +0 -705
- package/venv/lib/python3.10/site-packages/pip/_internal/wheel_builder.py +0 -377
- package/venv/lib/python3.10/site-packages/pip/_vendor/__init__.py +0 -111
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/__init__.py +0 -18
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/_cmd.py +0 -61
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/adapter.py +0 -137
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/cache.py +0 -43
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +0 -6
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +0 -150
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +0 -37
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/compat.py +0 -32
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/controller.py +0 -415
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/filewrapper.py +0 -111
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/heuristics.py +0 -139
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/serialize.py +0 -186
- package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/wrapper.py +0 -33
- package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/__init__.py +0 -3
- package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/__main__.py +0 -12
- package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/cacert.pem +0 -4362
- package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/core.py +0 -76
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/__init__.py +0 -83
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/big5freq.py +0 -386
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/big5prober.py +0 -47
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/chardistribution.py +0 -233
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/charsetgroupprober.py +0 -107
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/charsetprober.py +0 -145
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/cli/__init__.py +0 -1
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/cli/chardetect.py +0 -84
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/codingstatemachine.py +0 -88
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/compat.py +0 -36
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/cp949prober.py +0 -49
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/enums.py +0 -76
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/escprober.py +0 -101
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/escsm.py +0 -246
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/eucjpprober.py +0 -92
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euckrfreq.py +0 -195
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euckrprober.py +0 -47
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euctwfreq.py +0 -387
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euctwprober.py +0 -46
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/gb2312freq.py +0 -283
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/gb2312prober.py +0 -46
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/hebrewprober.py +0 -292
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/jisfreq.py +0 -325
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/jpcntx.py +0 -233
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langbulgarianmodel.py +0 -4650
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langgreekmodel.py +0 -4398
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langhebrewmodel.py +0 -4383
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langhungarianmodel.py +0 -4650
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langrussianmodel.py +0 -5718
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langthaimodel.py +0 -4383
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langturkishmodel.py +0 -4383
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/latin1prober.py +0 -145
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/mbcharsetprober.py +0 -91
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/mbcsgroupprober.py +0 -54
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/mbcssm.py +0 -572
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/metadata/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/metadata/languages.py +0 -310
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/sbcharsetprober.py +0 -145
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/sbcsgroupprober.py +0 -83
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/sjisprober.py +0 -92
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/universaldetector.py +0 -286
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/utf8prober.py +0 -82
- package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/version.py +0 -9
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/__init__.py +0 -6
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/ansi.py +0 -102
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/ansitowin32.py +0 -258
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/initialise.py +0 -80
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/win32.py +0 -152
- package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/winterm.py +0 -169
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/__init__.py +0 -23
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/compat.py +0 -1116
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/database.py +0 -1345
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/index.py +0 -509
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/locators.py +0 -1300
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/manifest.py +0 -393
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/markers.py +0 -152
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/metadata.py +0 -1058
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/resources.py +0 -358
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/scripts.py +0 -429
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/util.py +0 -1932
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/version.py +0 -739
- package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/wheel.py +0 -1053
- package/venv/lib/python3.10/site-packages/pip/_vendor/distro.py +0 -1386
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/__init__.py +0 -35
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_ihatexml.py +0 -289
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_inputstream.py +0 -918
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_tokenizer.py +0 -1735
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_trie/__init__.py +0 -5
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_trie/_base.py +0 -40
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_trie/py.py +0 -67
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_utils.py +0 -159
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/constants.py +0 -2946
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py +0 -29
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/base.py +0 -12
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py +0 -73
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/lint.py +0 -93
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/optionaltags.py +0 -207
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/sanitizer.py +0 -916
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/whitespace.py +0 -38
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/html5parser.py +0 -2795
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/serializer.py +0 -409
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py +0 -30
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py +0 -54
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treeadapters/sax.py +0 -50
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py +0 -88
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/base.py +0 -417
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/dom.py +0 -239
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/etree.py +0 -343
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py +0 -392
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py +0 -154
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/base.py +0 -252
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/dom.py +0 -43
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/etree.py +0 -131
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/etree_lxml.py +0 -215
- package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/genshi.py +0 -69
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/__init__.py +0 -44
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/codec.py +0 -112
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/compat.py +0 -13
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/core.py +0 -397
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/idnadata.py +0 -2137
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/intranges.py +0 -54
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/package_data.py +0 -2
- package/venv/lib/python3.10/site-packages/pip/_vendor/idna/uts46data.py +0 -8512
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/__init__.py +0 -54
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/_version.py +0 -1
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/exceptions.py +0 -48
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/ext.py +0 -193
- package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/fallback.py +0 -1012
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/__about__.py +0 -26
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/__init__.py +0 -25
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/_manylinux.py +0 -301
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/_musllinux.py +0 -136
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/_structures.py +0 -61
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/markers.py +0 -304
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/requirements.py +0 -146
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/specifiers.py +0 -802
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/tags.py +0 -487
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/utils.py +0 -136
- package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/version.py +0 -504
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/__init__.py +0 -6
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/build.py +0 -127
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/check.py +0 -207
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/colorlog.py +0 -115
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/compat.py +0 -51
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/dirtools.py +0 -44
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/envbuild.py +0 -171
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/__init__.py +0 -17
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py +0 -363
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/meta.py +0 -92
- package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/wrappers.py +0 -375
- package/venv/lib/python3.10/site-packages/pip/_vendor/pkg_resources/__init__.py +0 -3296
- package/venv/lib/python3.10/site-packages/pip/_vendor/pkg_resources/py31compat.py +0 -23
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/__init__.py +0 -331
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/__main__.py +0 -46
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/android.py +0 -119
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/api.py +0 -156
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/macos.py +0 -64
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/unix.py +0 -181
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/version.py +0 -4
- package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/windows.py +0 -182
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/__init__.py +0 -189
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/bar.py +0 -93
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/colors.py +0 -79
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/counter.py +0 -47
- package/venv/lib/python3.10/site-packages/pip/_vendor/progress/spinner.py +0 -45
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/__init__.py +0 -83
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/__main__.py +0 -17
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/cmdline.py +0 -663
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/console.py +0 -70
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/filter.py +0 -71
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/filters/__init__.py +0 -937
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatter.py +0 -94
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/__init__.py +0 -153
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/_mapping.py +0 -84
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/bbcode.py +0 -108
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/groff.py +0 -168
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/html.py +0 -983
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/img.py +0 -641
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/irc.py +0 -179
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/latex.py +0 -511
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/other.py +0 -161
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/pangomarkup.py +0 -83
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/rtf.py +0 -146
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/svg.py +0 -188
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/terminal.py +0 -127
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/terminal256.py +0 -338
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexer.py +0 -879
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexers/__init__.py +0 -341
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexers/_mapping.py +0 -580
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexers/python.py +0 -1188
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/modeline.py +0 -43
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/plugin.py +0 -69
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/regexopt.py +0 -91
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/scanner.py +0 -104
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/sphinxext.py +0 -155
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/style.py +0 -197
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/styles/__init__.py +0 -93
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/token.py +0 -212
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/unistring.py +0 -153
- package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/util.py +0 -308
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/__init__.py +0 -328
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/actions.py +0 -207
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/common.py +0 -424
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/core.py +0 -5789
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/diagram/__init__.py +0 -593
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/exceptions.py +0 -267
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/helpers.py +0 -1069
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/results.py +0 -760
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/testing.py +0 -331
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/unicode.py +0 -332
- package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/util.py +0 -235
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/__init__.py +0 -154
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/__version__.py +0 -14
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/_internal_utils.py +0 -42
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/adapters.py +0 -538
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/api.py +0 -159
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/auth.py +0 -305
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/certs.py +0 -18
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/compat.py +0 -77
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/cookies.py +0 -549
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/exceptions.py +0 -133
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/help.py +0 -132
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/hooks.py +0 -34
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/models.py +0 -973
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/packages.py +0 -16
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/sessions.py +0 -771
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/status_codes.py +0 -123
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/structures.py +0 -105
- package/venv/lib/python3.10/site-packages/pip/_vendor/requests/utils.py +0 -1060
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/__init__.py +0 -26
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/compat/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/compat/collections_abc.py +0 -6
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/providers.py +0 -133
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/reporters.py +0 -43
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py +0 -482
- package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/structs.py +0 -165
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/__init__.py +0 -172
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/__main__.py +0 -280
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_cell_widths.py +0 -451
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_emoji_codes.py +0 -3610
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_emoji_replace.py +0 -32
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_extension.py +0 -10
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_inspect.py +0 -210
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_log_render.py +0 -94
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_loop.py +0 -43
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_lru_cache.py +0 -34
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_palettes.py +0 -309
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_pick.py +0 -17
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_ratio.py +0 -160
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_spinners.py +0 -848
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_stack.py +0 -16
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_timer.py +0 -19
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_windows.py +0 -72
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_wrap.py +0 -55
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/abc.py +0 -33
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/align.py +0 -312
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/ansi.py +0 -228
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/bar.py +0 -94
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/box.py +0 -483
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/cells.py +0 -147
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/color.py +0 -581
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/color_triplet.py +0 -38
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/columns.py +0 -187
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/console.py +0 -2211
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/constrain.py +0 -37
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/containers.py +0 -167
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/control.py +0 -175
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/default_styles.py +0 -183
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/diagnose.py +0 -6
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/emoji.py +0 -96
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/errors.py +0 -34
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/file_proxy.py +0 -54
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/filesize.py +0 -89
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/highlighter.py +0 -147
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/json.py +0 -140
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/jupyter.py +0 -92
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/layout.py +0 -444
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/live.py +0 -365
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/live_render.py +0 -113
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/logging.py +0 -268
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/markup.py +0 -244
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/measure.py +0 -149
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/padding.py +0 -141
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/pager.py +0 -34
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/palette.py +0 -100
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/panel.py +0 -250
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/pretty.py +0 -903
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/progress.py +0 -1036
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/progress_bar.py +0 -216
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/prompt.py +0 -376
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/protocol.py +0 -42
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/region.py +0 -10
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/repr.py +0 -151
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/rule.py +0 -115
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/scope.py +0 -86
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/screen.py +0 -54
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/segment.py +0 -720
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/spinner.py +0 -134
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/status.py +0 -132
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/style.py +0 -785
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/styled.py +0 -42
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/syntax.py +0 -735
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/table.py +0 -968
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/tabulate.py +0 -51
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/terminal_theme.py +0 -55
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/text.py +0 -1282
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/theme.py +0 -112
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/themes.py +0 -5
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/traceback.py +0 -678
- package/venv/lib/python3.10/site-packages/pip/_vendor/rich/tree.py +0 -249
- package/venv/lib/python3.10/site-packages/pip/_vendor/six.py +0 -998
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/__init__.py +0 -517
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/_asyncio.py +0 -92
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/_utils.py +0 -68
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/after.py +0 -46
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/before.py +0 -41
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/before_sleep.py +0 -58
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/nap.py +0 -43
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/retry.py +0 -213
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/stop.py +0 -96
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/tornadoweb.py +0 -59
- package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/wait.py +0 -191
- package/venv/lib/python3.10/site-packages/pip/_vendor/tomli/__init__.py +0 -6
- package/venv/lib/python3.10/site-packages/pip/_vendor/tomli/_parser.py +0 -703
- package/venv/lib/python3.10/site-packages/pip/_vendor/tomli/_re.py +0 -83
- package/venv/lib/python3.10/site-packages/pip/_vendor/typing_extensions.py +0 -2296
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/__init__.py +0 -85
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/_collections.py +0 -355
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/_version.py +0 -2
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/connection.py +0 -569
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/connectionpool.py +0 -1113
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +0 -36
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +0 -519
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +0 -397
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/appengine.py +0 -314
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +0 -130
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +0 -511
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +0 -922
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/socks.py +0 -216
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/exceptions.py +0 -323
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/fields.py +0 -274
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/filepost.py +0 -98
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +0 -51
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/six.py +0 -1077
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/poolmanager.py +0 -539
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/request.py +0 -170
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py +0 -821
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/__init__.py +0 -49
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/connection.py +0 -149
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/proxy.py +0 -57
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/queue.py +0 -22
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/request.py +0 -143
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/response.py +0 -107
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/retry.py +0 -622
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/ssl_.py +0 -495
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py +0 -161
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/ssltransport.py +0 -221
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/timeout.py +0 -268
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/url.py +0 -432
- package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/wait.py +0 -153
- package/venv/lib/python3.10/site-packages/pip/_vendor/vendor.txt +0 -25
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/__init__.py +0 -342
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/labels.py +0 -231
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/mklabels.py +0 -59
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/tests.py +0 -153
- package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/x_user_defined.py +0 -325
- package/venv/lib/python3.10/site-packages/pip/py.typed +0 -4
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/LICENSE.txt +0 -20
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/METADATA +0 -92
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/RECORD +0 -1037
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/WHEEL +0 -5
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/entry_points.txt +0 -5
- package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/pkg_resources/__init__.py +0 -3303
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/appdirs.py +0 -608
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__about__.py +0 -26
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__init__.py +0 -25
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/_manylinux.py +0 -301
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/_musllinux.py +0 -136
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/_structures.py +0 -67
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/markers.py +0 -304
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/requirements.py +0 -146
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/specifiers.py +0 -828
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/tags.py +0 -484
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/utils.py +0 -136
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/version.py +0 -504
- package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/pyparsing.py +0 -5742
- package/venv/lib/python3.10/site-packages/pkg_resources/extern/__init__.py +0 -73
- package/venv/lib/python3.10/site-packages/pkg_resources/tests/data/my-test-package-source/setup.py +0 -6
- package/venv/lib/python3.10/site-packages/propcache/__init__.py +0 -32
- package/venv/lib/python3.10/site-packages/propcache/_helpers.py +0 -39
- package/venv/lib/python3.10/site-packages/propcache/_helpers_c.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/propcache/_helpers_c.pyx +0 -84
- package/venv/lib/python3.10/site-packages/propcache/_helpers_py.py +0 -56
- package/venv/lib/python3.10/site-packages/propcache/api.py +0 -8
- package/venv/lib/python3.10/site-packages/propcache/py.typed +0 -1
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/LICENSE +0 -202
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/METADATA +0 -275
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/NOTICE +0 -13
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/RECORD +0 -18
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/pycparser/__init__.py +0 -93
- package/venv/lib/python3.10/site-packages/pycparser/_ast_gen.py +0 -336
- package/venv/lib/python3.10/site-packages/pycparser/_build_tables.py +0 -40
- package/venv/lib/python3.10/site-packages/pycparser/_c_ast.cfg +0 -195
- package/venv/lib/python3.10/site-packages/pycparser/ast_transforms.py +0 -164
- package/venv/lib/python3.10/site-packages/pycparser/c_ast.py +0 -1125
- package/venv/lib/python3.10/site-packages/pycparser/c_generator.py +0 -502
- package/venv/lib/python3.10/site-packages/pycparser/c_lexer.py +0 -555
- package/venv/lib/python3.10/site-packages/pycparser/c_parser.py +0 -1950
- package/venv/lib/python3.10/site-packages/pycparser/lextab.py +0 -10
- package/venv/lib/python3.10/site-packages/pycparser/ply/__init__.py +0 -5
- package/venv/lib/python3.10/site-packages/pycparser/ply/cpp.py +0 -905
- package/venv/lib/python3.10/site-packages/pycparser/ply/ctokens.py +0 -133
- package/venv/lib/python3.10/site-packages/pycparser/ply/lex.py +0 -1099
- package/venv/lib/python3.10/site-packages/pycparser/ply/yacc.py +0 -3494
- package/venv/lib/python3.10/site-packages/pycparser/ply/ygen.py +0 -74
- package/venv/lib/python3.10/site-packages/pycparser/plyparser.py +0 -133
- package/venv/lib/python3.10/site-packages/pycparser/yacctab.py +0 -369
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/LICENSE +0 -27
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/METADATA +0 -28
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/RECORD +0 -41
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/WHEEL +0 -5
- package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/pyparsing/__init__.py +0 -326
- package/venv/lib/python3.10/site-packages/pyparsing/actions.py +0 -219
- package/venv/lib/python3.10/site-packages/pyparsing/common.py +0 -434
- package/venv/lib/python3.10/site-packages/pyparsing/core.py +0 -6226
- package/venv/lib/python3.10/site-packages/pyparsing/diagram/__init__.py +0 -744
- package/venv/lib/python3.10/site-packages/pyparsing/exceptions.py +0 -314
- package/venv/lib/python3.10/site-packages/pyparsing/helpers.py +0 -1102
- package/venv/lib/python3.10/site-packages/pyparsing/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/pyparsing/results.py +0 -816
- package/venv/lib/python3.10/site-packages/pyparsing/testing.py +0 -362
- package/venv/lib/python3.10/site-packages/pyparsing/unicode.py +0 -356
- package/venv/lib/python3.10/site-packages/pyparsing/util.py +0 -398
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/LICENSE +0 -18
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/METADATA +0 -124
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/RECORD +0 -28
- package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/requests/__init__.py +0 -184
- package/venv/lib/python3.10/site-packages/requests/__version__.py +0 -14
- package/venv/lib/python3.10/site-packages/requests/_internal_utils.py +0 -50
- package/venv/lib/python3.10/site-packages/requests/adapters.py +0 -719
- package/venv/lib/python3.10/site-packages/requests/api.py +0 -157
- package/venv/lib/python3.10/site-packages/requests/auth.py +0 -314
- package/venv/lib/python3.10/site-packages/requests/certs.py +0 -17
- package/venv/lib/python3.10/site-packages/requests/compat.py +0 -94
- package/venv/lib/python3.10/site-packages/requests/cookies.py +0 -561
- package/venv/lib/python3.10/site-packages/requests/exceptions.py +0 -151
- package/venv/lib/python3.10/site-packages/requests/help.py +0 -134
- package/venv/lib/python3.10/site-packages/requests/hooks.py +0 -33
- package/venv/lib/python3.10/site-packages/requests/models.py +0 -1037
- package/venv/lib/python3.10/site-packages/requests/packages.py +0 -23
- package/venv/lib/python3.10/site-packages/requests/sessions.py +0 -831
- package/venv/lib/python3.10/site-packages/requests/status_codes.py +0 -128
- package/venv/lib/python3.10/site-packages/requests/structures.py +0 -99
- package/venv/lib/python3.10/site-packages/requests/utils.py +0 -1096
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/LICENSE +0 -175
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/METADATA +0 -119
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/RECORD +0 -43
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/WHEEL +0 -5
- package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/requests_toolbelt/__init__.py +0 -34
- package/venv/lib/python3.10/site-packages/requests_toolbelt/_compat.py +0 -302
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/__init__.py +0 -15
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/appengine.py +0 -206
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/fingerprint.py +0 -48
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/host_header_ssl.py +0 -43
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/socket_options.py +0 -129
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/source.py +0 -67
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/ssl.py +0 -66
- package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/x509.py +0 -196
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/_digest_auth_compat.py +0 -29
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/guess.py +0 -146
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/handler.py +0 -142
- package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/http_proxy_digest.py +0 -103
- package/venv/lib/python3.10/site-packages/requests_toolbelt/cookies/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/cookies/forgetful.py +0 -7
- package/venv/lib/python3.10/site-packages/requests_toolbelt/downloadutils/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/downloadutils/stream.py +0 -176
- package/venv/lib/python3.10/site-packages/requests_toolbelt/downloadutils/tee.py +0 -123
- package/venv/lib/python3.10/site-packages/requests_toolbelt/exceptions.py +0 -25
- package/venv/lib/python3.10/site-packages/requests_toolbelt/multipart/__init__.py +0 -31
- package/venv/lib/python3.10/site-packages/requests_toolbelt/multipart/decoder.py +0 -156
- package/venv/lib/python3.10/site-packages/requests_toolbelt/multipart/encoder.py +0 -655
- package/venv/lib/python3.10/site-packages/requests_toolbelt/sessions.py +0 -89
- package/venv/lib/python3.10/site-packages/requests_toolbelt/streaming_iterator.py +0 -116
- package/venv/lib/python3.10/site-packages/requests_toolbelt/threaded/__init__.py +0 -97
- package/venv/lib/python3.10/site-packages/requests_toolbelt/threaded/pool.py +0 -211
- package/venv/lib/python3.10/site-packages/requests_toolbelt/threaded/thread.py +0 -53
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/deprecated.py +0 -91
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/dump.py +0 -198
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/formdata.py +0 -108
- package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/user_agent.py +0 -143
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/AUTHORS.rst +0 -57
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/LICENSE +0 -13
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/METADATA +0 -521
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/RECORD +0 -75
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/__init__.py +0 -1
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/_scrypted_arlo_go.cpython-310-x86_64-linux-gnu.h +0 -555
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/_scrypted_arlo_go.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/build.py +0 -344
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/go.py +0 -2215
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go.c +0 -6019
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go.go +0 -3612
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go.py +0 -1910
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go_go.h +0 -555
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/METADATA +0 -11
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/RECORD +0 -19
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/WHEEL +0 -8
- package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/setuptools/__init__.py +0 -242
- package/venv/lib/python3.10/site-packages/setuptools/_deprecation_warning.py +0 -7
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/__init__.py +0 -24
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/_msvccompiler.py +0 -561
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/archive_util.py +0 -256
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/bcppcompiler.py +0 -393
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/ccompiler.py +0 -1123
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/cmd.py +0 -403
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/__init__.py +0 -31
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist.py +0 -143
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_dumb.py +0 -123
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_msi.py +0 -749
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_rpm.py +0 -579
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_wininst.py +0 -377
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build.py +0 -157
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_clib.py +0 -209
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py +0 -755
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_py.py +0 -392
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_scripts.py +0 -152
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/check.py +0 -148
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/clean.py +0 -76
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/config.py +0 -344
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install.py +0 -721
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_data.py +0 -79
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_egg_info.py +0 -84
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_headers.py +0 -47
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_lib.py +0 -217
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_scripts.py +0 -60
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/py37compat.py +0 -30
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/register.py +0 -304
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py +0 -494
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/upload.py +0 -214
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/config.py +0 -130
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/core.py +0 -249
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/cygwinccompiler.py +0 -425
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/debug.py +0 -5
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/dep_util.py +0 -92
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/dir_util.py +0 -210
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/dist.py +0 -1257
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/errors.py +0 -97
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/extension.py +0 -240
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/fancy_getopt.py +0 -457
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/file_util.py +0 -238
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/filelist.py +0 -355
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/log.py +0 -77
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/msvc9compiler.py +0 -788
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/msvccompiler.py +0 -643
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/py35compat.py +0 -19
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/py38compat.py +0 -7
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/spawn.py +0 -106
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/sysconfig.py +0 -601
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/text_file.py +0 -286
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py +0 -325
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/util.py +0 -548
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/version.py +0 -363
- package/venv/lib/python3.10/site-packages/setuptools/_distutils/versionpredicate.py +0 -169
- package/venv/lib/python3.10/site-packages/setuptools/_imp.py +0 -82
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/more_itertools/__init__.py +0 -4
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/more_itertools/more.py +0 -3825
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/more_itertools/recipes.py +0 -620
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/ordered_set.py +0 -488
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/__about__.py +0 -26
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/__init__.py +0 -25
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/_manylinux.py +0 -301
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/_musllinux.py +0 -136
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/_structures.py +0 -67
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/markers.py +0 -304
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/requirements.py +0 -146
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/specifiers.py +0 -828
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/tags.py +0 -484
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/utils.py +0 -136
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/version.py +0 -504
- package/venv/lib/python3.10/site-packages/setuptools/_vendor/pyparsing.py +0 -5742
- package/venv/lib/python3.10/site-packages/setuptools/archive_util.py +0 -205
- package/venv/lib/python3.10/site-packages/setuptools/build_meta.py +0 -290
- package/venv/lib/python3.10/site-packages/setuptools/cli-32.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/cli-64.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/cli-arm64.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/cli.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/command/__init__.py +0 -8
- package/venv/lib/python3.10/site-packages/setuptools/command/alias.py +0 -78
- package/venv/lib/python3.10/site-packages/setuptools/command/bdist_egg.py +0 -456
- package/venv/lib/python3.10/site-packages/setuptools/command/bdist_rpm.py +0 -40
- package/venv/lib/python3.10/site-packages/setuptools/command/build_clib.py +0 -101
- package/venv/lib/python3.10/site-packages/setuptools/command/build_ext.py +0 -328
- package/venv/lib/python3.10/site-packages/setuptools/command/build_py.py +0 -242
- package/venv/lib/python3.10/site-packages/setuptools/command/develop.py +0 -193
- package/venv/lib/python3.10/site-packages/setuptools/command/dist_info.py +0 -36
- package/venv/lib/python3.10/site-packages/setuptools/command/easy_install.py +0 -2354
- package/venv/lib/python3.10/site-packages/setuptools/command/egg_info.py +0 -755
- package/venv/lib/python3.10/site-packages/setuptools/command/install.py +0 -132
- package/venv/lib/python3.10/site-packages/setuptools/command/install_egg_info.py +0 -82
- package/venv/lib/python3.10/site-packages/setuptools/command/install_lib.py +0 -148
- package/venv/lib/python3.10/site-packages/setuptools/command/install_scripts.py +0 -69
- package/venv/lib/python3.10/site-packages/setuptools/command/launcher manifest.xml +0 -15
- package/venv/lib/python3.10/site-packages/setuptools/command/py36compat.py +0 -134
- package/venv/lib/python3.10/site-packages/setuptools/command/register.py +0 -18
- package/venv/lib/python3.10/site-packages/setuptools/command/rotate.py +0 -64
- package/venv/lib/python3.10/site-packages/setuptools/command/saveopts.py +0 -22
- package/venv/lib/python3.10/site-packages/setuptools/command/sdist.py +0 -196
- package/venv/lib/python3.10/site-packages/setuptools/command/setopt.py +0 -149
- package/venv/lib/python3.10/site-packages/setuptools/command/test.py +0 -252
- package/venv/lib/python3.10/site-packages/setuptools/command/upload.py +0 -17
- package/venv/lib/python3.10/site-packages/setuptools/command/upload_docs.py +0 -202
- package/venv/lib/python3.10/site-packages/setuptools/config.py +0 -751
- package/venv/lib/python3.10/site-packages/setuptools/dep_util.py +0 -25
- package/venv/lib/python3.10/site-packages/setuptools/depends.py +0 -176
- package/venv/lib/python3.10/site-packages/setuptools/dist.py +0 -1156
- package/venv/lib/python3.10/site-packages/setuptools/errors.py +0 -40
- package/venv/lib/python3.10/site-packages/setuptools/extension.py +0 -55
- package/venv/lib/python3.10/site-packages/setuptools/extern/__init__.py +0 -73
- package/venv/lib/python3.10/site-packages/setuptools/glob.py +0 -167
- package/venv/lib/python3.10/site-packages/setuptools/gui-32.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/gui-64.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/gui-arm64.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/gui.exe +0 -0
- package/venv/lib/python3.10/site-packages/setuptools/installer.py +0 -104
- package/venv/lib/python3.10/site-packages/setuptools/launch.py +0 -36
- package/venv/lib/python3.10/site-packages/setuptools/monkey.py +0 -177
- package/venv/lib/python3.10/site-packages/setuptools/msvc.py +0 -1805
- package/venv/lib/python3.10/site-packages/setuptools/namespaces.py +0 -107
- package/venv/lib/python3.10/site-packages/setuptools/package_index.py +0 -1150
- package/venv/lib/python3.10/site-packages/setuptools/py34compat.py +0 -13
- package/venv/lib/python3.10/site-packages/setuptools/sandbox.py +0 -530
- package/venv/lib/python3.10/site-packages/setuptools/script (dev).tmpl +0 -6
- package/venv/lib/python3.10/site-packages/setuptools/script.tmpl +0 -3
- package/venv/lib/python3.10/site-packages/setuptools/unicode_utils.py +0 -42
- package/venv/lib/python3.10/site-packages/setuptools/version.py +0 -6
- package/venv/lib/python3.10/site-packages/setuptools/wheel.py +0 -213
- package/venv/lib/python3.10/site-packages/setuptools/windows_support.py +0 -29
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/LICENSE +0 -19
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/METADATA +0 -125
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/RECORD +0 -298
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/WHEEL +0 -5
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/entry_points.txt +0 -56
- package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/top_level.txt +0 -4
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/LICENSE +0 -18
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/METADATA +0 -43
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/RECORD +0 -8
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/six.py +0 -1003
- package/venv/lib/python3.10/site-packages/soupsieve/__init__.py +0 -168
- package/venv/lib/python3.10/site-packages/soupsieve/__meta__.py +0 -197
- package/venv/lib/python3.10/site-packages/soupsieve/css_match.py +0 -1582
- package/venv/lib/python3.10/site-packages/soupsieve/css_parser.py +0 -1289
- package/venv/lib/python3.10/site-packages/soupsieve/css_types.py +0 -407
- package/venv/lib/python3.10/site-packages/soupsieve/pretty.py +0 -139
- package/venv/lib/python3.10/site-packages/soupsieve/py.typed +0 -0
- package/venv/lib/python3.10/site-packages/soupsieve/util.py +0 -117
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/METADATA +0 -114
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/RECORD +0 -20
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/licenses/LICENSE.md +0 -21
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/PKG-INFO +0 -98
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/SOURCES.txt +0 -12
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/dependency_links.txt +0 -1
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/installed-files.txt +0 -7
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/requires.txt +0 -2
- package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/top_level.txt +0 -1
- package/venv/lib/python3.10/site-packages/sseclient.py +0 -165
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/LICENSE +0 -279
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/METADATA +0 -67
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/RECORD +0 -7
- package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/typing_extensions.py +0 -3641
- package/venv/lib/python3.10/site-packages/urllib3/__init__.py +0 -211
- package/venv/lib/python3.10/site-packages/urllib3/_base_connection.py +0 -165
- package/venv/lib/python3.10/site-packages/urllib3/_collections.py +0 -479
- package/venv/lib/python3.10/site-packages/urllib3/_request_methods.py +0 -278
- package/venv/lib/python3.10/site-packages/urllib3/_version.py +0 -16
- package/venv/lib/python3.10/site-packages/urllib3/connection.py +0 -1044
- package/venv/lib/python3.10/site-packages/urllib3/connectionpool.py +0 -1178
- package/venv/lib/python3.10/site-packages/urllib3/contrib/__init__.py +0 -0
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/__init__.py +0 -16
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/connection.py +0 -255
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/emscripten_fetch_worker.js +0 -110
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/fetch.py +0 -708
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/request.py +0 -22
- package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/response.py +0 -285
- package/venv/lib/python3.10/site-packages/urllib3/contrib/pyopenssl.py +0 -554
- package/venv/lib/python3.10/site-packages/urllib3/contrib/socks.py +0 -228
- package/venv/lib/python3.10/site-packages/urllib3/exceptions.py +0 -327
- package/venv/lib/python3.10/site-packages/urllib3/fields.py +0 -341
- package/venv/lib/python3.10/site-packages/urllib3/filepost.py +0 -89
- package/venv/lib/python3.10/site-packages/urllib3/http2/__init__.py +0 -53
- package/venv/lib/python3.10/site-packages/urllib3/http2/connection.py +0 -356
- package/venv/lib/python3.10/site-packages/urllib3/http2/probe.py +0 -87
- package/venv/lib/python3.10/site-packages/urllib3/poolmanager.py +0 -637
- package/venv/lib/python3.10/site-packages/urllib3/py.typed +0 -2
- package/venv/lib/python3.10/site-packages/urllib3/response.py +0 -1278
- package/venv/lib/python3.10/site-packages/urllib3/util/__init__.py +0 -42
- package/venv/lib/python3.10/site-packages/urllib3/util/connection.py +0 -137
- package/venv/lib/python3.10/site-packages/urllib3/util/proxy.py +0 -43
- package/venv/lib/python3.10/site-packages/urllib3/util/request.py +0 -258
- package/venv/lib/python3.10/site-packages/urllib3/util/response.py +0 -101
- package/venv/lib/python3.10/site-packages/urllib3/util/retry.py +0 -533
- package/venv/lib/python3.10/site-packages/urllib3/util/ssl_.py +0 -504
- package/venv/lib/python3.10/site-packages/urllib3/util/ssl_match_hostname.py +0 -159
- package/venv/lib/python3.10/site-packages/urllib3/util/ssltransport.py +0 -271
- package/venv/lib/python3.10/site-packages/urllib3/util/timeout.py +0 -275
- package/venv/lib/python3.10/site-packages/urllib3/util/url.py +0 -469
- package/venv/lib/python3.10/site-packages/urllib3/util/util.py +0 -42
- package/venv/lib/python3.10/site-packages/urllib3/util/wait.py +0 -124
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/METADATA +0 -154
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/RECORD +0 -80
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/REQUESTED +0 -0
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/WHEEL +0 -4
- package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/licenses/LICENSE.txt +0 -21
- package/venv/lib/python3.10/site-packages/yarl/__init__.py +0 -14
- package/venv/lib/python3.10/site-packages/yarl/_parse.py +0 -189
- package/venv/lib/python3.10/site-packages/yarl/_path.py +0 -41
- package/venv/lib/python3.10/site-packages/yarl/_query.py +0 -118
- package/venv/lib/python3.10/site-packages/yarl/_quoters.py +0 -32
- package/venv/lib/python3.10/site-packages/yarl/_quoting.py +0 -18
- package/venv/lib/python3.10/site-packages/yarl/_quoting_c.cpython-310-x86_64-linux-gnu.so +0 -0
- package/venv/lib/python3.10/site-packages/yarl/_quoting_c.pyi +0 -16
- package/venv/lib/python3.10/site-packages/yarl/_quoting_c.pyx +0 -423
- package/venv/lib/python3.10/site-packages/yarl/_quoting_py.py +0 -197
- package/venv/lib/python3.10/site-packages/yarl/_url.py +0 -1584
- package/venv/lib/python3.10/site-packages/yarl/py.typed +0 -1
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/INSTALLER +0 -1
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/LICENSE +0 -202
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/METADATA +0 -2279
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/NOTICE +0 -13
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/RECORD +0 -27
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/WHEEL +0 -6
- package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/top_level.txt +0 -1
- package/venv/pyvenv.cfg +0 -3
|
@@ -1,1582 +0,0 @@
|
|
|
1
|
-
"""CSS matcher."""
|
|
2
|
-
from __future__ import annotations
|
|
3
|
-
from datetime import datetime
|
|
4
|
-
from . import util
|
|
5
|
-
import re
|
|
6
|
-
from . import css_types as ct
|
|
7
|
-
import unicodedata
|
|
8
|
-
import bs4 # type: ignore[import-untyped]
|
|
9
|
-
from typing import Iterator, Iterable, Any, Callable, Sequence, cast # noqa: F401
|
|
10
|
-
|
|
11
|
-
# Empty tag pattern (whitespace okay)
|
|
12
|
-
RE_NOT_EMPTY = re.compile('[^ \t\r\n\f]')
|
|
13
|
-
|
|
14
|
-
RE_NOT_WS = re.compile('[^ \t\r\n\f]+')
|
|
15
|
-
|
|
16
|
-
# Relationships
|
|
17
|
-
REL_PARENT = ' '
|
|
18
|
-
REL_CLOSE_PARENT = '>'
|
|
19
|
-
REL_SIBLING = '~'
|
|
20
|
-
REL_CLOSE_SIBLING = '+'
|
|
21
|
-
|
|
22
|
-
# Relationships for :has() (forward looking)
|
|
23
|
-
REL_HAS_PARENT = ': '
|
|
24
|
-
REL_HAS_CLOSE_PARENT = ':>'
|
|
25
|
-
REL_HAS_SIBLING = ':~'
|
|
26
|
-
REL_HAS_CLOSE_SIBLING = ':+'
|
|
27
|
-
|
|
28
|
-
NS_XHTML = 'http://www.w3.org/1999/xhtml'
|
|
29
|
-
NS_XML = 'http://www.w3.org/XML/1998/namespace'
|
|
30
|
-
|
|
31
|
-
DIR_FLAGS = ct.SEL_DIR_LTR | ct.SEL_DIR_RTL
|
|
32
|
-
RANGES = ct.SEL_IN_RANGE | ct.SEL_OUT_OF_RANGE
|
|
33
|
-
|
|
34
|
-
DIR_MAP = {
|
|
35
|
-
'ltr': ct.SEL_DIR_LTR,
|
|
36
|
-
'rtl': ct.SEL_DIR_RTL,
|
|
37
|
-
'auto': 0
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
RE_NUM = re.compile(r"^(?P<value>-?(?:[0-9]{1,}(\.[0-9]+)?|\.[0-9]+))$")
|
|
41
|
-
RE_TIME = re.compile(r'^(?P<hour>[0-9]{2}):(?P<minutes>[0-9]{2})$')
|
|
42
|
-
RE_MONTH = re.compile(r'^(?P<year>[0-9]{4,})-(?P<month>[0-9]{2})$')
|
|
43
|
-
RE_WEEK = re.compile(r'^(?P<year>[0-9]{4,})-W(?P<week>[0-9]{2})$')
|
|
44
|
-
RE_DATE = re.compile(r'^(?P<year>[0-9]{4,})-(?P<month>[0-9]{2})-(?P<day>[0-9]{2})$')
|
|
45
|
-
RE_DATETIME = re.compile(
|
|
46
|
-
r'^(?P<year>[0-9]{4,})-(?P<month>[0-9]{2})-(?P<day>[0-9]{2})T(?P<hour>[0-9]{2}):(?P<minutes>[0-9]{2})$'
|
|
47
|
-
)
|
|
48
|
-
RE_WILD_STRIP = re.compile(r'(?:(?:-\*-)(?:\*(?:-|$))*|-\*$)')
|
|
49
|
-
|
|
50
|
-
MONTHS_30 = (4, 6, 9, 11) # April, June, September, and November
|
|
51
|
-
FEB = 2
|
|
52
|
-
SHORT_MONTH = 30
|
|
53
|
-
LONG_MONTH = 31
|
|
54
|
-
FEB_MONTH = 28
|
|
55
|
-
FEB_LEAP_MONTH = 29
|
|
56
|
-
DAYS_IN_WEEK = 7
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
class _FakeParent:
|
|
60
|
-
"""
|
|
61
|
-
Fake parent class.
|
|
62
|
-
|
|
63
|
-
When we have a fragment with no `BeautifulSoup` document object,
|
|
64
|
-
we can't evaluate `nth` selectors properly. Create a temporary
|
|
65
|
-
fake parent so we can traverse the root element as a child.
|
|
66
|
-
"""
|
|
67
|
-
|
|
68
|
-
def __init__(self, element: bs4.Tag) -> None:
|
|
69
|
-
"""Initialize."""
|
|
70
|
-
|
|
71
|
-
self.contents = [element]
|
|
72
|
-
|
|
73
|
-
def __len__(self) -> bs4.PageElement:
|
|
74
|
-
"""Length."""
|
|
75
|
-
|
|
76
|
-
return len(self.contents)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
class _DocumentNav:
|
|
80
|
-
"""Navigate a Beautiful Soup document."""
|
|
81
|
-
|
|
82
|
-
@classmethod
|
|
83
|
-
def assert_valid_input(cls, tag: Any) -> None:
|
|
84
|
-
"""Check if valid input tag or document."""
|
|
85
|
-
|
|
86
|
-
# Fail on unexpected types.
|
|
87
|
-
if not cls.is_tag(tag):
|
|
88
|
-
raise TypeError(f"Expected a BeautifulSoup 'Tag', but instead received type {type(tag)}")
|
|
89
|
-
|
|
90
|
-
@staticmethod
|
|
91
|
-
def is_doc(obj: bs4.Tag) -> bool:
|
|
92
|
-
"""Is `BeautifulSoup` object."""
|
|
93
|
-
return isinstance(obj, bs4.BeautifulSoup)
|
|
94
|
-
|
|
95
|
-
@staticmethod
|
|
96
|
-
def is_tag(obj: bs4.PageElement) -> bool:
|
|
97
|
-
"""Is tag."""
|
|
98
|
-
return isinstance(obj, bs4.Tag)
|
|
99
|
-
|
|
100
|
-
@staticmethod
|
|
101
|
-
def is_declaration(obj: bs4.PageElement) -> bool: # pragma: no cover
|
|
102
|
-
"""Is declaration."""
|
|
103
|
-
return isinstance(obj, bs4.Declaration)
|
|
104
|
-
|
|
105
|
-
@staticmethod
|
|
106
|
-
def is_cdata(obj: bs4.PageElement) -> bool:
|
|
107
|
-
"""Is CDATA."""
|
|
108
|
-
return isinstance(obj, bs4.CData)
|
|
109
|
-
|
|
110
|
-
@staticmethod
|
|
111
|
-
def is_processing_instruction(obj: bs4.PageElement) -> bool: # pragma: no cover
|
|
112
|
-
"""Is processing instruction."""
|
|
113
|
-
return isinstance(obj, bs4.ProcessingInstruction)
|
|
114
|
-
|
|
115
|
-
@staticmethod
|
|
116
|
-
def is_navigable_string(obj: bs4.PageElement) -> bool:
|
|
117
|
-
"""Is navigable string."""
|
|
118
|
-
return isinstance(obj, bs4.NavigableString)
|
|
119
|
-
|
|
120
|
-
@staticmethod
|
|
121
|
-
def is_special_string(obj: bs4.PageElement) -> bool:
|
|
122
|
-
"""Is special string."""
|
|
123
|
-
return isinstance(obj, (bs4.Comment, bs4.Declaration, bs4.CData, bs4.ProcessingInstruction, bs4.Doctype))
|
|
124
|
-
|
|
125
|
-
@classmethod
|
|
126
|
-
def is_content_string(cls, obj: bs4.PageElement) -> bool:
|
|
127
|
-
"""Check if node is content string."""
|
|
128
|
-
|
|
129
|
-
return cls.is_navigable_string(obj) and not cls.is_special_string(obj)
|
|
130
|
-
|
|
131
|
-
@staticmethod
|
|
132
|
-
def create_fake_parent(el: bs4.Tag) -> _FakeParent:
|
|
133
|
-
"""Create fake parent for a given element."""
|
|
134
|
-
|
|
135
|
-
return _FakeParent(el)
|
|
136
|
-
|
|
137
|
-
@staticmethod
|
|
138
|
-
def is_xml_tree(el: bs4.Tag) -> bool:
|
|
139
|
-
"""Check if element (or document) is from a XML tree."""
|
|
140
|
-
|
|
141
|
-
return bool(el._is_xml)
|
|
142
|
-
|
|
143
|
-
def is_iframe(self, el: bs4.Tag) -> bool:
|
|
144
|
-
"""Check if element is an `iframe`."""
|
|
145
|
-
|
|
146
|
-
return bool(
|
|
147
|
-
((el.name if self.is_xml_tree(el) else util.lower(el.name)) == 'iframe') and
|
|
148
|
-
self.is_html_tag(el) # type: ignore[attr-defined]
|
|
149
|
-
)
|
|
150
|
-
|
|
151
|
-
def is_root(self, el: bs4.Tag) -> bool:
|
|
152
|
-
"""
|
|
153
|
-
Return whether element is a root element.
|
|
154
|
-
|
|
155
|
-
We check that the element is the root of the tree (which we have already pre-calculated),
|
|
156
|
-
and we check if it is the root element under an `iframe`.
|
|
157
|
-
"""
|
|
158
|
-
|
|
159
|
-
root = self.root and self.root is el # type: ignore[attr-defined]
|
|
160
|
-
if not root:
|
|
161
|
-
parent = self.get_parent(el)
|
|
162
|
-
root = parent is not None and self.is_html and self.is_iframe(parent) # type: ignore[attr-defined]
|
|
163
|
-
return root
|
|
164
|
-
|
|
165
|
-
def get_contents(self, el: bs4.Tag, no_iframe: bool = False) -> Iterator[bs4.PageElement]:
|
|
166
|
-
"""Get contents or contents in reverse."""
|
|
167
|
-
if not no_iframe or not self.is_iframe(el):
|
|
168
|
-
yield from el.contents
|
|
169
|
-
|
|
170
|
-
def get_children(
|
|
171
|
-
self,
|
|
172
|
-
el: bs4.Tag,
|
|
173
|
-
start: int | None = None,
|
|
174
|
-
reverse: bool = False,
|
|
175
|
-
tags: bool = True,
|
|
176
|
-
no_iframe: bool = False
|
|
177
|
-
) -> Iterator[bs4.PageElement]:
|
|
178
|
-
"""Get children."""
|
|
179
|
-
|
|
180
|
-
if not no_iframe or not self.is_iframe(el):
|
|
181
|
-
last = len(el.contents) - 1
|
|
182
|
-
if start is None:
|
|
183
|
-
index = last if reverse else 0
|
|
184
|
-
else:
|
|
185
|
-
index = start
|
|
186
|
-
end = -1 if reverse else last + 1
|
|
187
|
-
incr = -1 if reverse else 1
|
|
188
|
-
|
|
189
|
-
if 0 <= index <= last:
|
|
190
|
-
while index != end:
|
|
191
|
-
node = el.contents[index]
|
|
192
|
-
index += incr
|
|
193
|
-
if not tags or self.is_tag(node):
|
|
194
|
-
yield node
|
|
195
|
-
|
|
196
|
-
def get_descendants(
|
|
197
|
-
self,
|
|
198
|
-
el: bs4.Tag,
|
|
199
|
-
tags: bool = True,
|
|
200
|
-
no_iframe: bool = False
|
|
201
|
-
) -> Iterator[bs4.PageElement]:
|
|
202
|
-
"""Get descendants."""
|
|
203
|
-
|
|
204
|
-
if not no_iframe or not self.is_iframe(el):
|
|
205
|
-
next_good = None
|
|
206
|
-
for child in el.descendants:
|
|
207
|
-
|
|
208
|
-
if next_good is not None:
|
|
209
|
-
if child is not next_good:
|
|
210
|
-
continue
|
|
211
|
-
next_good = None
|
|
212
|
-
|
|
213
|
-
is_tag = self.is_tag(child)
|
|
214
|
-
|
|
215
|
-
if no_iframe and is_tag and self.is_iframe(child):
|
|
216
|
-
if child.next_sibling is not None:
|
|
217
|
-
next_good = child.next_sibling
|
|
218
|
-
else:
|
|
219
|
-
last_child = child
|
|
220
|
-
while self.is_tag(last_child) and last_child.contents:
|
|
221
|
-
last_child = last_child.contents[-1]
|
|
222
|
-
next_good = last_child.next_element
|
|
223
|
-
yield child
|
|
224
|
-
if next_good is None:
|
|
225
|
-
break
|
|
226
|
-
# Coverage isn't seeing this even though it's executed
|
|
227
|
-
continue # pragma: no cover
|
|
228
|
-
|
|
229
|
-
if not tags or is_tag:
|
|
230
|
-
yield child
|
|
231
|
-
|
|
232
|
-
def get_parent(self, el: bs4.Tag, no_iframe: bool = False) -> bs4.Tag:
|
|
233
|
-
"""Get parent."""
|
|
234
|
-
|
|
235
|
-
parent = el.parent
|
|
236
|
-
if no_iframe and parent is not None and self.is_iframe(parent):
|
|
237
|
-
parent = None
|
|
238
|
-
return parent
|
|
239
|
-
|
|
240
|
-
@staticmethod
|
|
241
|
-
def get_tag_name(el: bs4.Tag) -> str | None:
|
|
242
|
-
"""Get tag."""
|
|
243
|
-
|
|
244
|
-
return cast('str | None', el.name)
|
|
245
|
-
|
|
246
|
-
@staticmethod
|
|
247
|
-
def get_prefix_name(el: bs4.Tag) -> str | None:
|
|
248
|
-
"""Get prefix."""
|
|
249
|
-
|
|
250
|
-
return cast('str | None', el.prefix)
|
|
251
|
-
|
|
252
|
-
@staticmethod
|
|
253
|
-
def get_uri(el: bs4.Tag) -> str | None:
|
|
254
|
-
"""Get namespace `URI`."""
|
|
255
|
-
|
|
256
|
-
return cast('str | None', el.namespace)
|
|
257
|
-
|
|
258
|
-
@classmethod
|
|
259
|
-
def get_next(cls, el: bs4.Tag, tags: bool = True) -> bs4.PageElement:
|
|
260
|
-
"""Get next sibling tag."""
|
|
261
|
-
|
|
262
|
-
sibling = el.next_sibling
|
|
263
|
-
while tags and not cls.is_tag(sibling) and sibling is not None:
|
|
264
|
-
sibling = sibling.next_sibling
|
|
265
|
-
return sibling
|
|
266
|
-
|
|
267
|
-
@classmethod
|
|
268
|
-
def get_previous(cls, el: bs4.Tag, tags: bool = True) -> bs4.PageElement:
|
|
269
|
-
"""Get previous sibling tag."""
|
|
270
|
-
|
|
271
|
-
sibling = el.previous_sibling
|
|
272
|
-
while tags and not cls.is_tag(sibling) and sibling is not None:
|
|
273
|
-
sibling = sibling.previous_sibling
|
|
274
|
-
return sibling
|
|
275
|
-
|
|
276
|
-
@staticmethod
|
|
277
|
-
def has_html_ns(el: bs4.Tag) -> bool:
|
|
278
|
-
"""
|
|
279
|
-
Check if element has an HTML namespace.
|
|
280
|
-
|
|
281
|
-
This is a bit different than whether a element is treated as having an HTML namespace,
|
|
282
|
-
like we do in the case of `is_html_tag`.
|
|
283
|
-
"""
|
|
284
|
-
|
|
285
|
-
ns = getattr(el, 'namespace') if el else None # noqa: B009
|
|
286
|
-
return bool(ns and ns == NS_XHTML)
|
|
287
|
-
|
|
288
|
-
@staticmethod
|
|
289
|
-
def split_namespace(el: bs4.Tag, attr_name: str) -> tuple[str | None, str | None]:
|
|
290
|
-
"""Return namespace and attribute name without the prefix."""
|
|
291
|
-
|
|
292
|
-
return getattr(attr_name, 'namespace', None), getattr(attr_name, 'name', None)
|
|
293
|
-
|
|
294
|
-
@classmethod
|
|
295
|
-
def normalize_value(cls, value: Any) -> str | Sequence[str]:
|
|
296
|
-
"""Normalize the value to be a string or list of strings."""
|
|
297
|
-
|
|
298
|
-
# Treat `None` as empty string.
|
|
299
|
-
if value is None:
|
|
300
|
-
return ''
|
|
301
|
-
|
|
302
|
-
# Pass through strings
|
|
303
|
-
if (isinstance(value, str)):
|
|
304
|
-
return value
|
|
305
|
-
|
|
306
|
-
# If it's a byte string, convert it to Unicode, treating it as UTF-8.
|
|
307
|
-
if isinstance(value, bytes):
|
|
308
|
-
return value.decode("utf8")
|
|
309
|
-
|
|
310
|
-
# BeautifulSoup supports sequences of attribute values, so make sure the children are strings.
|
|
311
|
-
if isinstance(value, Sequence):
|
|
312
|
-
new_value = []
|
|
313
|
-
for v in value:
|
|
314
|
-
if not isinstance(v, (str, bytes)) and isinstance(v, Sequence):
|
|
315
|
-
# This is most certainly a user error and will crash and burn later.
|
|
316
|
-
# To keep things working, we'll do what we do with all objects,
|
|
317
|
-
# And convert them to strings.
|
|
318
|
-
new_value.append(str(v))
|
|
319
|
-
else:
|
|
320
|
-
# Convert the child to a string
|
|
321
|
-
new_value.append(cast(str, cls.normalize_value(v)))
|
|
322
|
-
return new_value
|
|
323
|
-
|
|
324
|
-
# Try and make anything else a string
|
|
325
|
-
return str(value)
|
|
326
|
-
|
|
327
|
-
@classmethod
|
|
328
|
-
def get_attribute_by_name(
|
|
329
|
-
cls,
|
|
330
|
-
el: bs4.Tag,
|
|
331
|
-
name: str,
|
|
332
|
-
default: str | Sequence[str] | None = None
|
|
333
|
-
) -> str | Sequence[str] | None:
|
|
334
|
-
"""Get attribute by name."""
|
|
335
|
-
|
|
336
|
-
value = default
|
|
337
|
-
if el._is_xml:
|
|
338
|
-
try:
|
|
339
|
-
value = cls.normalize_value(el.attrs[name])
|
|
340
|
-
except KeyError:
|
|
341
|
-
pass
|
|
342
|
-
else:
|
|
343
|
-
for k, v in el.attrs.items():
|
|
344
|
-
if util.lower(k) == name:
|
|
345
|
-
value = cls.normalize_value(v)
|
|
346
|
-
break
|
|
347
|
-
return value
|
|
348
|
-
|
|
349
|
-
@classmethod
|
|
350
|
-
def iter_attributes(cls, el: bs4.Tag) -> Iterator[tuple[str, str | Sequence[str] | None]]:
|
|
351
|
-
"""Iterate attributes."""
|
|
352
|
-
|
|
353
|
-
for k, v in el.attrs.items():
|
|
354
|
-
yield k, cls.normalize_value(v)
|
|
355
|
-
|
|
356
|
-
@classmethod
|
|
357
|
-
def get_classes(cls, el: bs4.Tag) -> Sequence[str]:
|
|
358
|
-
"""Get classes."""
|
|
359
|
-
|
|
360
|
-
classes = cls.get_attribute_by_name(el, 'class', [])
|
|
361
|
-
if isinstance(classes, str):
|
|
362
|
-
classes = RE_NOT_WS.findall(classes)
|
|
363
|
-
return cast(Sequence[str], classes)
|
|
364
|
-
|
|
365
|
-
def get_text(self, el: bs4.Tag, no_iframe: bool = False) -> str:
|
|
366
|
-
"""Get text."""
|
|
367
|
-
|
|
368
|
-
return ''.join(
|
|
369
|
-
[node for node in self.get_descendants(el, tags=False, no_iframe=no_iframe) if self.is_content_string(node)]
|
|
370
|
-
)
|
|
371
|
-
|
|
372
|
-
def get_own_text(self, el: bs4.Tag, no_iframe: bool = False) -> list[str]:
|
|
373
|
-
"""Get Own Text."""
|
|
374
|
-
|
|
375
|
-
return [node for node in self.get_contents(el, no_iframe=no_iframe) if self.is_content_string(node)]
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
class Inputs:
|
|
379
|
-
"""Class for parsing and validating input items."""
|
|
380
|
-
|
|
381
|
-
@staticmethod
|
|
382
|
-
def validate_day(year: int, month: int, day: int) -> bool:
|
|
383
|
-
"""Validate day."""
|
|
384
|
-
|
|
385
|
-
max_days = LONG_MONTH
|
|
386
|
-
if month == FEB:
|
|
387
|
-
max_days = FEB_LEAP_MONTH if ((year % 4 == 0) and (year % 100 != 0)) or (year % 400 == 0) else FEB_MONTH
|
|
388
|
-
elif month in MONTHS_30:
|
|
389
|
-
max_days = SHORT_MONTH
|
|
390
|
-
return 1 <= day <= max_days
|
|
391
|
-
|
|
392
|
-
@staticmethod
|
|
393
|
-
def validate_week(year: int, week: int) -> bool:
|
|
394
|
-
"""Validate week."""
|
|
395
|
-
|
|
396
|
-
max_week = datetime.strptime(f"{12}-{31}-{year}", "%m-%d-%Y").isocalendar()[1]
|
|
397
|
-
if max_week == 1:
|
|
398
|
-
max_week = 53
|
|
399
|
-
return 1 <= week <= max_week
|
|
400
|
-
|
|
401
|
-
@staticmethod
|
|
402
|
-
def validate_month(month: int) -> bool:
|
|
403
|
-
"""Validate month."""
|
|
404
|
-
|
|
405
|
-
return 1 <= month <= 12
|
|
406
|
-
|
|
407
|
-
@staticmethod
|
|
408
|
-
def validate_year(year: int) -> bool:
|
|
409
|
-
"""Validate year."""
|
|
410
|
-
|
|
411
|
-
return 1 <= year
|
|
412
|
-
|
|
413
|
-
@staticmethod
|
|
414
|
-
def validate_hour(hour: int) -> bool:
|
|
415
|
-
"""Validate hour."""
|
|
416
|
-
|
|
417
|
-
return 0 <= hour <= 23
|
|
418
|
-
|
|
419
|
-
@staticmethod
|
|
420
|
-
def validate_minutes(minutes: int) -> bool:
|
|
421
|
-
"""Validate minutes."""
|
|
422
|
-
|
|
423
|
-
return 0 <= minutes <= 59
|
|
424
|
-
|
|
425
|
-
@classmethod
|
|
426
|
-
def parse_value(cls, itype: str, value: str | None) -> tuple[float, ...] | None:
|
|
427
|
-
"""Parse the input value."""
|
|
428
|
-
|
|
429
|
-
parsed = None # type: tuple[float, ...] | None
|
|
430
|
-
if value is None:
|
|
431
|
-
return value
|
|
432
|
-
if itype == "date":
|
|
433
|
-
m = RE_DATE.match(value)
|
|
434
|
-
if m:
|
|
435
|
-
year = int(m.group('year'), 10)
|
|
436
|
-
month = int(m.group('month'), 10)
|
|
437
|
-
day = int(m.group('day'), 10)
|
|
438
|
-
if cls.validate_year(year) and cls.validate_month(month) and cls.validate_day(year, month, day):
|
|
439
|
-
parsed = (year, month, day)
|
|
440
|
-
elif itype == "month":
|
|
441
|
-
m = RE_MONTH.match(value)
|
|
442
|
-
if m:
|
|
443
|
-
year = int(m.group('year'), 10)
|
|
444
|
-
month = int(m.group('month'), 10)
|
|
445
|
-
if cls.validate_year(year) and cls.validate_month(month):
|
|
446
|
-
parsed = (year, month)
|
|
447
|
-
elif itype == "week":
|
|
448
|
-
m = RE_WEEK.match(value)
|
|
449
|
-
if m:
|
|
450
|
-
year = int(m.group('year'), 10)
|
|
451
|
-
week = int(m.group('week'), 10)
|
|
452
|
-
if cls.validate_year(year) and cls.validate_week(year, week):
|
|
453
|
-
parsed = (year, week)
|
|
454
|
-
elif itype == "time":
|
|
455
|
-
m = RE_TIME.match(value)
|
|
456
|
-
if m:
|
|
457
|
-
hour = int(m.group('hour'), 10)
|
|
458
|
-
minutes = int(m.group('minutes'), 10)
|
|
459
|
-
if cls.validate_hour(hour) and cls.validate_minutes(minutes):
|
|
460
|
-
parsed = (hour, minutes)
|
|
461
|
-
elif itype == "datetime-local":
|
|
462
|
-
m = RE_DATETIME.match(value)
|
|
463
|
-
if m:
|
|
464
|
-
year = int(m.group('year'), 10)
|
|
465
|
-
month = int(m.group('month'), 10)
|
|
466
|
-
day = int(m.group('day'), 10)
|
|
467
|
-
hour = int(m.group('hour'), 10)
|
|
468
|
-
minutes = int(m.group('minutes'), 10)
|
|
469
|
-
if (
|
|
470
|
-
cls.validate_year(year) and cls.validate_month(month) and cls.validate_day(year, month, day) and
|
|
471
|
-
cls.validate_hour(hour) and cls.validate_minutes(minutes)
|
|
472
|
-
):
|
|
473
|
-
parsed = (year, month, day, hour, minutes)
|
|
474
|
-
elif itype in ("number", "range"):
|
|
475
|
-
m = RE_NUM.match(value)
|
|
476
|
-
if m:
|
|
477
|
-
parsed = (float(m.group('value')),)
|
|
478
|
-
return parsed
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
class CSSMatch(_DocumentNav):
|
|
482
|
-
"""Perform CSS matching."""
|
|
483
|
-
|
|
484
|
-
def __init__(
|
|
485
|
-
self,
|
|
486
|
-
selectors: ct.SelectorList,
|
|
487
|
-
scope: bs4.Tag,
|
|
488
|
-
namespaces: ct.Namespaces | None,
|
|
489
|
-
flags: int
|
|
490
|
-
) -> None:
|
|
491
|
-
"""Initialize."""
|
|
492
|
-
|
|
493
|
-
self.assert_valid_input(scope)
|
|
494
|
-
self.tag = scope
|
|
495
|
-
self.cached_meta_lang = [] # type: list[tuple[str, str]]
|
|
496
|
-
self.cached_default_forms = [] # type: list[tuple[bs4.Tag, bs4.Tag]]
|
|
497
|
-
self.cached_indeterminate_forms = [] # type: list[tuple[bs4.Tag, str, bool]]
|
|
498
|
-
self.selectors = selectors
|
|
499
|
-
self.namespaces = {} if namespaces is None else namespaces # type: ct.Namespaces | dict[str, str]
|
|
500
|
-
self.flags = flags
|
|
501
|
-
self.iframe_restrict = False
|
|
502
|
-
|
|
503
|
-
# Find the root element for the whole tree
|
|
504
|
-
doc = scope
|
|
505
|
-
parent = self.get_parent(doc)
|
|
506
|
-
while parent:
|
|
507
|
-
doc = parent
|
|
508
|
-
parent = self.get_parent(doc)
|
|
509
|
-
root = None
|
|
510
|
-
if not self.is_doc(doc):
|
|
511
|
-
root = doc
|
|
512
|
-
else:
|
|
513
|
-
for child in self.get_children(doc):
|
|
514
|
-
root = child
|
|
515
|
-
break
|
|
516
|
-
|
|
517
|
-
self.root = root
|
|
518
|
-
self.scope = scope if scope is not doc else root
|
|
519
|
-
self.has_html_namespace = self.has_html_ns(root)
|
|
520
|
-
|
|
521
|
-
# A document can be both XML and HTML (XHTML)
|
|
522
|
-
self.is_xml = self.is_xml_tree(doc)
|
|
523
|
-
self.is_html = not self.is_xml or self.has_html_namespace
|
|
524
|
-
|
|
525
|
-
def supports_namespaces(self) -> bool:
|
|
526
|
-
"""Check if namespaces are supported in the HTML type."""
|
|
527
|
-
|
|
528
|
-
return self.is_xml or self.has_html_namespace
|
|
529
|
-
|
|
530
|
-
def get_tag_ns(self, el: bs4.Tag) -> str:
|
|
531
|
-
"""Get tag namespace."""
|
|
532
|
-
|
|
533
|
-
if self.supports_namespaces():
|
|
534
|
-
namespace = ''
|
|
535
|
-
ns = self.get_uri(el)
|
|
536
|
-
if ns:
|
|
537
|
-
namespace = ns
|
|
538
|
-
else:
|
|
539
|
-
namespace = NS_XHTML
|
|
540
|
-
return namespace
|
|
541
|
-
|
|
542
|
-
def is_html_tag(self, el: bs4.Tag) -> bool:
|
|
543
|
-
"""Check if tag is in HTML namespace."""
|
|
544
|
-
|
|
545
|
-
return self.get_tag_ns(el) == NS_XHTML
|
|
546
|
-
|
|
547
|
-
def get_tag(self, el: bs4.Tag) -> str | None:
|
|
548
|
-
"""Get tag."""
|
|
549
|
-
|
|
550
|
-
name = self.get_tag_name(el)
|
|
551
|
-
return util.lower(name) if name is not None and not self.is_xml else name
|
|
552
|
-
|
|
553
|
-
def get_prefix(self, el: bs4.Tag) -> str | None:
|
|
554
|
-
"""Get prefix."""
|
|
555
|
-
|
|
556
|
-
prefix = self.get_prefix_name(el)
|
|
557
|
-
return util.lower(prefix) if prefix is not None and not self.is_xml else prefix
|
|
558
|
-
|
|
559
|
-
def find_bidi(self, el: bs4.Tag) -> int | None:
|
|
560
|
-
"""Get directionality from element text."""
|
|
561
|
-
|
|
562
|
-
for node in self.get_children(el, tags=False):
|
|
563
|
-
|
|
564
|
-
# Analyze child text nodes
|
|
565
|
-
if self.is_tag(node):
|
|
566
|
-
|
|
567
|
-
# Avoid analyzing certain elements specified in the specification.
|
|
568
|
-
direction = DIR_MAP.get(util.lower(self.get_attribute_by_name(node, 'dir', '')), None)
|
|
569
|
-
if (
|
|
570
|
-
self.get_tag(node) in ('bdi', 'script', 'style', 'textarea', 'iframe') or
|
|
571
|
-
not self.is_html_tag(node) or
|
|
572
|
-
direction is not None
|
|
573
|
-
):
|
|
574
|
-
continue # pragma: no cover
|
|
575
|
-
|
|
576
|
-
# Check directionality of this node's text
|
|
577
|
-
value = self.find_bidi(node)
|
|
578
|
-
if value is not None:
|
|
579
|
-
return value
|
|
580
|
-
|
|
581
|
-
# Direction could not be determined
|
|
582
|
-
continue # pragma: no cover
|
|
583
|
-
|
|
584
|
-
# Skip `doctype` comments, etc.
|
|
585
|
-
if self.is_special_string(node):
|
|
586
|
-
continue
|
|
587
|
-
|
|
588
|
-
# Analyze text nodes for directionality.
|
|
589
|
-
for c in node:
|
|
590
|
-
bidi = unicodedata.bidirectional(c)
|
|
591
|
-
if bidi in ('AL', 'R', 'L'):
|
|
592
|
-
return ct.SEL_DIR_LTR if bidi == 'L' else ct.SEL_DIR_RTL
|
|
593
|
-
return None
|
|
594
|
-
|
|
595
|
-
def extended_language_filter(self, lang_range: str, lang_tag: str) -> bool:
|
|
596
|
-
"""Filter the language tags."""
|
|
597
|
-
|
|
598
|
-
match = True
|
|
599
|
-
lang_range = RE_WILD_STRIP.sub('-', lang_range).lower()
|
|
600
|
-
ranges = lang_range.split('-')
|
|
601
|
-
subtags = lang_tag.lower().split('-')
|
|
602
|
-
length = len(ranges)
|
|
603
|
-
slength = len(subtags)
|
|
604
|
-
rindex = 0
|
|
605
|
-
sindex = 0
|
|
606
|
-
r = ranges[rindex]
|
|
607
|
-
s = subtags[sindex]
|
|
608
|
-
|
|
609
|
-
# Empty specified language should match unspecified language attributes
|
|
610
|
-
if length == 1 and slength == 1 and not r and r == s:
|
|
611
|
-
return True
|
|
612
|
-
|
|
613
|
-
# Primary tag needs to match
|
|
614
|
-
if (r != '*' and r != s) or (r == '*' and slength == 1 and not s):
|
|
615
|
-
match = False
|
|
616
|
-
|
|
617
|
-
rindex += 1
|
|
618
|
-
sindex += 1
|
|
619
|
-
|
|
620
|
-
# Match until we run out of ranges
|
|
621
|
-
while match and rindex < length:
|
|
622
|
-
r = ranges[rindex]
|
|
623
|
-
try:
|
|
624
|
-
s = subtags[sindex]
|
|
625
|
-
except IndexError:
|
|
626
|
-
# Ran out of subtags,
|
|
627
|
-
# but we still have ranges
|
|
628
|
-
match = False
|
|
629
|
-
continue
|
|
630
|
-
|
|
631
|
-
# Empty range
|
|
632
|
-
if not r:
|
|
633
|
-
match = False
|
|
634
|
-
continue
|
|
635
|
-
|
|
636
|
-
# Matched range
|
|
637
|
-
elif s == r:
|
|
638
|
-
rindex += 1
|
|
639
|
-
|
|
640
|
-
# Implicit wildcard cannot match
|
|
641
|
-
# singletons
|
|
642
|
-
elif len(s) == 1:
|
|
643
|
-
match = False
|
|
644
|
-
continue
|
|
645
|
-
|
|
646
|
-
# Implicitly matched, so grab next subtag
|
|
647
|
-
sindex += 1
|
|
648
|
-
|
|
649
|
-
return match
|
|
650
|
-
|
|
651
|
-
def match_attribute_name(
|
|
652
|
-
self,
|
|
653
|
-
el: bs4.Tag,
|
|
654
|
-
attr: str,
|
|
655
|
-
prefix: str | None
|
|
656
|
-
) -> str | Sequence[str] | None:
|
|
657
|
-
"""Match attribute name and return value if it exists."""
|
|
658
|
-
|
|
659
|
-
value = None
|
|
660
|
-
if self.supports_namespaces():
|
|
661
|
-
value = None
|
|
662
|
-
# If we have not defined namespaces, we can't very well find them, so don't bother trying.
|
|
663
|
-
if prefix:
|
|
664
|
-
ns = self.namespaces.get(prefix)
|
|
665
|
-
if ns is None and prefix != '*':
|
|
666
|
-
return None
|
|
667
|
-
else:
|
|
668
|
-
ns = None
|
|
669
|
-
|
|
670
|
-
for k, v in self.iter_attributes(el):
|
|
671
|
-
|
|
672
|
-
# Get attribute parts
|
|
673
|
-
namespace, name = self.split_namespace(el, k)
|
|
674
|
-
|
|
675
|
-
# Can't match a prefix attribute as we haven't specified one to match
|
|
676
|
-
# Try to match it normally as a whole `p:a` as selector may be trying `p\:a`.
|
|
677
|
-
if ns is None:
|
|
678
|
-
if (self.is_xml and attr == k) or (not self.is_xml and util.lower(attr) == util.lower(k)):
|
|
679
|
-
value = v
|
|
680
|
-
break
|
|
681
|
-
# Coverage is not finding this even though it is executed.
|
|
682
|
-
# Adding a print statement before this (and erasing coverage) causes coverage to find the line.
|
|
683
|
-
# Ignore the false positive message.
|
|
684
|
-
continue # pragma: no cover
|
|
685
|
-
|
|
686
|
-
# We can't match our desired prefix attribute as the attribute doesn't have a prefix
|
|
687
|
-
if namespace is None or ns != namespace and prefix != '*':
|
|
688
|
-
continue
|
|
689
|
-
|
|
690
|
-
# The attribute doesn't match.
|
|
691
|
-
if (util.lower(attr) != util.lower(name)) if not self.is_xml else (attr != name):
|
|
692
|
-
continue
|
|
693
|
-
|
|
694
|
-
value = v
|
|
695
|
-
break
|
|
696
|
-
else:
|
|
697
|
-
for k, v in self.iter_attributes(el):
|
|
698
|
-
if util.lower(attr) != util.lower(k):
|
|
699
|
-
continue
|
|
700
|
-
value = v
|
|
701
|
-
break
|
|
702
|
-
return value
|
|
703
|
-
|
|
704
|
-
def match_namespace(self, el: bs4.Tag, tag: ct.SelectorTag) -> bool:
|
|
705
|
-
"""Match the namespace of the element."""
|
|
706
|
-
|
|
707
|
-
match = True
|
|
708
|
-
namespace = self.get_tag_ns(el)
|
|
709
|
-
default_namespace = self.namespaces.get('')
|
|
710
|
-
tag_ns = '' if tag.prefix is None else self.namespaces.get(tag.prefix)
|
|
711
|
-
# We must match the default namespace if one is not provided
|
|
712
|
-
if tag.prefix is None and (default_namespace is not None and namespace != default_namespace):
|
|
713
|
-
match = False
|
|
714
|
-
# If we specified `|tag`, we must not have a namespace.
|
|
715
|
-
elif (tag.prefix is not None and tag.prefix == '' and namespace):
|
|
716
|
-
match = False
|
|
717
|
-
# Verify prefix matches
|
|
718
|
-
elif (
|
|
719
|
-
tag.prefix and
|
|
720
|
-
tag.prefix != '*' and (tag_ns is None or namespace != tag_ns)
|
|
721
|
-
):
|
|
722
|
-
match = False
|
|
723
|
-
return match
|
|
724
|
-
|
|
725
|
-
def match_attributes(self, el: bs4.Tag, attributes: tuple[ct.SelectorAttribute, ...]) -> bool:
|
|
726
|
-
"""Match attributes."""
|
|
727
|
-
|
|
728
|
-
match = True
|
|
729
|
-
if attributes:
|
|
730
|
-
for a in attributes:
|
|
731
|
-
temp = self.match_attribute_name(el, a.attribute, a.prefix)
|
|
732
|
-
pattern = a.xml_type_pattern if self.is_xml and a.xml_type_pattern else a.pattern
|
|
733
|
-
if temp is None:
|
|
734
|
-
match = False
|
|
735
|
-
break
|
|
736
|
-
value = temp if isinstance(temp, str) else ' '.join(temp)
|
|
737
|
-
if pattern is None:
|
|
738
|
-
continue
|
|
739
|
-
elif pattern.match(value) is None:
|
|
740
|
-
match = False
|
|
741
|
-
break
|
|
742
|
-
return match
|
|
743
|
-
|
|
744
|
-
def match_tagname(self, el: bs4.Tag, tag: ct.SelectorTag) -> bool:
|
|
745
|
-
"""Match tag name."""
|
|
746
|
-
|
|
747
|
-
name = (util.lower(tag.name) if not self.is_xml and tag.name is not None else tag.name)
|
|
748
|
-
return not (
|
|
749
|
-
name is not None and
|
|
750
|
-
name not in (self.get_tag(el), '*')
|
|
751
|
-
)
|
|
752
|
-
|
|
753
|
-
def match_tag(self, el: bs4.Tag, tag: ct.SelectorTag | None) -> bool:
|
|
754
|
-
"""Match the tag."""
|
|
755
|
-
|
|
756
|
-
match = True
|
|
757
|
-
if tag is not None:
|
|
758
|
-
# Verify namespace
|
|
759
|
-
if not self.match_namespace(el, tag):
|
|
760
|
-
match = False
|
|
761
|
-
if not self.match_tagname(el, tag):
|
|
762
|
-
match = False
|
|
763
|
-
return match
|
|
764
|
-
|
|
765
|
-
def match_past_relations(self, el: bs4.Tag, relation: ct.SelectorList) -> bool:
|
|
766
|
-
"""Match past relationship."""
|
|
767
|
-
|
|
768
|
-
found = False
|
|
769
|
-
# I don't think this can ever happen, but it makes `mypy` happy
|
|
770
|
-
if isinstance(relation[0], ct.SelectorNull): # pragma: no cover
|
|
771
|
-
return found
|
|
772
|
-
|
|
773
|
-
if relation[0].rel_type == REL_PARENT:
|
|
774
|
-
parent = self.get_parent(el, no_iframe=self.iframe_restrict)
|
|
775
|
-
while not found and parent:
|
|
776
|
-
found = self.match_selectors(parent, relation)
|
|
777
|
-
parent = self.get_parent(parent, no_iframe=self.iframe_restrict)
|
|
778
|
-
elif relation[0].rel_type == REL_CLOSE_PARENT:
|
|
779
|
-
parent = self.get_parent(el, no_iframe=self.iframe_restrict)
|
|
780
|
-
if parent:
|
|
781
|
-
found = self.match_selectors(parent, relation)
|
|
782
|
-
elif relation[0].rel_type == REL_SIBLING:
|
|
783
|
-
sibling = self.get_previous(el)
|
|
784
|
-
while not found and sibling:
|
|
785
|
-
found = self.match_selectors(sibling, relation)
|
|
786
|
-
sibling = self.get_previous(sibling)
|
|
787
|
-
elif relation[0].rel_type == REL_CLOSE_SIBLING:
|
|
788
|
-
sibling = self.get_previous(el)
|
|
789
|
-
if sibling and self.is_tag(sibling):
|
|
790
|
-
found = self.match_selectors(sibling, relation)
|
|
791
|
-
return found
|
|
792
|
-
|
|
793
|
-
def match_future_child(self, parent: bs4.Tag, relation: ct.SelectorList, recursive: bool = False) -> bool:
|
|
794
|
-
"""Match future child."""
|
|
795
|
-
|
|
796
|
-
match = False
|
|
797
|
-
if recursive:
|
|
798
|
-
children = self.get_descendants # type: Callable[..., Iterator[bs4.Tag]]
|
|
799
|
-
else:
|
|
800
|
-
children = self.get_children
|
|
801
|
-
for child in children(parent, no_iframe=self.iframe_restrict):
|
|
802
|
-
match = self.match_selectors(child, relation)
|
|
803
|
-
if match:
|
|
804
|
-
break
|
|
805
|
-
return match
|
|
806
|
-
|
|
807
|
-
def match_future_relations(self, el: bs4.Tag, relation: ct.SelectorList) -> bool:
|
|
808
|
-
"""Match future relationship."""
|
|
809
|
-
|
|
810
|
-
found = False
|
|
811
|
-
# I don't think this can ever happen, but it makes `mypy` happy
|
|
812
|
-
if isinstance(relation[0], ct.SelectorNull): # pragma: no cover
|
|
813
|
-
return found
|
|
814
|
-
|
|
815
|
-
if relation[0].rel_type == REL_HAS_PARENT:
|
|
816
|
-
found = self.match_future_child(el, relation, True)
|
|
817
|
-
elif relation[0].rel_type == REL_HAS_CLOSE_PARENT:
|
|
818
|
-
found = self.match_future_child(el, relation)
|
|
819
|
-
elif relation[0].rel_type == REL_HAS_SIBLING:
|
|
820
|
-
sibling = self.get_next(el)
|
|
821
|
-
while not found and sibling:
|
|
822
|
-
found = self.match_selectors(sibling, relation)
|
|
823
|
-
sibling = self.get_next(sibling)
|
|
824
|
-
elif relation[0].rel_type == REL_HAS_CLOSE_SIBLING:
|
|
825
|
-
sibling = self.get_next(el)
|
|
826
|
-
if sibling and self.is_tag(sibling):
|
|
827
|
-
found = self.match_selectors(sibling, relation)
|
|
828
|
-
return found
|
|
829
|
-
|
|
830
|
-
def match_relations(self, el: bs4.Tag, relation: ct.SelectorList) -> bool:
|
|
831
|
-
"""Match relationship to other elements."""
|
|
832
|
-
|
|
833
|
-
found = False
|
|
834
|
-
|
|
835
|
-
if isinstance(relation[0], ct.SelectorNull) or relation[0].rel_type is None:
|
|
836
|
-
return found
|
|
837
|
-
|
|
838
|
-
if relation[0].rel_type.startswith(':'):
|
|
839
|
-
found = self.match_future_relations(el, relation)
|
|
840
|
-
else:
|
|
841
|
-
found = self.match_past_relations(el, relation)
|
|
842
|
-
|
|
843
|
-
return found
|
|
844
|
-
|
|
845
|
-
def match_id(self, el: bs4.Tag, ids: tuple[str, ...]) -> bool:
|
|
846
|
-
"""Match element's ID."""
|
|
847
|
-
|
|
848
|
-
found = True
|
|
849
|
-
for i in ids:
|
|
850
|
-
if i != self.get_attribute_by_name(el, 'id', ''):
|
|
851
|
-
found = False
|
|
852
|
-
break
|
|
853
|
-
return found
|
|
854
|
-
|
|
855
|
-
def match_classes(self, el: bs4.Tag, classes: tuple[str, ...]) -> bool:
|
|
856
|
-
"""Match element's classes."""
|
|
857
|
-
|
|
858
|
-
current_classes = self.get_classes(el)
|
|
859
|
-
found = True
|
|
860
|
-
for c in classes:
|
|
861
|
-
if c not in current_classes:
|
|
862
|
-
found = False
|
|
863
|
-
break
|
|
864
|
-
return found
|
|
865
|
-
|
|
866
|
-
def match_root(self, el: bs4.Tag) -> bool:
|
|
867
|
-
"""Match element as root."""
|
|
868
|
-
|
|
869
|
-
is_root = self.is_root(el)
|
|
870
|
-
if is_root:
|
|
871
|
-
sibling = self.get_previous(el, tags=False)
|
|
872
|
-
while is_root and sibling is not None:
|
|
873
|
-
if (
|
|
874
|
-
self.is_tag(sibling) or (self.is_content_string(sibling) and sibling.strip()) or
|
|
875
|
-
self.is_cdata(sibling)
|
|
876
|
-
):
|
|
877
|
-
is_root = False
|
|
878
|
-
else:
|
|
879
|
-
sibling = self.get_previous(sibling, tags=False)
|
|
880
|
-
if is_root:
|
|
881
|
-
sibling = self.get_next(el, tags=False)
|
|
882
|
-
while is_root and sibling is not None:
|
|
883
|
-
if (
|
|
884
|
-
self.is_tag(sibling) or (self.is_content_string(sibling) and sibling.strip()) or
|
|
885
|
-
self.is_cdata(sibling)
|
|
886
|
-
):
|
|
887
|
-
is_root = False
|
|
888
|
-
else:
|
|
889
|
-
sibling = self.get_next(sibling, tags=False)
|
|
890
|
-
return is_root
|
|
891
|
-
|
|
892
|
-
def match_scope(self, el: bs4.Tag) -> bool:
|
|
893
|
-
"""Match element as scope."""
|
|
894
|
-
|
|
895
|
-
return self.scope is el
|
|
896
|
-
|
|
897
|
-
def match_nth_tag_type(self, el: bs4.Tag, child: bs4.Tag) -> bool:
|
|
898
|
-
"""Match tag type for `nth` matches."""
|
|
899
|
-
|
|
900
|
-
return (
|
|
901
|
-
(self.get_tag(child) == self.get_tag(el)) and
|
|
902
|
-
(self.get_tag_ns(child) == self.get_tag_ns(el))
|
|
903
|
-
)
|
|
904
|
-
|
|
905
|
-
def match_nth(self, el: bs4.Tag, nth: bs4.Tag) -> bool:
|
|
906
|
-
"""Match `nth` elements."""
|
|
907
|
-
|
|
908
|
-
matched = True
|
|
909
|
-
|
|
910
|
-
for n in nth:
|
|
911
|
-
matched = False
|
|
912
|
-
if n.selectors and not self.match_selectors(el, n.selectors):
|
|
913
|
-
break
|
|
914
|
-
parent = self.get_parent(el)
|
|
915
|
-
if parent is None:
|
|
916
|
-
parent = self.create_fake_parent(el)
|
|
917
|
-
last = n.last
|
|
918
|
-
last_index = len(parent) - 1
|
|
919
|
-
index = last_index if last else 0
|
|
920
|
-
relative_index = 0
|
|
921
|
-
a = n.a
|
|
922
|
-
b = n.b
|
|
923
|
-
var = n.n
|
|
924
|
-
count = 0
|
|
925
|
-
count_incr = 1
|
|
926
|
-
factor = -1 if last else 1
|
|
927
|
-
idx = last_idx = a * count + b if var else a
|
|
928
|
-
|
|
929
|
-
# We can only adjust bounds within a variable index
|
|
930
|
-
if var:
|
|
931
|
-
# Abort if our nth index is out of bounds and only getting further out of bounds as we increment.
|
|
932
|
-
# Otherwise, increment to try to get in bounds.
|
|
933
|
-
adjust = None
|
|
934
|
-
while idx < 1 or idx > last_index:
|
|
935
|
-
if idx < 0:
|
|
936
|
-
diff_low = 0 - idx
|
|
937
|
-
if adjust is not None and adjust == 1:
|
|
938
|
-
break
|
|
939
|
-
adjust = -1
|
|
940
|
-
count += count_incr
|
|
941
|
-
idx = last_idx = a * count + b if var else a
|
|
942
|
-
diff = 0 - idx
|
|
943
|
-
if diff >= diff_low:
|
|
944
|
-
break
|
|
945
|
-
else:
|
|
946
|
-
diff_high = idx - last_index
|
|
947
|
-
if adjust is not None and adjust == -1:
|
|
948
|
-
break
|
|
949
|
-
adjust = 1
|
|
950
|
-
count += count_incr
|
|
951
|
-
idx = last_idx = a * count + b if var else a
|
|
952
|
-
diff = idx - last_index
|
|
953
|
-
if diff >= diff_high:
|
|
954
|
-
break
|
|
955
|
-
diff_high = diff
|
|
956
|
-
|
|
957
|
-
# If a < 0, our count is working backwards, so floor the index by increasing the count.
|
|
958
|
-
# Find the count that yields the lowest, in bound value and use that.
|
|
959
|
-
# Lastly reverse count increment so that we'll increase our index.
|
|
960
|
-
lowest = count
|
|
961
|
-
if a < 0:
|
|
962
|
-
while idx >= 1:
|
|
963
|
-
lowest = count
|
|
964
|
-
count += count_incr
|
|
965
|
-
idx = last_idx = a * count + b if var else a
|
|
966
|
-
count_incr = -1
|
|
967
|
-
count = lowest
|
|
968
|
-
idx = last_idx = a * count + b if var else a
|
|
969
|
-
|
|
970
|
-
# Evaluate elements while our calculated nth index is still in range
|
|
971
|
-
while 1 <= idx <= last_index + 1:
|
|
972
|
-
child = None
|
|
973
|
-
# Evaluate while our child index is still in range.
|
|
974
|
-
for child in self.get_children(parent, start=index, reverse=factor < 0, tags=False):
|
|
975
|
-
index += factor
|
|
976
|
-
if not self.is_tag(child):
|
|
977
|
-
continue
|
|
978
|
-
# Handle `of S` in `nth-child`
|
|
979
|
-
if n.selectors and not self.match_selectors(child, n.selectors):
|
|
980
|
-
continue
|
|
981
|
-
# Handle `of-type`
|
|
982
|
-
if n.of_type and not self.match_nth_tag_type(el, child):
|
|
983
|
-
continue
|
|
984
|
-
relative_index += 1
|
|
985
|
-
if relative_index == idx:
|
|
986
|
-
if child is el:
|
|
987
|
-
matched = True
|
|
988
|
-
else:
|
|
989
|
-
break
|
|
990
|
-
if child is el:
|
|
991
|
-
break
|
|
992
|
-
if child is el:
|
|
993
|
-
break
|
|
994
|
-
last_idx = idx
|
|
995
|
-
count += count_incr
|
|
996
|
-
if count < 0:
|
|
997
|
-
# Count is counting down and has now ventured into invalid territory.
|
|
998
|
-
break
|
|
999
|
-
idx = a * count + b if var else a
|
|
1000
|
-
if last_idx == idx:
|
|
1001
|
-
break
|
|
1002
|
-
if not matched:
|
|
1003
|
-
break
|
|
1004
|
-
return matched
|
|
1005
|
-
|
|
1006
|
-
def match_empty(self, el: bs4.Tag) -> bool:
|
|
1007
|
-
"""Check if element is empty (if requested)."""
|
|
1008
|
-
|
|
1009
|
-
is_empty = True
|
|
1010
|
-
for child in self.get_children(el, tags=False):
|
|
1011
|
-
if self.is_tag(child):
|
|
1012
|
-
is_empty = False
|
|
1013
|
-
break
|
|
1014
|
-
elif self.is_content_string(child) and RE_NOT_EMPTY.search(child):
|
|
1015
|
-
is_empty = False
|
|
1016
|
-
break
|
|
1017
|
-
return is_empty
|
|
1018
|
-
|
|
1019
|
-
def match_subselectors(self, el: bs4.Tag, selectors: tuple[ct.SelectorList, ...]) -> bool:
|
|
1020
|
-
"""Match selectors."""
|
|
1021
|
-
|
|
1022
|
-
match = True
|
|
1023
|
-
for sel in selectors:
|
|
1024
|
-
if not self.match_selectors(el, sel):
|
|
1025
|
-
match = False
|
|
1026
|
-
return match
|
|
1027
|
-
|
|
1028
|
-
def match_contains(self, el: bs4.Tag, contains: tuple[ct.SelectorContains, ...]) -> bool:
|
|
1029
|
-
"""Match element if it contains text."""
|
|
1030
|
-
|
|
1031
|
-
match = True
|
|
1032
|
-
content = None # type: str | Sequence[str] | None
|
|
1033
|
-
for contain_list in contains:
|
|
1034
|
-
if content is None:
|
|
1035
|
-
if contain_list.own:
|
|
1036
|
-
content = self.get_own_text(el, no_iframe=self.is_html)
|
|
1037
|
-
else:
|
|
1038
|
-
content = self.get_text(el, no_iframe=self.is_html)
|
|
1039
|
-
found = False
|
|
1040
|
-
for text in contain_list.text:
|
|
1041
|
-
if contain_list.own:
|
|
1042
|
-
for c in content:
|
|
1043
|
-
if text in c:
|
|
1044
|
-
found = True
|
|
1045
|
-
break
|
|
1046
|
-
if found:
|
|
1047
|
-
break
|
|
1048
|
-
else:
|
|
1049
|
-
if text in content:
|
|
1050
|
-
found = True
|
|
1051
|
-
break
|
|
1052
|
-
if not found:
|
|
1053
|
-
match = False
|
|
1054
|
-
return match
|
|
1055
|
-
|
|
1056
|
-
def match_default(self, el: bs4.Tag) -> bool:
|
|
1057
|
-
"""Match default."""
|
|
1058
|
-
|
|
1059
|
-
match = False
|
|
1060
|
-
|
|
1061
|
-
# Find this input's form
|
|
1062
|
-
form = None
|
|
1063
|
-
parent = self.get_parent(el, no_iframe=True)
|
|
1064
|
-
while parent and form is None:
|
|
1065
|
-
if self.get_tag(parent) == 'form' and self.is_html_tag(parent):
|
|
1066
|
-
form = parent
|
|
1067
|
-
else:
|
|
1068
|
-
parent = self.get_parent(parent, no_iframe=True)
|
|
1069
|
-
|
|
1070
|
-
# Look in form cache to see if we've already located its default button
|
|
1071
|
-
found_form = False
|
|
1072
|
-
for f, t in self.cached_default_forms:
|
|
1073
|
-
if f is form:
|
|
1074
|
-
found_form = True
|
|
1075
|
-
if t is el:
|
|
1076
|
-
match = True
|
|
1077
|
-
break
|
|
1078
|
-
|
|
1079
|
-
# We didn't have the form cached, so look for its default button
|
|
1080
|
-
if not found_form:
|
|
1081
|
-
for child in self.get_descendants(form, no_iframe=True):
|
|
1082
|
-
name = self.get_tag(child)
|
|
1083
|
-
# Can't do nested forms (haven't figured out why we never hit this)
|
|
1084
|
-
if name == 'form': # pragma: no cover
|
|
1085
|
-
break
|
|
1086
|
-
if name in ('input', 'button'):
|
|
1087
|
-
v = self.get_attribute_by_name(child, 'type', '')
|
|
1088
|
-
if v and util.lower(v) == 'submit':
|
|
1089
|
-
self.cached_default_forms.append((form, child))
|
|
1090
|
-
if el is child:
|
|
1091
|
-
match = True
|
|
1092
|
-
break
|
|
1093
|
-
return match
|
|
1094
|
-
|
|
1095
|
-
def match_indeterminate(self, el: bs4.Tag) -> bool:
|
|
1096
|
-
"""Match default."""
|
|
1097
|
-
|
|
1098
|
-
match = False
|
|
1099
|
-
name = cast(str, self.get_attribute_by_name(el, 'name'))
|
|
1100
|
-
|
|
1101
|
-
def get_parent_form(el: bs4.Tag) -> bs4.Tag | None:
|
|
1102
|
-
"""Find this input's form."""
|
|
1103
|
-
form = None
|
|
1104
|
-
parent = self.get_parent(el, no_iframe=True)
|
|
1105
|
-
while form is None:
|
|
1106
|
-
if self.get_tag(parent) == 'form' and self.is_html_tag(parent):
|
|
1107
|
-
form = parent
|
|
1108
|
-
break
|
|
1109
|
-
last_parent = parent
|
|
1110
|
-
parent = self.get_parent(parent, no_iframe=True)
|
|
1111
|
-
if parent is None:
|
|
1112
|
-
form = last_parent
|
|
1113
|
-
break
|
|
1114
|
-
return form
|
|
1115
|
-
|
|
1116
|
-
form = get_parent_form(el)
|
|
1117
|
-
|
|
1118
|
-
# Look in form cache to see if we've already evaluated that its fellow radio buttons are indeterminate
|
|
1119
|
-
found_form = False
|
|
1120
|
-
for f, n, i in self.cached_indeterminate_forms:
|
|
1121
|
-
if f is form and n == name:
|
|
1122
|
-
found_form = True
|
|
1123
|
-
if i is True:
|
|
1124
|
-
match = True
|
|
1125
|
-
break
|
|
1126
|
-
|
|
1127
|
-
# We didn't have the form cached, so validate that the radio button is indeterminate
|
|
1128
|
-
if not found_form:
|
|
1129
|
-
checked = False
|
|
1130
|
-
for child in self.get_descendants(form, no_iframe=True):
|
|
1131
|
-
if child is el:
|
|
1132
|
-
continue
|
|
1133
|
-
tag_name = self.get_tag(child)
|
|
1134
|
-
if tag_name == 'input':
|
|
1135
|
-
is_radio = False
|
|
1136
|
-
check = False
|
|
1137
|
-
has_name = False
|
|
1138
|
-
for k, v in self.iter_attributes(child):
|
|
1139
|
-
if util.lower(k) == 'type' and util.lower(v) == 'radio':
|
|
1140
|
-
is_radio = True
|
|
1141
|
-
elif util.lower(k) == 'name' and v == name:
|
|
1142
|
-
has_name = True
|
|
1143
|
-
elif util.lower(k) == 'checked':
|
|
1144
|
-
check = True
|
|
1145
|
-
if is_radio and check and has_name and get_parent_form(child) is form:
|
|
1146
|
-
checked = True
|
|
1147
|
-
break
|
|
1148
|
-
if checked:
|
|
1149
|
-
break
|
|
1150
|
-
if not checked:
|
|
1151
|
-
match = True
|
|
1152
|
-
self.cached_indeterminate_forms.append((form, name, match))
|
|
1153
|
-
|
|
1154
|
-
return match
|
|
1155
|
-
|
|
1156
|
-
def match_lang(self, el: bs4.Tag, langs: tuple[ct.SelectorLang, ...]) -> bool:
|
|
1157
|
-
"""Match languages."""
|
|
1158
|
-
|
|
1159
|
-
match = False
|
|
1160
|
-
has_ns = self.supports_namespaces()
|
|
1161
|
-
root = self.root
|
|
1162
|
-
has_html_namespace = self.has_html_namespace
|
|
1163
|
-
|
|
1164
|
-
# Walk parents looking for `lang` (HTML) or `xml:lang` XML property.
|
|
1165
|
-
parent = el
|
|
1166
|
-
found_lang = None
|
|
1167
|
-
last = None
|
|
1168
|
-
while not found_lang:
|
|
1169
|
-
has_html_ns = self.has_html_ns(parent)
|
|
1170
|
-
for k, v in self.iter_attributes(parent):
|
|
1171
|
-
attr_ns, attr = self.split_namespace(parent, k)
|
|
1172
|
-
if (
|
|
1173
|
-
((not has_ns or has_html_ns) and (util.lower(k) if not self.is_xml else k) == 'lang') or
|
|
1174
|
-
(
|
|
1175
|
-
has_ns and not has_html_ns and attr_ns == NS_XML and
|
|
1176
|
-
(util.lower(attr) if not self.is_xml and attr is not None else attr) == 'lang'
|
|
1177
|
-
)
|
|
1178
|
-
):
|
|
1179
|
-
found_lang = v
|
|
1180
|
-
break
|
|
1181
|
-
last = parent
|
|
1182
|
-
parent = self.get_parent(parent, no_iframe=self.is_html)
|
|
1183
|
-
|
|
1184
|
-
if parent is None:
|
|
1185
|
-
root = last
|
|
1186
|
-
has_html_namespace = self.has_html_ns(root)
|
|
1187
|
-
parent = last
|
|
1188
|
-
break
|
|
1189
|
-
|
|
1190
|
-
# Use cached meta language.
|
|
1191
|
-
if found_lang is None and self.cached_meta_lang:
|
|
1192
|
-
for cache in self.cached_meta_lang:
|
|
1193
|
-
if root is cache[0]:
|
|
1194
|
-
found_lang = cache[1]
|
|
1195
|
-
|
|
1196
|
-
# If we couldn't find a language, and the document is HTML, look to meta to determine language.
|
|
1197
|
-
if found_lang is None and (not self.is_xml or (has_html_namespace and root.name == 'html')):
|
|
1198
|
-
# Find head
|
|
1199
|
-
found = False
|
|
1200
|
-
for tag in ('html', 'head'):
|
|
1201
|
-
found = False
|
|
1202
|
-
for child in self.get_children(parent, no_iframe=self.is_html):
|
|
1203
|
-
if self.get_tag(child) == tag and self.is_html_tag(child):
|
|
1204
|
-
found = True
|
|
1205
|
-
parent = child
|
|
1206
|
-
break
|
|
1207
|
-
if not found: # pragma: no cover
|
|
1208
|
-
break
|
|
1209
|
-
|
|
1210
|
-
# Search meta tags
|
|
1211
|
-
if found:
|
|
1212
|
-
for child in parent:
|
|
1213
|
-
if self.is_tag(child) and self.get_tag(child) == 'meta' and self.is_html_tag(parent):
|
|
1214
|
-
c_lang = False
|
|
1215
|
-
content = None
|
|
1216
|
-
for k, v in self.iter_attributes(child):
|
|
1217
|
-
if util.lower(k) == 'http-equiv' and util.lower(v) == 'content-language':
|
|
1218
|
-
c_lang = True
|
|
1219
|
-
if util.lower(k) == 'content':
|
|
1220
|
-
content = v
|
|
1221
|
-
if c_lang and content:
|
|
1222
|
-
found_lang = content
|
|
1223
|
-
self.cached_meta_lang.append((cast(str, root), cast(str, found_lang)))
|
|
1224
|
-
break
|
|
1225
|
-
if found_lang is not None:
|
|
1226
|
-
break
|
|
1227
|
-
if found_lang is None:
|
|
1228
|
-
self.cached_meta_lang.append((cast(str, root), ''))
|
|
1229
|
-
|
|
1230
|
-
# If we determined a language, compare.
|
|
1231
|
-
if found_lang is not None:
|
|
1232
|
-
for patterns in langs:
|
|
1233
|
-
match = False
|
|
1234
|
-
for pattern in patterns:
|
|
1235
|
-
if self.extended_language_filter(pattern, cast(str, found_lang)):
|
|
1236
|
-
match = True
|
|
1237
|
-
if not match:
|
|
1238
|
-
break
|
|
1239
|
-
|
|
1240
|
-
return match
|
|
1241
|
-
|
|
1242
|
-
def match_dir(self, el: bs4.Tag, directionality: int) -> bool:
|
|
1243
|
-
"""Check directionality."""
|
|
1244
|
-
|
|
1245
|
-
# If we have to match both left and right, we can't match either.
|
|
1246
|
-
if directionality & ct.SEL_DIR_LTR and directionality & ct.SEL_DIR_RTL:
|
|
1247
|
-
return False
|
|
1248
|
-
|
|
1249
|
-
if el is None or not self.is_html_tag(el):
|
|
1250
|
-
return False
|
|
1251
|
-
|
|
1252
|
-
# Element has defined direction of left to right or right to left
|
|
1253
|
-
direction = DIR_MAP.get(util.lower(self.get_attribute_by_name(el, 'dir', '')), None)
|
|
1254
|
-
if direction not in (None, 0):
|
|
1255
|
-
return direction == directionality
|
|
1256
|
-
|
|
1257
|
-
# Element is the document element (the root) and no direction assigned, assume left to right.
|
|
1258
|
-
is_root = self.is_root(el)
|
|
1259
|
-
if is_root and direction is None:
|
|
1260
|
-
return ct.SEL_DIR_LTR == directionality
|
|
1261
|
-
|
|
1262
|
-
# If `input[type=telephone]` and no direction is assigned, assume left to right.
|
|
1263
|
-
name = self.get_tag(el)
|
|
1264
|
-
is_input = name == 'input'
|
|
1265
|
-
is_textarea = name == 'textarea'
|
|
1266
|
-
is_bdi = name == 'bdi'
|
|
1267
|
-
itype = util.lower(self.get_attribute_by_name(el, 'type', '')) if is_input else ''
|
|
1268
|
-
if is_input and itype == 'tel' and direction is None:
|
|
1269
|
-
return ct.SEL_DIR_LTR == directionality
|
|
1270
|
-
|
|
1271
|
-
# Auto handling for text inputs
|
|
1272
|
-
if ((is_input and itype in ('text', 'search', 'tel', 'url', 'email')) or is_textarea) and direction == 0:
|
|
1273
|
-
if is_textarea:
|
|
1274
|
-
value = ''.join(node for node in self.get_contents(el, no_iframe=True) if self.is_content_string(node))
|
|
1275
|
-
else:
|
|
1276
|
-
value = cast(str, self.get_attribute_by_name(el, 'value', ''))
|
|
1277
|
-
if value:
|
|
1278
|
-
for c in value:
|
|
1279
|
-
bidi = unicodedata.bidirectional(c)
|
|
1280
|
-
if bidi in ('AL', 'R', 'L'):
|
|
1281
|
-
direction = ct.SEL_DIR_LTR if bidi == 'L' else ct.SEL_DIR_RTL
|
|
1282
|
-
return direction == directionality
|
|
1283
|
-
# Assume left to right
|
|
1284
|
-
return ct.SEL_DIR_LTR == directionality
|
|
1285
|
-
elif is_root:
|
|
1286
|
-
return ct.SEL_DIR_LTR == directionality
|
|
1287
|
-
return self.match_dir(self.get_parent(el, no_iframe=True), directionality)
|
|
1288
|
-
|
|
1289
|
-
# Auto handling for `bdi` and other non text inputs.
|
|
1290
|
-
if (is_bdi and direction is None) or direction == 0:
|
|
1291
|
-
direction = self.find_bidi(el)
|
|
1292
|
-
if direction is not None:
|
|
1293
|
-
return direction == directionality
|
|
1294
|
-
elif is_root:
|
|
1295
|
-
return ct.SEL_DIR_LTR == directionality
|
|
1296
|
-
return self.match_dir(self.get_parent(el, no_iframe=True), directionality)
|
|
1297
|
-
|
|
1298
|
-
# Match parents direction
|
|
1299
|
-
return self.match_dir(self.get_parent(el, no_iframe=True), directionality)
|
|
1300
|
-
|
|
1301
|
-
def match_range(self, el: bs4.Tag, condition: int) -> bool:
|
|
1302
|
-
"""
|
|
1303
|
-
Match range.
|
|
1304
|
-
|
|
1305
|
-
Behavior is modeled after what we see in browsers. Browsers seem to evaluate
|
|
1306
|
-
if the value is out of range, and if not, it is in range. So a missing value
|
|
1307
|
-
will not evaluate out of range; therefore, value is in range. Personally, I
|
|
1308
|
-
feel like this should evaluate as neither in or out of range.
|
|
1309
|
-
"""
|
|
1310
|
-
|
|
1311
|
-
out_of_range = False
|
|
1312
|
-
|
|
1313
|
-
itype = util.lower(self.get_attribute_by_name(el, 'type'))
|
|
1314
|
-
mn = Inputs.parse_value(itype, cast(str, self.get_attribute_by_name(el, 'min', None)))
|
|
1315
|
-
mx = Inputs.parse_value(itype, cast(str, self.get_attribute_by_name(el, 'max', None)))
|
|
1316
|
-
|
|
1317
|
-
# There is no valid min or max, so we cannot evaluate a range
|
|
1318
|
-
if mn is None and mx is None:
|
|
1319
|
-
return False
|
|
1320
|
-
|
|
1321
|
-
value = Inputs.parse_value(itype, cast(str, self.get_attribute_by_name(el, 'value', None)))
|
|
1322
|
-
if value is not None:
|
|
1323
|
-
if itype in ("date", "datetime-local", "month", "week", "number", "range"):
|
|
1324
|
-
if mn is not None and value < mn:
|
|
1325
|
-
out_of_range = True
|
|
1326
|
-
if not out_of_range and mx is not None and value > mx:
|
|
1327
|
-
out_of_range = True
|
|
1328
|
-
elif itype == "time":
|
|
1329
|
-
if mn is not None and mx is not None and mn > mx:
|
|
1330
|
-
# Time is periodic, so this is a reversed/discontinuous range
|
|
1331
|
-
if value < mn and value > mx:
|
|
1332
|
-
out_of_range = True
|
|
1333
|
-
else:
|
|
1334
|
-
if mn is not None and value < mn:
|
|
1335
|
-
out_of_range = True
|
|
1336
|
-
if not out_of_range and mx is not None and value > mx:
|
|
1337
|
-
out_of_range = True
|
|
1338
|
-
|
|
1339
|
-
return not out_of_range if condition & ct.SEL_IN_RANGE else out_of_range
|
|
1340
|
-
|
|
1341
|
-
def match_defined(self, el: bs4.Tag) -> bool:
|
|
1342
|
-
"""
|
|
1343
|
-
Match defined.
|
|
1344
|
-
|
|
1345
|
-
`:defined` is related to custom elements in a browser.
|
|
1346
|
-
|
|
1347
|
-
- If the document is XML (not XHTML), all tags will match.
|
|
1348
|
-
- Tags that are not custom (don't have a hyphen) are marked defined.
|
|
1349
|
-
- If the tag has a prefix (without or without a namespace), it will not match.
|
|
1350
|
-
|
|
1351
|
-
This is of course requires the parser to provide us with the proper prefix and namespace info,
|
|
1352
|
-
if it doesn't, there is nothing we can do.
|
|
1353
|
-
"""
|
|
1354
|
-
|
|
1355
|
-
name = self.get_tag(el)
|
|
1356
|
-
return (
|
|
1357
|
-
name is not None and (
|
|
1358
|
-
name.find('-') == -1 or
|
|
1359
|
-
name.find(':') != -1 or
|
|
1360
|
-
self.get_prefix(el) is not None
|
|
1361
|
-
)
|
|
1362
|
-
)
|
|
1363
|
-
|
|
1364
|
-
def match_placeholder_shown(self, el: bs4.Tag) -> bool:
|
|
1365
|
-
"""
|
|
1366
|
-
Match placeholder shown according to HTML spec.
|
|
1367
|
-
|
|
1368
|
-
- text area should be checked if they have content. A single newline does not count as content.
|
|
1369
|
-
|
|
1370
|
-
"""
|
|
1371
|
-
|
|
1372
|
-
match = False
|
|
1373
|
-
content = self.get_text(el)
|
|
1374
|
-
if content in ('', '\n'):
|
|
1375
|
-
match = True
|
|
1376
|
-
|
|
1377
|
-
return match
|
|
1378
|
-
|
|
1379
|
-
def match_selectors(self, el: bs4.Tag, selectors: ct.SelectorList) -> bool:
|
|
1380
|
-
"""Check if element matches one of the selectors."""
|
|
1381
|
-
|
|
1382
|
-
match = False
|
|
1383
|
-
is_not = selectors.is_not
|
|
1384
|
-
is_html = selectors.is_html
|
|
1385
|
-
|
|
1386
|
-
# Internal selector lists that use the HTML flag, will automatically get the `html` namespace.
|
|
1387
|
-
if is_html:
|
|
1388
|
-
namespaces = self.namespaces
|
|
1389
|
-
iframe_restrict = self.iframe_restrict
|
|
1390
|
-
self.namespaces = {'html': NS_XHTML}
|
|
1391
|
-
self.iframe_restrict = True
|
|
1392
|
-
|
|
1393
|
-
if not is_html or self.is_html:
|
|
1394
|
-
for selector in selectors:
|
|
1395
|
-
match = is_not
|
|
1396
|
-
# We have a un-matchable situation (like `:focus` as you can focus an element in this environment)
|
|
1397
|
-
if isinstance(selector, ct.SelectorNull):
|
|
1398
|
-
continue
|
|
1399
|
-
# Verify tag matches
|
|
1400
|
-
if not self.match_tag(el, selector.tag):
|
|
1401
|
-
continue
|
|
1402
|
-
# Verify tag is defined
|
|
1403
|
-
if selector.flags & ct.SEL_DEFINED and not self.match_defined(el):
|
|
1404
|
-
continue
|
|
1405
|
-
# Verify element is root
|
|
1406
|
-
if selector.flags & ct.SEL_ROOT and not self.match_root(el):
|
|
1407
|
-
continue
|
|
1408
|
-
# Verify element is scope
|
|
1409
|
-
if selector.flags & ct.SEL_SCOPE and not self.match_scope(el):
|
|
1410
|
-
continue
|
|
1411
|
-
# Verify element has placeholder shown
|
|
1412
|
-
if selector.flags & ct.SEL_PLACEHOLDER_SHOWN and not self.match_placeholder_shown(el):
|
|
1413
|
-
continue
|
|
1414
|
-
# Verify `nth` matches
|
|
1415
|
-
if not self.match_nth(el, selector.nth):
|
|
1416
|
-
continue
|
|
1417
|
-
if selector.flags & ct.SEL_EMPTY and not self.match_empty(el):
|
|
1418
|
-
continue
|
|
1419
|
-
# Verify id matches
|
|
1420
|
-
if selector.ids and not self.match_id(el, selector.ids):
|
|
1421
|
-
continue
|
|
1422
|
-
# Verify classes match
|
|
1423
|
-
if selector.classes and not self.match_classes(el, selector.classes):
|
|
1424
|
-
continue
|
|
1425
|
-
# Verify attribute(s) match
|
|
1426
|
-
if not self.match_attributes(el, selector.attributes):
|
|
1427
|
-
continue
|
|
1428
|
-
# Verify ranges
|
|
1429
|
-
if selector.flags & RANGES and not self.match_range(el, selector.flags & RANGES):
|
|
1430
|
-
continue
|
|
1431
|
-
# Verify language patterns
|
|
1432
|
-
if selector.lang and not self.match_lang(el, selector.lang):
|
|
1433
|
-
continue
|
|
1434
|
-
# Verify pseudo selector patterns
|
|
1435
|
-
if selector.selectors and not self.match_subselectors(el, selector.selectors):
|
|
1436
|
-
continue
|
|
1437
|
-
# Verify relationship selectors
|
|
1438
|
-
if selector.relation and not self.match_relations(el, selector.relation):
|
|
1439
|
-
continue
|
|
1440
|
-
# Validate that the current default selector match corresponds to the first submit button in the form
|
|
1441
|
-
if selector.flags & ct.SEL_DEFAULT and not self.match_default(el):
|
|
1442
|
-
continue
|
|
1443
|
-
# Validate that the unset radio button is among radio buttons with the same name in a form that are
|
|
1444
|
-
# also not set.
|
|
1445
|
-
if selector.flags & ct.SEL_INDETERMINATE and not self.match_indeterminate(el):
|
|
1446
|
-
continue
|
|
1447
|
-
# Validate element directionality
|
|
1448
|
-
if selector.flags & DIR_FLAGS and not self.match_dir(el, selector.flags & DIR_FLAGS):
|
|
1449
|
-
continue
|
|
1450
|
-
# Validate that the tag contains the specified text.
|
|
1451
|
-
if selector.contains and not self.match_contains(el, selector.contains):
|
|
1452
|
-
continue
|
|
1453
|
-
match = not is_not
|
|
1454
|
-
break
|
|
1455
|
-
|
|
1456
|
-
# Restore actual namespaces being used for external selector lists
|
|
1457
|
-
if is_html:
|
|
1458
|
-
self.namespaces = namespaces
|
|
1459
|
-
self.iframe_restrict = iframe_restrict
|
|
1460
|
-
|
|
1461
|
-
return match
|
|
1462
|
-
|
|
1463
|
-
def select(self, limit: int = 0) -> Iterator[bs4.Tag]:
|
|
1464
|
-
"""Match all tags under the targeted tag."""
|
|
1465
|
-
|
|
1466
|
-
lim = None if limit < 1 else limit
|
|
1467
|
-
|
|
1468
|
-
for child in self.get_descendants(self.tag):
|
|
1469
|
-
if self.match(child):
|
|
1470
|
-
yield child
|
|
1471
|
-
if lim is not None:
|
|
1472
|
-
lim -= 1
|
|
1473
|
-
if lim < 1:
|
|
1474
|
-
break
|
|
1475
|
-
|
|
1476
|
-
def closest(self) -> bs4.Tag | None:
|
|
1477
|
-
"""Match closest ancestor."""
|
|
1478
|
-
|
|
1479
|
-
current = self.tag
|
|
1480
|
-
closest = None
|
|
1481
|
-
while closest is None and current is not None:
|
|
1482
|
-
if self.match(current):
|
|
1483
|
-
closest = current
|
|
1484
|
-
else:
|
|
1485
|
-
current = self.get_parent(current)
|
|
1486
|
-
return closest
|
|
1487
|
-
|
|
1488
|
-
def filter(self) -> list[bs4.Tag]: # noqa A001
|
|
1489
|
-
"""Filter tag's children."""
|
|
1490
|
-
|
|
1491
|
-
return [tag for tag in self.get_contents(self.tag) if not self.is_navigable_string(tag) and self.match(tag)]
|
|
1492
|
-
|
|
1493
|
-
def match(self, el: bs4.Tag) -> bool:
|
|
1494
|
-
"""Match."""
|
|
1495
|
-
|
|
1496
|
-
return not self.is_doc(el) and self.is_tag(el) and self.match_selectors(el, self.selectors)
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
class SoupSieve(ct.Immutable):
|
|
1500
|
-
"""Compiled Soup Sieve selector matching object."""
|
|
1501
|
-
|
|
1502
|
-
pattern: str
|
|
1503
|
-
selectors: ct.SelectorList
|
|
1504
|
-
namespaces: ct.Namespaces | None
|
|
1505
|
-
custom: dict[str, str]
|
|
1506
|
-
flags: int
|
|
1507
|
-
|
|
1508
|
-
__slots__ = ("pattern", "selectors", "namespaces", "custom", "flags", "_hash")
|
|
1509
|
-
|
|
1510
|
-
def __init__(
|
|
1511
|
-
self,
|
|
1512
|
-
pattern: str,
|
|
1513
|
-
selectors: ct.SelectorList,
|
|
1514
|
-
namespaces: ct.Namespaces | None,
|
|
1515
|
-
custom: ct.CustomSelectors | None,
|
|
1516
|
-
flags: int
|
|
1517
|
-
):
|
|
1518
|
-
"""Initialize."""
|
|
1519
|
-
|
|
1520
|
-
super().__init__(
|
|
1521
|
-
pattern=pattern,
|
|
1522
|
-
selectors=selectors,
|
|
1523
|
-
namespaces=namespaces,
|
|
1524
|
-
custom=custom,
|
|
1525
|
-
flags=flags
|
|
1526
|
-
)
|
|
1527
|
-
|
|
1528
|
-
def match(self, tag: bs4.Tag) -> bool:
|
|
1529
|
-
"""Match."""
|
|
1530
|
-
|
|
1531
|
-
return CSSMatch(self.selectors, tag, self.namespaces, self.flags).match(tag)
|
|
1532
|
-
|
|
1533
|
-
def closest(self, tag: bs4.Tag) -> bs4.Tag:
|
|
1534
|
-
"""Match closest ancestor."""
|
|
1535
|
-
|
|
1536
|
-
return CSSMatch(self.selectors, tag, self.namespaces, self.flags).closest()
|
|
1537
|
-
|
|
1538
|
-
def filter(self, iterable: Iterable[bs4.Tag]) -> list[bs4.Tag]: # noqa A001
|
|
1539
|
-
"""
|
|
1540
|
-
Filter.
|
|
1541
|
-
|
|
1542
|
-
`CSSMatch` can cache certain searches for tags of the same document,
|
|
1543
|
-
so if we are given a tag, all tags are from the same document,
|
|
1544
|
-
and we can take advantage of the optimization.
|
|
1545
|
-
|
|
1546
|
-
Any other kind of iterable could have tags from different documents or detached tags,
|
|
1547
|
-
so for those, we use a new `CSSMatch` for each item in the iterable.
|
|
1548
|
-
"""
|
|
1549
|
-
|
|
1550
|
-
if CSSMatch.is_tag(iterable):
|
|
1551
|
-
return CSSMatch(self.selectors, iterable, self.namespaces, self.flags).filter()
|
|
1552
|
-
else:
|
|
1553
|
-
return [node for node in iterable if not CSSMatch.is_navigable_string(node) and self.match(node)]
|
|
1554
|
-
|
|
1555
|
-
def select_one(self, tag: bs4.Tag) -> bs4.Tag:
|
|
1556
|
-
"""Select a single tag."""
|
|
1557
|
-
|
|
1558
|
-
tags = self.select(tag, limit=1)
|
|
1559
|
-
return tags[0] if tags else None
|
|
1560
|
-
|
|
1561
|
-
def select(self, tag: bs4.Tag, limit: int = 0) -> list[bs4.Tag]:
|
|
1562
|
-
"""Select the specified tags."""
|
|
1563
|
-
|
|
1564
|
-
return list(self.iselect(tag, limit))
|
|
1565
|
-
|
|
1566
|
-
def iselect(self, tag: bs4.Tag, limit: int = 0) -> Iterator[bs4.Tag]:
|
|
1567
|
-
"""Iterate the specified tags."""
|
|
1568
|
-
|
|
1569
|
-
yield from CSSMatch(self.selectors, tag, self.namespaces, self.flags).select(limit)
|
|
1570
|
-
|
|
1571
|
-
def __repr__(self) -> str: # pragma: no cover
|
|
1572
|
-
"""Representation."""
|
|
1573
|
-
|
|
1574
|
-
return (
|
|
1575
|
-
f"SoupSieve(pattern={self.pattern!r}, namespaces={self.namespaces!r}, "
|
|
1576
|
-
f"custom={self.custom!r}, flags={self.flags!r})"
|
|
1577
|
-
)
|
|
1578
|
-
|
|
1579
|
-
__str__ = __repr__
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
ct.pickle_register(SoupSieve)
|