@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,1452 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
"""Tests for Beautiful Soup's tree traversal methods.
|
|
3
|
-
|
|
4
|
-
The tree traversal methods are the main advantage of using Beautiful
|
|
5
|
-
Soup over just using a parser.
|
|
6
|
-
|
|
7
|
-
Different parsers will build different Beautiful Soup trees given the
|
|
8
|
-
same markup, but all Beautiful Soup trees can be traversed with the
|
|
9
|
-
methods tested here.
|
|
10
|
-
"""
|
|
11
|
-
|
|
12
|
-
import pytest
|
|
13
|
-
import re
|
|
14
|
-
import warnings
|
|
15
|
-
from bs4 import BeautifulSoup
|
|
16
|
-
from bs4.builder import builder_registry
|
|
17
|
-
from bs4.element import (
|
|
18
|
-
AttributeResemblesVariableWarning,
|
|
19
|
-
CData,
|
|
20
|
-
Comment,
|
|
21
|
-
NavigableString,
|
|
22
|
-
Tag,
|
|
23
|
-
)
|
|
24
|
-
from bs4.filter import SoupStrainer
|
|
25
|
-
from . import (
|
|
26
|
-
SoupTest,
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class TestFind(SoupTest):
|
|
31
|
-
"""Basic tests of the find() method.
|
|
32
|
-
"""
|
|
33
|
-
|
|
34
|
-
def test_find_tag(self):
|
|
35
|
-
soup = self.soup("<a>1</a><b>2</b><a>3</a><b>4</b>")
|
|
36
|
-
assert soup.find("b").string == "2"
|
|
37
|
-
|
|
38
|
-
def test_unicode_text_find(self):
|
|
39
|
-
soup = self.soup("<h1>Räksmörgås</h1>")
|
|
40
|
-
assert soup.find(string="Räksmörgås") == "Räksmörgås"
|
|
41
|
-
|
|
42
|
-
def test_unicode_attribute_find(self):
|
|
43
|
-
soup = self.soup('<h1 id="Räksmörgås">here it is</h1>')
|
|
44
|
-
str(soup)
|
|
45
|
-
assert "here it is" == soup.find(id="Räksmörgås").text
|
|
46
|
-
|
|
47
|
-
def test_find_everything(self):
|
|
48
|
-
"""Test an optimization that finds all tags."""
|
|
49
|
-
soup = self.soup("<a>foo</a><b>bar</b>")
|
|
50
|
-
assert 2 == len(soup.find_all())
|
|
51
|
-
|
|
52
|
-
def test_find_everything_with_name(self):
|
|
53
|
-
"""Test an optimization that finds all tags with a given name."""
|
|
54
|
-
soup = self.soup("<a>foo</a><b>bar</b><a>baz</a>")
|
|
55
|
-
assert 2 == len(soup.find_all("a"))
|
|
56
|
-
|
|
57
|
-
def test_find_with_no_arguments(self):
|
|
58
|
-
soup = self.soup("<div></div><p></p>")
|
|
59
|
-
assert "div" == soup.find().name
|
|
60
|
-
assert "div" == soup.find("p").find_previous_sibling().name
|
|
61
|
-
assert "p" == soup.find("div").find_next_sibling().name
|
|
62
|
-
|
|
63
|
-
def test_find_with_no_arguments_only_finds_tags(self):
|
|
64
|
-
soup = self.soup("text<div>text</div>text<p>text</p>")
|
|
65
|
-
assert "div" == soup.find().name
|
|
66
|
-
assert "div" == soup.find("p").find_previous_sibling().name
|
|
67
|
-
assert "p" == soup.find("div").find_next_sibling().name
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
class TestFindAll(SoupTest):
|
|
71
|
-
"""Basic tests of the find_all() method."""
|
|
72
|
-
|
|
73
|
-
def test_find_all_with_no_arguments_only_finds_tags(self):
|
|
74
|
-
soup = self.soup("<body>text<div>text</div>text<p>text</p></body>")
|
|
75
|
-
assert 2 == len(soup.body.find_all())
|
|
76
|
-
assert 1 == len(soup.find("p").find_previous_siblings())
|
|
77
|
-
assert 1 == len(soup.find("div").find_next_siblings())
|
|
78
|
-
|
|
79
|
-
def test_find_all_text_nodes(self):
|
|
80
|
-
"""You can search the tree for text nodes."""
|
|
81
|
-
soup = self.soup("<html>Foo<b>bar</b>\xbb</html>")
|
|
82
|
-
# Exact match.
|
|
83
|
-
assert soup.find_all(string="bar") == ["bar"]
|
|
84
|
-
|
|
85
|
-
# Match any of a number of strings.
|
|
86
|
-
assert soup.find_all(string=["Foo", "bar"]) == ["Foo", "bar"]
|
|
87
|
-
# Match a regular expression.
|
|
88
|
-
assert soup.find_all(string=re.compile(".*")) == ["Foo", "bar", "\xbb"]
|
|
89
|
-
# Match anything.
|
|
90
|
-
assert soup.find_all(string=True) == ["Foo", "bar", "\xbb"]
|
|
91
|
-
|
|
92
|
-
def test_find_all_limit(self):
|
|
93
|
-
"""You can limit the number of items returned by find_all."""
|
|
94
|
-
soup = self.soup("<a>1</a><a>2</a><a>3</a><a>4</a><a>5</a>")
|
|
95
|
-
self.assert_selects(soup.find_all("a", limit=3), ["1", "2", "3"])
|
|
96
|
-
self.assert_selects(soup.find_all("a", limit=1), ["1"])
|
|
97
|
-
self.assert_selects(soup.find_all("a", limit=10), ["1", "2", "3", "4", "5"])
|
|
98
|
-
|
|
99
|
-
# A limit of 0 means no limit.
|
|
100
|
-
self.assert_selects(soup.find_all("a", limit=0), ["1", "2", "3", "4", "5"])
|
|
101
|
-
|
|
102
|
-
def test_calling_a_tag_is_calling_findall(self):
|
|
103
|
-
soup = self.soup("<a>1</a><b>2<a id='foo'>3</a></b>")
|
|
104
|
-
self.assert_selects(soup("a", limit=1), ["1"])
|
|
105
|
-
self.assert_selects(soup.b(id="foo"), ["3"])
|
|
106
|
-
|
|
107
|
-
def test_find_all_with_self_referential_data_structure_does_not_cause_infinite_recursion(
|
|
108
|
-
self,
|
|
109
|
-
):
|
|
110
|
-
soup = self.soup("<a></a>")
|
|
111
|
-
# Create a self-referential list.
|
|
112
|
-
selfref = []
|
|
113
|
-
selfref.append(selfref)
|
|
114
|
-
|
|
115
|
-
# Without special code in SoupStrainer, this would cause infinite
|
|
116
|
-
# recursion.
|
|
117
|
-
with warnings.catch_warnings(record=True) as w:
|
|
118
|
-
assert [] == soup.find_all(selfref)
|
|
119
|
-
[warning] = w
|
|
120
|
-
assert warning.filename == __file__
|
|
121
|
-
msg = str(warning.message)
|
|
122
|
-
assert (
|
|
123
|
-
msg
|
|
124
|
-
== "Ignoring nested list [[...]] to avoid the possibility of infinite recursion."
|
|
125
|
-
)
|
|
126
|
-
|
|
127
|
-
def test_find_all_resultset(self):
|
|
128
|
-
"""All find_all calls return a ResultSet"""
|
|
129
|
-
soup = self.soup("<a></a>")
|
|
130
|
-
result = soup.find_all("a")
|
|
131
|
-
assert hasattr(result, "source")
|
|
132
|
-
|
|
133
|
-
result = soup.find_all(True)
|
|
134
|
-
assert hasattr(result, "source")
|
|
135
|
-
|
|
136
|
-
result = soup.find_all(string="foo")
|
|
137
|
-
assert hasattr(result, "source")
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
class TestFindAllBasicNamespaces(SoupTest):
|
|
141
|
-
def test_find_by_namespaced_name(self):
|
|
142
|
-
soup = self.soup('<mathml:msqrt>4</mathml:msqrt><a svg:fill="red">')
|
|
143
|
-
assert "4" == soup.find("mathml:msqrt").string
|
|
144
|
-
assert "a" == soup.find(attrs={"svg:fill": "red"}).name
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
class TestFindAllByName(SoupTest):
|
|
148
|
-
"""Test ways of finding tags by tag name."""
|
|
149
|
-
|
|
150
|
-
def setup_method(self) -> None:
|
|
151
|
-
self.tree = self.soup("""<a>First tag.</a>
|
|
152
|
-
<b>Second tag.</b>
|
|
153
|
-
<c>Third <a>Nested tag.</a> tag.</c>""")
|
|
154
|
-
|
|
155
|
-
def test_find_all_by_tag_name(self):
|
|
156
|
-
# Find all the <a> tags.
|
|
157
|
-
self.assert_selects(self.tree.find_all("a"), ["First tag.", "Nested tag."])
|
|
158
|
-
|
|
159
|
-
def test_find_all_by_name_and_text(self):
|
|
160
|
-
self.assert_selects(
|
|
161
|
-
self.tree.find_all("a", string="First tag."), ["First tag."]
|
|
162
|
-
)
|
|
163
|
-
|
|
164
|
-
self.assert_selects(
|
|
165
|
-
self.tree.find_all("a", string=True), ["First tag.", "Nested tag."]
|
|
166
|
-
)
|
|
167
|
-
|
|
168
|
-
self.assert_selects(
|
|
169
|
-
self.tree.find_all("a", string=re.compile("tag")),
|
|
170
|
-
["First tag.", "Nested tag."],
|
|
171
|
-
)
|
|
172
|
-
|
|
173
|
-
def test_find_all_on_non_root_element(self):
|
|
174
|
-
# You can call find_all on any node, not just the root.
|
|
175
|
-
self.assert_selects(self.tree.c.find_all("a"), ["Nested tag."])
|
|
176
|
-
|
|
177
|
-
def test_calling_element_invokes_find_all(self):
|
|
178
|
-
self.assert_selects(self.tree("a"), ["First tag.", "Nested tag."])
|
|
179
|
-
|
|
180
|
-
def test_find_all_by_tag_strainer(self):
|
|
181
|
-
self.assert_selects(
|
|
182
|
-
self.tree.find_all(SoupStrainer("a")), ["First tag.", "Nested tag."]
|
|
183
|
-
)
|
|
184
|
-
|
|
185
|
-
def test_find_all_by_tag_names(self):
|
|
186
|
-
self.assert_selects(
|
|
187
|
-
self.tree.find_all(["a", "b"]), ["First tag.", "Second tag.", "Nested tag."]
|
|
188
|
-
)
|
|
189
|
-
|
|
190
|
-
def test_find_all_by_tag_dict(self):
|
|
191
|
-
self.assert_selects(
|
|
192
|
-
self.tree.find_all({"a": True, "b": True}),
|
|
193
|
-
["First tag.", "Second tag.", "Nested tag."],
|
|
194
|
-
)
|
|
195
|
-
|
|
196
|
-
def test_find_all_by_tag_re(self):
|
|
197
|
-
self.assert_selects(
|
|
198
|
-
self.tree.find_all(re.compile("^[ab]$")),
|
|
199
|
-
["First tag.", "Second tag.", "Nested tag."],
|
|
200
|
-
)
|
|
201
|
-
|
|
202
|
-
def test_find_all_with_tags_matching_method(self):
|
|
203
|
-
# You can define an oracle method that determines whether
|
|
204
|
-
# a tag matches the search.
|
|
205
|
-
def id_matches_name(tag):
|
|
206
|
-
return tag.name == tag.get("id")
|
|
207
|
-
|
|
208
|
-
tree = self.soup("""<a id="a">Match 1.</a>
|
|
209
|
-
<a id="1">Does not match.</a>
|
|
210
|
-
<b id="b">Match 2.</a>""")
|
|
211
|
-
|
|
212
|
-
self.assert_selects(tree.find_all(id_matches_name), ["Match 1.", "Match 2."])
|
|
213
|
-
|
|
214
|
-
def test_find_with_multi_valued_attribute(self):
|
|
215
|
-
soup = self.soup(
|
|
216
|
-
"<div class='a b'>1</div><div class='a c'>2</div><div class='a d'>3</div>"
|
|
217
|
-
)
|
|
218
|
-
r1 = soup.find("div", "a d")
|
|
219
|
-
r2 = soup.find("div", re.compile(r"a d"))
|
|
220
|
-
r3, r4 = soup.find_all("div", ["a b", "a d"])
|
|
221
|
-
assert "3" == r1.string
|
|
222
|
-
assert "3" == r2.string
|
|
223
|
-
assert "1" == r3.string
|
|
224
|
-
assert "3" == r4.string
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
class TestFindAllByAttribute(SoupTest):
|
|
228
|
-
def test_find_all_by_attribute_name(self):
|
|
229
|
-
# You can pass in keyword arguments to find_all to search by
|
|
230
|
-
# attribute.
|
|
231
|
-
tree = self.soup("""
|
|
232
|
-
<a id="first">Matching a.</a>
|
|
233
|
-
<a id="second">
|
|
234
|
-
Non-matching <b id="first">Matching b.</b>a.
|
|
235
|
-
</a>""")
|
|
236
|
-
self.assert_selects(tree.find_all(id="first"), ["Matching a.", "Matching b."])
|
|
237
|
-
|
|
238
|
-
def test_find_all_by_utf8_attribute_value(self):
|
|
239
|
-
peace = "םולש".encode("utf8")
|
|
240
|
-
data = '<a title="םולש"></a>'.encode("utf8")
|
|
241
|
-
soup = self.soup(data)
|
|
242
|
-
assert [soup.a] == soup.find_all(title=peace)
|
|
243
|
-
assert [soup.a] == soup.find_all(title=peace.decode("utf8"))
|
|
244
|
-
assert [soup.a], soup.find_all(title=[peace, "something else"])
|
|
245
|
-
|
|
246
|
-
def test_find_all_by_attribute_dict(self):
|
|
247
|
-
# You can pass in a dictionary as the argument 'attrs'. This
|
|
248
|
-
# lets you search for attributes like 'name' (a fixed argument
|
|
249
|
-
# to find_all) and 'class' (a reserved word in Python.)
|
|
250
|
-
tree = self.soup("""
|
|
251
|
-
<a name="name1" class="class1">Name match.</a>
|
|
252
|
-
<a name="name2" class="class2">Class match.</a>
|
|
253
|
-
<a name="name3" class="class3">Non-match.</a>
|
|
254
|
-
<name1>A tag called 'name1'.</name1>
|
|
255
|
-
""")
|
|
256
|
-
|
|
257
|
-
# This doesn't do what you want.
|
|
258
|
-
self.assert_selects(tree.find_all(name="name1"), ["A tag called 'name1'."])
|
|
259
|
-
# This does what you want.
|
|
260
|
-
self.assert_selects(tree.find_all(attrs={"name": "name1"}), ["Name match."])
|
|
261
|
-
|
|
262
|
-
self.assert_selects(tree.find_all(attrs={"class": "class2"}), ["Class match."])
|
|
263
|
-
|
|
264
|
-
def test_find_all_by_class(self):
|
|
265
|
-
tree = self.soup("""
|
|
266
|
-
<a class="1">Class 1.</a>
|
|
267
|
-
<a class="2">Class 2.</a>
|
|
268
|
-
<b class="1">Class 1.</b>
|
|
269
|
-
<c class="3 4">Class 3 and 4.</c>
|
|
270
|
-
""")
|
|
271
|
-
|
|
272
|
-
# Passing in the class_ keyword argument will search against
|
|
273
|
-
# the 'class' attribute.
|
|
274
|
-
self.assert_selects(tree.find_all("a", class_="1"), ["Class 1."])
|
|
275
|
-
self.assert_selects(tree.find_all("c", class_="3"), ["Class 3 and 4."])
|
|
276
|
-
self.assert_selects(tree.find_all("c", class_="4"), ["Class 3 and 4."])
|
|
277
|
-
|
|
278
|
-
# Passing in a string to 'attrs' will also search the CSS class.
|
|
279
|
-
self.assert_selects(tree.find_all("a", "1"), ["Class 1."])
|
|
280
|
-
self.assert_selects(tree.find_all(attrs="1"), ["Class 1.", "Class 1."])
|
|
281
|
-
self.assert_selects(tree.find_all("c", "3"), ["Class 3 and 4."])
|
|
282
|
-
self.assert_selects(tree.find_all("c", "4"), ["Class 3 and 4."])
|
|
283
|
-
|
|
284
|
-
def test_find_by_class_when_multiple_classes_present(self):
|
|
285
|
-
tree = self.soup("<gar class='foo bar'>Found it</gar>")
|
|
286
|
-
|
|
287
|
-
f = tree.find_all("gar", class_=re.compile("o"))
|
|
288
|
-
self.assert_selects(f, ["Found it"])
|
|
289
|
-
|
|
290
|
-
f = tree.find_all("gar", class_=re.compile("a"))
|
|
291
|
-
self.assert_selects(f, ["Found it"])
|
|
292
|
-
|
|
293
|
-
# If the search fails to match the individual strings "foo" and "bar",
|
|
294
|
-
# it will be tried against the combined string "foo bar".
|
|
295
|
-
f = tree.find_all("gar", class_=re.compile("o b"))
|
|
296
|
-
self.assert_selects(f, ["Found it"])
|
|
297
|
-
|
|
298
|
-
def test_find_all_with_non_dictionary_for_attrs_finds_by_class(self):
|
|
299
|
-
soup = self.soup("<a class='bar'>Found it</a>")
|
|
300
|
-
|
|
301
|
-
self.assert_selects(soup.find_all("a", re.compile("ba")), ["Found it"])
|
|
302
|
-
|
|
303
|
-
def big_attribute_value(value):
|
|
304
|
-
return len(value) > 3
|
|
305
|
-
|
|
306
|
-
self.assert_selects(soup.find_all("a", big_attribute_value), [])
|
|
307
|
-
|
|
308
|
-
def small_attribute_value(value):
|
|
309
|
-
return len(value) <= 3
|
|
310
|
-
|
|
311
|
-
self.assert_selects(soup.find_all("a", small_attribute_value), ["Found it"])
|
|
312
|
-
|
|
313
|
-
def test_find_all_with_string_for_attrs_finds_multiple_classes(self):
|
|
314
|
-
soup = self.soup('<a class="foo bar"></a><a class="foo"></a>')
|
|
315
|
-
a, a2 = soup.find_all("a")
|
|
316
|
-
assert [a, a2], soup.find_all("a", "foo")
|
|
317
|
-
assert [a], soup.find_all("a", "bar")
|
|
318
|
-
|
|
319
|
-
# If you specify the class as a string that contains a
|
|
320
|
-
# space, only that specific value will be found.
|
|
321
|
-
assert [a] == soup.find_all("a", class_="foo bar")
|
|
322
|
-
assert [a] == soup.find_all("a", "foo bar")
|
|
323
|
-
assert [] == soup.find_all("a", "bar foo")
|
|
324
|
-
|
|
325
|
-
def test_find_all_by_attribute_soupstrainer(self):
|
|
326
|
-
tree = self.soup("""
|
|
327
|
-
<a id="first">Match.</a>
|
|
328
|
-
<a id="second">Non-match.</a>""")
|
|
329
|
-
|
|
330
|
-
strainer = SoupStrainer(attrs={"id": "first"})
|
|
331
|
-
self.assert_selects(tree.find_all(strainer), ["Match."])
|
|
332
|
-
|
|
333
|
-
def test_find_all_with_missing_attribute(self):
|
|
334
|
-
# You can pass in None as the value of an attribute to find_all.
|
|
335
|
-
# This will match tags that do not have that attribute set.
|
|
336
|
-
tree = self.soup("""<a id="1">ID present.</a>
|
|
337
|
-
<a>No ID present.</a>
|
|
338
|
-
<a id="">ID is empty.</a>""")
|
|
339
|
-
self.assert_selects(tree.find_all("a", id=None), ["No ID present."])
|
|
340
|
-
|
|
341
|
-
def test_find_all_with_defined_attribute(self):
|
|
342
|
-
# You can pass in None as the value of an attribute to find_all.
|
|
343
|
-
# This will match tags that have that attribute set to any value.
|
|
344
|
-
tree = self.soup("""<a id="1">ID present.</a>
|
|
345
|
-
<a>No ID present.</a>
|
|
346
|
-
<a id="">ID is empty.</a>""")
|
|
347
|
-
self.assert_selects(tree.find_all(id=True), ["ID present.", "ID is empty."])
|
|
348
|
-
|
|
349
|
-
def test_find_all_with_numeric_attribute(self):
|
|
350
|
-
# If you search for a number, it's treated as a string.
|
|
351
|
-
tree = self.soup("""<a id=1>Unquoted attribute.</a>
|
|
352
|
-
<a id="1">Quoted attribute.</a>""")
|
|
353
|
-
|
|
354
|
-
expected = ["Unquoted attribute.", "Quoted attribute."]
|
|
355
|
-
self.assert_selects(tree.find_all(id=1), expected)
|
|
356
|
-
self.assert_selects(tree.find_all(id="1"), expected)
|
|
357
|
-
|
|
358
|
-
def test_find_all_with_list_attribute_values(self):
|
|
359
|
-
# You can pass a list of attribute values instead of just one,
|
|
360
|
-
# and you'll get tags that match any of the values.
|
|
361
|
-
tree = self.soup("""<a id="1">1</a>
|
|
362
|
-
<a id="2">2</a>
|
|
363
|
-
<a id="3">3</a>
|
|
364
|
-
<a>No ID.</a>""")
|
|
365
|
-
self.assert_selects(tree.find_all(id=["1", "3", "4"]), ["1", "3"])
|
|
366
|
-
|
|
367
|
-
# If you pass in an empty list, you get nothing.
|
|
368
|
-
self.assert_selects(tree.find_all(id=[]), [])
|
|
369
|
-
|
|
370
|
-
def test_find_all_with_regular_expression_attribute_value(self):
|
|
371
|
-
# You can pass a regular expression as an attribute value, and
|
|
372
|
-
# you'll get tags whose values for that attribute match the
|
|
373
|
-
# regular expression.
|
|
374
|
-
tree = self.soup("""<a id="a">One a.</a>
|
|
375
|
-
<a id="aa">Two as.</a>
|
|
376
|
-
<a id="ab">Mixed as and bs.</a>
|
|
377
|
-
<a id="b">One b.</a>
|
|
378
|
-
<a>No ID.</a>""")
|
|
379
|
-
|
|
380
|
-
self.assert_selects(tree.find_all(id=re.compile("^a+$")), ["One a.", "Two as."])
|
|
381
|
-
|
|
382
|
-
def test_find_by_name_and_containing_string(self):
|
|
383
|
-
soup = self.soup("<b>foo</b><b>bar</b><a>foo</a>")
|
|
384
|
-
a = soup.a
|
|
385
|
-
|
|
386
|
-
assert [a] == soup.find_all("a", string="foo")
|
|
387
|
-
assert [] == soup.find_all("a", string="bar")
|
|
388
|
-
|
|
389
|
-
def test_find_by_name_and_containing_string_when_string_is_buried(self):
|
|
390
|
-
soup = self.soup("<a>foo</a><a><b><c>foo</c></b></a>")
|
|
391
|
-
assert soup.find_all("a") == soup.find_all("a", string="foo")
|
|
392
|
-
|
|
393
|
-
def test_find_by_attribute_and_containing_string(self):
|
|
394
|
-
soup = self.soup('<b id="1">foo</b><a id="2">foo</a>')
|
|
395
|
-
a = soup.a
|
|
396
|
-
|
|
397
|
-
assert [a] == soup.find_all(id=2, string="foo")
|
|
398
|
-
assert [] == soup.find_all(id=1, string="bar")
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
class TestSmooth(SoupTest):
|
|
402
|
-
"""Test Tag.smooth."""
|
|
403
|
-
|
|
404
|
-
def test_smooth(self):
|
|
405
|
-
soup = self.soup("<div>a</div>")
|
|
406
|
-
div = soup.div
|
|
407
|
-
div.append("b")
|
|
408
|
-
div.append("c")
|
|
409
|
-
div.append(Comment("Comment 1"))
|
|
410
|
-
div.append(Comment("Comment 2"))
|
|
411
|
-
div.append("d")
|
|
412
|
-
builder = self.default_builder()
|
|
413
|
-
span = Tag(soup, builder, "span")
|
|
414
|
-
span.append("1")
|
|
415
|
-
span.append("2")
|
|
416
|
-
div.append(span)
|
|
417
|
-
|
|
418
|
-
# At this point the tree has a bunch of adjacent
|
|
419
|
-
# NavigableStrings. This is normal, but it has no meaning in
|
|
420
|
-
# terms of HTML, so we may want to smooth things out for
|
|
421
|
-
# output.
|
|
422
|
-
|
|
423
|
-
# Since the <span> tag has two children, its .string is None.
|
|
424
|
-
assert None is div.span.string
|
|
425
|
-
|
|
426
|
-
assert 7 == len(div.contents)
|
|
427
|
-
div.smooth()
|
|
428
|
-
assert 5 == len(div.contents)
|
|
429
|
-
|
|
430
|
-
# The three strings at the beginning of div.contents have been
|
|
431
|
-
# merged into on string.
|
|
432
|
-
#
|
|
433
|
-
assert "abc" == div.contents[0]
|
|
434
|
-
|
|
435
|
-
# The call is recursive -- the <span> tag was also smoothed.
|
|
436
|
-
assert "12" == div.span.string
|
|
437
|
-
|
|
438
|
-
# The two comments have _not_ been merged, even though
|
|
439
|
-
# comments are strings. Merging comments would change the
|
|
440
|
-
# meaning of the HTML.
|
|
441
|
-
assert "Comment 1" == div.contents[1]
|
|
442
|
-
assert "Comment 2" == div.contents[2]
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
class TestIndex(SoupTest):
|
|
446
|
-
"""Test Tag.index"""
|
|
447
|
-
|
|
448
|
-
def test_index(self):
|
|
449
|
-
tree = self.soup("""<div>
|
|
450
|
-
<a>Identical</a>
|
|
451
|
-
<b>Not identical</b>
|
|
452
|
-
<a>Identical</a>
|
|
453
|
-
|
|
454
|
-
<c><d>Identical with child</d></c>
|
|
455
|
-
<b>Also not identical</b>
|
|
456
|
-
<c><d>Identical with child</d></c>
|
|
457
|
-
</div>""")
|
|
458
|
-
div = tree.div
|
|
459
|
-
for i, element in enumerate(div.contents):
|
|
460
|
-
assert i == div.index(element)
|
|
461
|
-
with pytest.raises(ValueError):
|
|
462
|
-
tree.index(1)
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
class TestParentOperations(SoupTest):
|
|
466
|
-
"""Test navigation and searching through an element's parents."""
|
|
467
|
-
|
|
468
|
-
def setup_method(self) -> None:
|
|
469
|
-
self.tree = self.soup("""<ul id="empty"></ul>
|
|
470
|
-
<ul id="top">
|
|
471
|
-
<ul id="middle">
|
|
472
|
-
<ul id="bottom">
|
|
473
|
-
<b id="start">Start here</b>
|
|
474
|
-
</ul>
|
|
475
|
-
</ul>""")
|
|
476
|
-
self.start = self.tree.b
|
|
477
|
-
|
|
478
|
-
def test_parent(self):
|
|
479
|
-
assert self.start.parent["id"] == "bottom"
|
|
480
|
-
assert self.start.parent.parent["id"] == "middle"
|
|
481
|
-
assert self.start.parent.parent.parent["id"] == "top"
|
|
482
|
-
|
|
483
|
-
def test_parent_of_top_tag_is_soup_object(self):
|
|
484
|
-
top_tag = self.tree.contents[0]
|
|
485
|
-
assert top_tag.parent == self.tree
|
|
486
|
-
|
|
487
|
-
def test_soup_object_has_no_parent(self):
|
|
488
|
-
assert None is self.tree.parent
|
|
489
|
-
|
|
490
|
-
def test_find_parents(self):
|
|
491
|
-
self.assert_selects_ids(
|
|
492
|
-
self.start.find_parents("ul"), ["bottom", "middle", "top"]
|
|
493
|
-
)
|
|
494
|
-
self.assert_selects_ids(self.start.find_parents("ul", id="middle"), ["middle"])
|
|
495
|
-
assert self.start.find_parents(id="start") == []
|
|
496
|
-
|
|
497
|
-
def test_find_parent(self):
|
|
498
|
-
# assert self.start.find_parent('ul')['id'] == 'bottom'
|
|
499
|
-
assert self.start.find_parent("ul", id="top")["id"] == "top"
|
|
500
|
-
|
|
501
|
-
assert self.start.find_parent(id="start") is None
|
|
502
|
-
|
|
503
|
-
def test_parent_of_text_element(self):
|
|
504
|
-
text = self.tree.find(string="Start here")
|
|
505
|
-
assert text.parent.name == "b"
|
|
506
|
-
|
|
507
|
-
def test_text_element_find_parent(self):
|
|
508
|
-
text = self.tree.find(string="Start here")
|
|
509
|
-
assert text.find_parent("ul")["id"] == "bottom"
|
|
510
|
-
|
|
511
|
-
def test_parent_generator(self):
|
|
512
|
-
parents = [
|
|
513
|
-
parent["id"]
|
|
514
|
-
for parent in self.start.parents
|
|
515
|
-
if parent is not None and "id" in parent.attrs
|
|
516
|
-
]
|
|
517
|
-
assert parents == ["bottom", "middle", "top"]
|
|
518
|
-
|
|
519
|
-
def test_self_and_parent_generator(self):
|
|
520
|
-
results = [
|
|
521
|
-
parent["id"]
|
|
522
|
-
for parent in self.start.self_and_parents
|
|
523
|
-
if parent is not None and "id" in parent.attrs
|
|
524
|
-
]
|
|
525
|
-
assert results == ["start", "bottom", "middle", "top"]
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
class ProximityTest(SoupTest):
|
|
529
|
-
def setup_method(self) -> None:
|
|
530
|
-
self.tree = self.soup(
|
|
531
|
-
'<html id="start"><head id="headtag"></head><body id="bodytag"><b id="1">One</b><b id="2">Two</b><b id="3">Three</b></body></html>'
|
|
532
|
-
)
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
class TestNextOperations(ProximityTest):
|
|
536
|
-
def setup_method(self) -> None:
|
|
537
|
-
super(TestNextOperations, self).setup_method()
|
|
538
|
-
self.start = self.tree.b
|
|
539
|
-
|
|
540
|
-
def test_next(self):
|
|
541
|
-
assert self.start.next_element == "One"
|
|
542
|
-
assert self.start.next_element.next_element["id"] == "2"
|
|
543
|
-
|
|
544
|
-
def test_next_of_last_item_is_none(self):
|
|
545
|
-
last = self.tree.find(string="Three")
|
|
546
|
-
assert last.next_element is None
|
|
547
|
-
|
|
548
|
-
def test_next_of_root_is_none(self):
|
|
549
|
-
# The document root is outside the next/previous chain.
|
|
550
|
-
assert self.tree.next_element is None
|
|
551
|
-
|
|
552
|
-
def test_find_all_next(self):
|
|
553
|
-
self.assert_selects(self.start.find_all_next("b"), ["Two", "Three"])
|
|
554
|
-
self.start.find_all_next(id=3)
|
|
555
|
-
self.assert_selects(self.start.find_all_next(id=3), ["Three"])
|
|
556
|
-
|
|
557
|
-
def test_find_next(self):
|
|
558
|
-
assert self.start.find_next("b")["id"] == "2"
|
|
559
|
-
assert self.start.find_next(string="Three") == "Three"
|
|
560
|
-
|
|
561
|
-
def test_find_next_for_text_element(self):
|
|
562
|
-
text = self.tree.find(string="One")
|
|
563
|
-
assert text.find_next("b").string == "Two"
|
|
564
|
-
self.assert_selects(text.find_all_next("b"), ["Two", "Three"])
|
|
565
|
-
|
|
566
|
-
def test_next_generators(self):
|
|
567
|
-
start = self.tree.find(string="Two")
|
|
568
|
-
successors = [node for node in start.next_elements]
|
|
569
|
-
# There are two successors: the final <b> tag and its text contents.
|
|
570
|
-
tag, contents = successors
|
|
571
|
-
assert tag["id"] == "3"
|
|
572
|
-
assert contents == "Three"
|
|
573
|
-
|
|
574
|
-
successors2 = [node for node in start.self_and_next_elements]
|
|
575
|
-
assert successors2[1:] == successors
|
|
576
|
-
assert successors2[0] == start
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
class TestPreviousOperations(ProximityTest):
|
|
580
|
-
def setup_method(self) -> None:
|
|
581
|
-
super(TestPreviousOperations, self).setup_method()
|
|
582
|
-
self.end = self.tree.find(string="Three")
|
|
583
|
-
|
|
584
|
-
def test_previous(self):
|
|
585
|
-
assert self.end.previous_element["id"] == "3"
|
|
586
|
-
assert self.end.previous_element.previous_element == "Two"
|
|
587
|
-
|
|
588
|
-
def test_previous_of_first_item_is_none(self):
|
|
589
|
-
first = self.tree.find("html")
|
|
590
|
-
assert first.previous_element is None
|
|
591
|
-
|
|
592
|
-
def test_previous_of_root_is_none(self):
|
|
593
|
-
# The document root is outside the next/previous chain.
|
|
594
|
-
assert self.tree.previous_element is None
|
|
595
|
-
|
|
596
|
-
def test_find_all_previous(self):
|
|
597
|
-
# The <b> tag containing the "Three" node is the predecessor
|
|
598
|
-
# of the "Three" node itself, which is why "Three" shows up
|
|
599
|
-
# here.
|
|
600
|
-
self.assert_selects(self.end.find_all_previous("b"), ["Three", "Two", "One"])
|
|
601
|
-
self.assert_selects(self.end.find_all_previous(id=1), ["One"])
|
|
602
|
-
|
|
603
|
-
def test_find_previous(self):
|
|
604
|
-
assert self.end.find_previous("b")["id"] == "3"
|
|
605
|
-
assert self.end.find_previous(string="One") == "One"
|
|
606
|
-
|
|
607
|
-
def test_find_previous_for_text_element(self):
|
|
608
|
-
text = self.tree.find(string="Three")
|
|
609
|
-
assert text.find_previous("b").string == "Three"
|
|
610
|
-
self.assert_selects(text.find_all_previous("b"), ["Three", "Two", "One"])
|
|
611
|
-
|
|
612
|
-
def test_previous_generators(self):
|
|
613
|
-
start = self.tree.find("b", string="One")
|
|
614
|
-
self.assert_selects_ids(start.previous_elements, ["bodytag", "headtag", 'start'])
|
|
615
|
-
self.assert_selects_ids(start.self_and_previous_elements, ["1", "bodytag", "headtag", "start"])
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
class SiblingTest(SoupTest):
|
|
619
|
-
def setup_method(self) -> None:
|
|
620
|
-
markup = """<html>
|
|
621
|
-
<span id="1">
|
|
622
|
-
<span id="1.1"></span>
|
|
623
|
-
</span>
|
|
624
|
-
<span id="2">
|
|
625
|
-
<span id="2.1"></span>
|
|
626
|
-
</span>
|
|
627
|
-
<span id="3">
|
|
628
|
-
<span id="3.1"></span>
|
|
629
|
-
</span>
|
|
630
|
-
<span id="4"></span>
|
|
631
|
-
</html>"""
|
|
632
|
-
# All that whitespace looks good but makes the tests more
|
|
633
|
-
# difficult. Get rid of it.
|
|
634
|
-
markup = re.compile(r"\n\s*").sub("", markup)
|
|
635
|
-
self.tree = self.soup(markup)
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
class TestNextSibling(SiblingTest):
|
|
639
|
-
def setup_method(self) -> None:
|
|
640
|
-
super(TestNextSibling, self).setup_method()
|
|
641
|
-
self.start = self.tree.find(id="1")
|
|
642
|
-
|
|
643
|
-
def test_next_sibling_of_root_is_none(self):
|
|
644
|
-
assert self.tree.next_sibling is None
|
|
645
|
-
|
|
646
|
-
def test_next_sibling(self):
|
|
647
|
-
assert self.start.next_sibling["id"] == "2"
|
|
648
|
-
assert self.start.next_sibling.next_sibling["id"] == "3"
|
|
649
|
-
|
|
650
|
-
# Note the difference between next_sibling and next_element.
|
|
651
|
-
assert self.start.next_element["id"] == "1.1"
|
|
652
|
-
|
|
653
|
-
def test_next_sibling_may_not_exist(self):
|
|
654
|
-
assert self.tree.html.next_sibling is None
|
|
655
|
-
|
|
656
|
-
nested_span = self.tree.find(id="1.1")
|
|
657
|
-
assert nested_span.next_sibling is None
|
|
658
|
-
|
|
659
|
-
last_span = self.tree.find(id="4")
|
|
660
|
-
assert last_span.next_sibling is None
|
|
661
|
-
|
|
662
|
-
def test_find_next_sibling(self):
|
|
663
|
-
assert self.start.find_next_sibling("span")["id"] == "2"
|
|
664
|
-
|
|
665
|
-
def test_next_siblings(self):
|
|
666
|
-
self.assert_selects_ids(self.start.find_next_siblings("span"), ["2", "3", "4"])
|
|
667
|
-
|
|
668
|
-
self.assert_selects_ids(self.start.find_next_siblings(id="3"), ["3"])
|
|
669
|
-
|
|
670
|
-
def test_next_siblings_generators(self):
|
|
671
|
-
self.assert_selects_ids(self.start.next_siblings, ["2", "3", "4"])
|
|
672
|
-
self.assert_selects_ids(self.start.self_and_next_siblings, ["1", "2", "3", "4"])
|
|
673
|
-
|
|
674
|
-
def test_next_sibling_for_text_element(self):
|
|
675
|
-
soup = self.soup("Foo<b>bar</b>baz")
|
|
676
|
-
start = soup.find(string="Foo")
|
|
677
|
-
assert start.next_sibling.name == "b"
|
|
678
|
-
assert start.next_sibling.next_sibling == "baz"
|
|
679
|
-
|
|
680
|
-
self.assert_selects(start.find_next_siblings("b"), ["bar"])
|
|
681
|
-
assert start.find_next_sibling(string="baz") == "baz"
|
|
682
|
-
assert start.find_next_sibling(string="nonesuch") is None
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
class TestPreviousSibling(SiblingTest):
|
|
686
|
-
def setup_method(self) -> None:
|
|
687
|
-
super(TestPreviousSibling, self).setup_method()
|
|
688
|
-
self.end = self.tree.find(id="4")
|
|
689
|
-
|
|
690
|
-
def test_previous_sibling_of_root_is_none(self):
|
|
691
|
-
assert self.tree.previous_sibling is None
|
|
692
|
-
|
|
693
|
-
def test_previous_sibling(self):
|
|
694
|
-
assert self.end.previous_sibling["id"] == "3"
|
|
695
|
-
assert self.end.previous_sibling.previous_sibling["id"] == "2"
|
|
696
|
-
|
|
697
|
-
# Note the difference between previous_sibling and previous_element.
|
|
698
|
-
assert self.end.previous_element["id"] == "3.1"
|
|
699
|
-
|
|
700
|
-
def test_previous_sibling_may_not_exist(self):
|
|
701
|
-
assert self.tree.html.previous_sibling is None
|
|
702
|
-
|
|
703
|
-
nested_span = self.tree.find(id="1.1")
|
|
704
|
-
assert nested_span.previous_sibling is None
|
|
705
|
-
|
|
706
|
-
first_span = self.tree.find(id="1")
|
|
707
|
-
assert first_span.previous_sibling is None
|
|
708
|
-
|
|
709
|
-
def test_find_previous_sibling(self):
|
|
710
|
-
assert self.end.find_previous_sibling("span")["id"] == "3"
|
|
711
|
-
|
|
712
|
-
def test_previous_siblings(self):
|
|
713
|
-
self.assert_selects_ids(
|
|
714
|
-
self.end.find_previous_siblings("span"), ["3", "2", "1"]
|
|
715
|
-
)
|
|
716
|
-
|
|
717
|
-
self.assert_selects_ids(self.end.find_previous_siblings(id="1"), ["1"])
|
|
718
|
-
|
|
719
|
-
def test_previous_siblings_generators(self):
|
|
720
|
-
self.assert_selects_ids(self.end.previous_siblings, ["3", "2", "1"])
|
|
721
|
-
self.assert_selects_ids(self.end.self_and_previous_siblings, ["4", "3", "2", "1"])
|
|
722
|
-
|
|
723
|
-
def test_previous_sibling_for_text_element(self):
|
|
724
|
-
soup = self.soup("Foo<b>bar</b>baz")
|
|
725
|
-
start = soup.find(string="baz")
|
|
726
|
-
assert start.previous_sibling.name == "b"
|
|
727
|
-
assert start.previous_sibling.previous_sibling == "Foo"
|
|
728
|
-
|
|
729
|
-
self.assert_selects(start.find_previous_siblings("b"), ["bar"])
|
|
730
|
-
assert start.find_previous_sibling(string="Foo") == "Foo"
|
|
731
|
-
assert start.find_previous_sibling(string="nonesuch") is None
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
class TestTreeModification(SoupTest):
|
|
735
|
-
def test_attribute_modification(self):
|
|
736
|
-
soup = self.soup('<a id="1"></a>')
|
|
737
|
-
soup.a["id"] = 2
|
|
738
|
-
assert soup.decode() == self.document_for('<a id="2"></a>')
|
|
739
|
-
del soup.a["id"]
|
|
740
|
-
assert soup.decode() == self.document_for("<a></a>")
|
|
741
|
-
soup.a["id2"] = "foo"
|
|
742
|
-
assert soup.decode() == self.document_for('<a id2="foo"></a>')
|
|
743
|
-
|
|
744
|
-
def test_new_tag_creation(self):
|
|
745
|
-
builder = builder_registry.lookup("html")()
|
|
746
|
-
soup = self.soup("<body></body>", builder=builder)
|
|
747
|
-
a = Tag(soup, builder, "a")
|
|
748
|
-
ol = Tag(soup, builder, "ol")
|
|
749
|
-
a["href"] = "http://foo.com/"
|
|
750
|
-
soup.body.insert(0, a)
|
|
751
|
-
soup.body.insert(1, ol)
|
|
752
|
-
assert (
|
|
753
|
-
soup.body.encode()
|
|
754
|
-
== b'<body><a href="http://foo.com/"></a><ol></ol></body>'
|
|
755
|
-
)
|
|
756
|
-
|
|
757
|
-
def test_append_to_contents_moves_tag(self):
|
|
758
|
-
doc = """<p id="1">Don't leave me <b>here</b>.</p>
|
|
759
|
-
<p id="2">Don\'t leave!</p>"""
|
|
760
|
-
soup = self.soup(doc)
|
|
761
|
-
second_para = soup.find(id="2")
|
|
762
|
-
bold = soup.b
|
|
763
|
-
|
|
764
|
-
# Move the <b> tag to the end of the second paragraph.
|
|
765
|
-
soup.find(id="2").append(soup.b)
|
|
766
|
-
|
|
767
|
-
# The <b> tag is now a child of the second paragraph.
|
|
768
|
-
assert bold.parent == second_para
|
|
769
|
-
|
|
770
|
-
assert soup.decode() == self.document_for(
|
|
771
|
-
'<p id="1">Don\'t leave me .</p>\n' '<p id="2">Don\'t leave!<b>here</b></p>'
|
|
772
|
-
)
|
|
773
|
-
|
|
774
|
-
def test_insertion_returns_inserted_things(self):
|
|
775
|
-
soup = self.soup("<html></html>")
|
|
776
|
-
html = soup.find('html')
|
|
777
|
-
head = html.append(soup.new_tag('head'))
|
|
778
|
-
assert head.name == 'head'
|
|
779
|
-
|
|
780
|
-
[title] = head.insert(0, soup.new_tag('title'))
|
|
781
|
-
assert title.name == 'title'
|
|
782
|
-
|
|
783
|
-
text5 = title.append('5')
|
|
784
|
-
assert text5 == '5'
|
|
785
|
-
text34 = text5.insert_before('3', '4')
|
|
786
|
-
assert text34 == ['3', '4']
|
|
787
|
-
text67 = text5.insert_after('6', '7')
|
|
788
|
-
assert text67 == ['6', '7']
|
|
789
|
-
text89 = title.extend(['8', '9'])
|
|
790
|
-
assert text89 == ['8', '9']
|
|
791
|
-
assert title.get_text() == '3456789'
|
|
792
|
-
|
|
793
|
-
def test_replace_with_returns_thing_that_was_replaced(self):
|
|
794
|
-
text = "<a></a><b><c></c></b>"
|
|
795
|
-
soup = self.soup(text)
|
|
796
|
-
a = soup.a
|
|
797
|
-
new_a = a.replace_with(soup.c)
|
|
798
|
-
assert a == new_a
|
|
799
|
-
|
|
800
|
-
def test_unwrap_returns_thing_that_was_replaced(self):
|
|
801
|
-
text = "<a><b></b><c></c></a>"
|
|
802
|
-
soup = self.soup(text)
|
|
803
|
-
a = soup.a
|
|
804
|
-
new_a = a.unwrap()
|
|
805
|
-
assert a == new_a
|
|
806
|
-
|
|
807
|
-
def test_replace_with_and_unwrap_give_useful_exception_when_tag_has_no_parent(self):
|
|
808
|
-
soup = self.soup("<a><b>Foo</b></a><c>Bar</c>")
|
|
809
|
-
a = soup.a
|
|
810
|
-
a.extract()
|
|
811
|
-
assert None is a.parent
|
|
812
|
-
with pytest.raises(ValueError):
|
|
813
|
-
a.unwrap()
|
|
814
|
-
with pytest.raises(ValueError):
|
|
815
|
-
a.replace_with(soup.c)
|
|
816
|
-
|
|
817
|
-
def test_replace_tag_with_itself(self):
|
|
818
|
-
text = "<a><b></b><c>Foo<d></d></c></a><a><e></e></a>"
|
|
819
|
-
soup = self.soup(text)
|
|
820
|
-
c = soup.c
|
|
821
|
-
result = soup.c.replace_with(c)
|
|
822
|
-
assert result == c
|
|
823
|
-
assert soup.decode() == self.document_for(text)
|
|
824
|
-
|
|
825
|
-
def test_replace_tag_with_its_parent_raises_exception(self):
|
|
826
|
-
text = "<a><b></b></a>"
|
|
827
|
-
soup = self.soup(text)
|
|
828
|
-
with pytest.raises(ValueError):
|
|
829
|
-
soup.b.replace_with(soup.a)
|
|
830
|
-
|
|
831
|
-
def test_insert_tag_into_itself_raises_exception(self):
|
|
832
|
-
text = "<a><b></b></a>"
|
|
833
|
-
soup = self.soup(text)
|
|
834
|
-
with pytest.raises(ValueError):
|
|
835
|
-
soup.a.insert(0, soup.a)
|
|
836
|
-
|
|
837
|
-
def test_insert_multiple_elements(self):
|
|
838
|
-
soup = self.soup("<p>And now, a word:</p><p>And we're back.</p>")
|
|
839
|
-
p2, p3 = soup.insert(1, soup.new_tag("p", string="p2"), soup.new_tag("p", string="p3"))
|
|
840
|
-
assert "p2" == p2.string
|
|
841
|
-
assert "p3" == p3.string
|
|
842
|
-
|
|
843
|
-
p1, p2, p3, p4 = list(soup.children)
|
|
844
|
-
assert "And now, a word:" == p1.string
|
|
845
|
-
assert "p2" == p2.string
|
|
846
|
-
assert "p3" == p3.string
|
|
847
|
-
assert "And we're back." == p4.string
|
|
848
|
-
|
|
849
|
-
def test_insert_beautifulsoup_object_inserts_children(self):
|
|
850
|
-
"""Inserting one BeautifulSoup object into another actually inserts all
|
|
851
|
-
of its children -- you'll never combine BeautifulSoup objects.
|
|
852
|
-
"""
|
|
853
|
-
soup = self.soup("<p>And now, a word:</p><p>And we're back.</p>")
|
|
854
|
-
|
|
855
|
-
text = "<p>p2</p><p>p3</p>"
|
|
856
|
-
to_insert = self.soup(text)
|
|
857
|
-
p2, p3 = soup.insert(1, to_insert)
|
|
858
|
-
assert "p2" == p2.string
|
|
859
|
-
assert "p3" == p3.string
|
|
860
|
-
|
|
861
|
-
for i in soup.descendants:
|
|
862
|
-
assert not isinstance(i, BeautifulSoup)
|
|
863
|
-
|
|
864
|
-
p1, p2, p3, p4 = list(soup.children)
|
|
865
|
-
assert "And now, a word:" == p1.string
|
|
866
|
-
assert "p2" == p2.string
|
|
867
|
-
assert "p3" == p3.string
|
|
868
|
-
assert "And we're back." == p4.string
|
|
869
|
-
|
|
870
|
-
def test_replace_with_maintains_next_element_throughout(self):
|
|
871
|
-
soup = self.soup("<p><a>one</a><b>three</b></p>")
|
|
872
|
-
a = soup.a
|
|
873
|
-
# Make it so the <a> tag has two text children.
|
|
874
|
-
a.insert(1, "two")
|
|
875
|
-
|
|
876
|
-
# Now replace each one with the empty string.
|
|
877
|
-
left, right = a.contents
|
|
878
|
-
left.replace_with("")
|
|
879
|
-
right.replace_with("")
|
|
880
|
-
|
|
881
|
-
# The <b> tag is still connected to the tree.
|
|
882
|
-
assert "three" == soup.b.string
|
|
883
|
-
|
|
884
|
-
def test_replace_final_node(self):
|
|
885
|
-
soup = self.soup("<b>Argh!</b>")
|
|
886
|
-
soup.find(string="Argh!").replace_with("Hooray!")
|
|
887
|
-
new_text = soup.find(string="Hooray!")
|
|
888
|
-
b = soup.b
|
|
889
|
-
assert new_text.previous_element == b
|
|
890
|
-
assert new_text.parent == b
|
|
891
|
-
assert new_text.previous_element.next_element == new_text
|
|
892
|
-
assert new_text.next_element is None
|
|
893
|
-
|
|
894
|
-
def test_consecutive_text_nodes(self):
|
|
895
|
-
# A builder should never create two consecutive text nodes,
|
|
896
|
-
# but if you insert one next to another, Beautiful Soup will
|
|
897
|
-
# handle it correctly.
|
|
898
|
-
soup = self.soup("<a><b>Argh!</b><c></c></a>")
|
|
899
|
-
soup.b.insert(1, "Hooray!")
|
|
900
|
-
|
|
901
|
-
assert soup.decode() == self.document_for("<a><b>Argh!Hooray!</b><c></c></a>")
|
|
902
|
-
|
|
903
|
-
new_text = soup.find(string="Hooray!")
|
|
904
|
-
assert new_text.previous_element == "Argh!"
|
|
905
|
-
assert new_text.previous_element.next_element == new_text
|
|
906
|
-
|
|
907
|
-
assert new_text.previous_sibling == "Argh!"
|
|
908
|
-
assert new_text.previous_sibling.next_sibling == new_text
|
|
909
|
-
|
|
910
|
-
assert new_text.next_sibling is None
|
|
911
|
-
assert new_text.next_element == soup.c
|
|
912
|
-
|
|
913
|
-
def test_insert_string(self):
|
|
914
|
-
soup = self.soup("<a></a>")
|
|
915
|
-
soup.a.insert(0, "bar")
|
|
916
|
-
soup.a.insert(0, "foo")
|
|
917
|
-
# The string were added to the tag.
|
|
918
|
-
assert ["foo", "bar"] == soup.a.contents
|
|
919
|
-
# And they were converted to NavigableStrings.
|
|
920
|
-
assert soup.a.contents[0].next_element == "bar"
|
|
921
|
-
|
|
922
|
-
def test_append(self):
|
|
923
|
-
soup = self.soup("<b>1</b>")
|
|
924
|
-
result = soup.b.append("2")
|
|
925
|
-
assert result == "2"
|
|
926
|
-
assert soup.b.decode() == "<b>12</b>"
|
|
927
|
-
|
|
928
|
-
def test_insert_tag(self):
|
|
929
|
-
builder = self.default_builder()
|
|
930
|
-
soup = self.soup("<a><b>Find</b><c>lady!</c><d></d></a>", builder=builder)
|
|
931
|
-
magic_tag = Tag(soup, builder, "magictag")
|
|
932
|
-
magic_tag.insert(0, "the")
|
|
933
|
-
soup.a.insert(1, magic_tag)
|
|
934
|
-
|
|
935
|
-
assert soup.decode() == self.document_for(
|
|
936
|
-
"<a><b>Find</b><magictag>the</magictag><c>lady!</c><d></d></a>"
|
|
937
|
-
)
|
|
938
|
-
|
|
939
|
-
# Make sure all the relationships are hooked up correctly.
|
|
940
|
-
b_tag = soup.b
|
|
941
|
-
assert b_tag.next_sibling == magic_tag
|
|
942
|
-
assert magic_tag.previous_sibling == b_tag
|
|
943
|
-
|
|
944
|
-
find = b_tag.find(string="Find")
|
|
945
|
-
assert find.next_element == magic_tag
|
|
946
|
-
assert magic_tag.previous_element == find
|
|
947
|
-
|
|
948
|
-
c_tag = soup.c
|
|
949
|
-
assert magic_tag.next_sibling == c_tag
|
|
950
|
-
assert c_tag.previous_sibling == magic_tag
|
|
951
|
-
|
|
952
|
-
the = magic_tag.find(string="the")
|
|
953
|
-
assert the.parent == magic_tag
|
|
954
|
-
assert the.next_element == c_tag
|
|
955
|
-
assert c_tag.previous_element == the
|
|
956
|
-
|
|
957
|
-
def test_insert_into_the_current_location(self):
|
|
958
|
-
data = "<a>b<c></c>d</a>"
|
|
959
|
-
soup = self.soup(data)
|
|
960
|
-
soup.a.insert(1, soup.c)
|
|
961
|
-
assert data == soup.decode()
|
|
962
|
-
|
|
963
|
-
def test_append_child_thats_already_at_the_end(self):
|
|
964
|
-
data = "<a><b></b></a>"
|
|
965
|
-
soup = self.soup(data)
|
|
966
|
-
soup.a.append(soup.b)
|
|
967
|
-
assert data == soup.decode()
|
|
968
|
-
|
|
969
|
-
def test_extend_with_a_list_of_elements(self):
|
|
970
|
-
data = "<a><b><c><d><e><f><g></g></f></e></d></c></b></a>"
|
|
971
|
-
soup = self.soup(data)
|
|
972
|
-
elements = [soup.g, soup.f, soup.e, soup.d, soup.c, soup.b]
|
|
973
|
-
soup.a.extend(elements)
|
|
974
|
-
assert "<a><g></g><f></f><e></e><d></d><c></c><b></b></a>" == soup.decode()
|
|
975
|
-
|
|
976
|
-
def test_extend_with_a_list_of_strings(self):
|
|
977
|
-
data = "<a></a>"
|
|
978
|
-
soup = self.soup(data)
|
|
979
|
-
elements = ["b", "c", NavigableString("d"), "e"]
|
|
980
|
-
soup.a.extend(elements)
|
|
981
|
-
assert "<a>bcde</a>" == soup.decode()
|
|
982
|
-
|
|
983
|
-
@pytest.mark.parametrize("get_tags", [lambda tag: tag, lambda tag: tag.contents])
|
|
984
|
-
def test_extend_with_another_tags_contents(self, get_tags):
|
|
985
|
-
data = '<body><div id="d1"><a>1</a><a>2</a><a>3</a><a>4</a></div><div id="d2"></div></body>'
|
|
986
|
-
soup = self.soup(data)
|
|
987
|
-
d1 = soup.find("div", id="d1")
|
|
988
|
-
d2 = soup.find("div", id="d2")
|
|
989
|
-
tags = get_tags(d1)
|
|
990
|
-
d2.extend(tags)
|
|
991
|
-
assert '<div id="d1"></div>' == d1.decode()
|
|
992
|
-
assert '<div id="d2"><a>1</a><a>2</a><a>3</a><a>4</a></div>' == d2.decode()
|
|
993
|
-
|
|
994
|
-
@pytest.mark.parametrize(
|
|
995
|
-
"string_source,result",
|
|
996
|
-
(
|
|
997
|
-
[lambda soup: soup.a.string, "<a></a><b>1</b>"],
|
|
998
|
-
[lambda soup: "abcde", "<a>1</a><b>abcde</b>"],
|
|
999
|
-
),
|
|
1000
|
-
)
|
|
1001
|
-
def test_extend_with_a_single_non_tag_element(self, string_source, result):
|
|
1002
|
-
data = "<div><a>1</a><b></b></div>"
|
|
1003
|
-
soup = self.soup(data)
|
|
1004
|
-
with warnings.catch_warnings(record=True) as w:
|
|
1005
|
-
string = string_source(soup)
|
|
1006
|
-
soup.b.extend(string)
|
|
1007
|
-
assert soup.div.decode_contents() == result
|
|
1008
|
-
[warning] = w
|
|
1009
|
-
assert warning.filename == __file__
|
|
1010
|
-
msg = str(warning.message)
|
|
1011
|
-
assert (
|
|
1012
|
-
msg
|
|
1013
|
-
== "A single non-Tag item was passed into Tag.extend. Use Tag.append instead."
|
|
1014
|
-
)
|
|
1015
|
-
|
|
1016
|
-
def test_move_tag_to_beginning_of_parent(self):
|
|
1017
|
-
data = "<a><b></b><c></c><d></d></a>"
|
|
1018
|
-
soup = self.soup(data)
|
|
1019
|
-
soup.a.insert(0, soup.d)
|
|
1020
|
-
assert "<a><d></d><b></b><c></c></a>" == soup.decode()
|
|
1021
|
-
|
|
1022
|
-
def test_insert_works_on_empty_element_tag(self):
|
|
1023
|
-
# This is a little strange, since most HTML parsers don't allow
|
|
1024
|
-
# markup like this to come through. But in general, we don't
|
|
1025
|
-
# know what the parser would or wouldn't have allowed, so
|
|
1026
|
-
# I'm letting this succeed for now.
|
|
1027
|
-
soup = self.soup("<br/>")
|
|
1028
|
-
soup.br.insert(1, "Contents")
|
|
1029
|
-
assert str(soup.br) == "<br>Contents</br>"
|
|
1030
|
-
|
|
1031
|
-
def test_insert_before(self):
|
|
1032
|
-
soup = self.soup("<a>foo</a><b>bar</b>")
|
|
1033
|
-
soup.b.insert_before("BAZ")
|
|
1034
|
-
soup.a.insert_before("QUUX")
|
|
1035
|
-
assert soup.decode() == self.document_for("QUUX<a>foo</a>BAZ<b>bar</b>")
|
|
1036
|
-
|
|
1037
|
-
soup.a.insert_before(soup.b)
|
|
1038
|
-
assert soup.decode() == self.document_for("QUUX<b>bar</b><a>foo</a>BAZ")
|
|
1039
|
-
|
|
1040
|
-
# Can't insert an element before itself.
|
|
1041
|
-
b = soup.b
|
|
1042
|
-
with pytest.raises(ValueError):
|
|
1043
|
-
b.insert_before(b)
|
|
1044
|
-
|
|
1045
|
-
# Can't insert before if an element has no parent.
|
|
1046
|
-
b.extract()
|
|
1047
|
-
with pytest.raises(ValueError):
|
|
1048
|
-
b.insert_before("nope")
|
|
1049
|
-
|
|
1050
|
-
# Can insert an identical element
|
|
1051
|
-
soup = self.soup("<a>")
|
|
1052
|
-
soup.a.insert_before(soup.new_tag("a"))
|
|
1053
|
-
|
|
1054
|
-
# TODO: OK but what happens?
|
|
1055
|
-
|
|
1056
|
-
def test_insert_multiple_before(self):
|
|
1057
|
-
soup = self.soup("<a>foo</a><b>bar</b>")
|
|
1058
|
-
soup.b.insert_before("BAZ", " ", "QUUX")
|
|
1059
|
-
soup.a.insert_before("QUUX", " ", "BAZ")
|
|
1060
|
-
assert soup.decode() == self.document_for(
|
|
1061
|
-
"QUUX BAZ<a>foo</a>BAZ QUUX<b>bar</b>"
|
|
1062
|
-
)
|
|
1063
|
-
|
|
1064
|
-
soup.a.insert_before(soup.b, "FOO")
|
|
1065
|
-
assert soup.decode() == self.document_for(
|
|
1066
|
-
"QUUX BAZ<b>bar</b>FOO<a>foo</a>BAZ QUUX"
|
|
1067
|
-
)
|
|
1068
|
-
|
|
1069
|
-
def test_insert_after(self):
|
|
1070
|
-
soup = self.soup("<a>foo</a><b>bar</b>")
|
|
1071
|
-
soup.b.insert_after("BAZ")
|
|
1072
|
-
soup.a.insert_after("QUUX")
|
|
1073
|
-
assert soup.decode() == self.document_for("<a>foo</a>QUUX<b>bar</b>BAZ")
|
|
1074
|
-
soup.b.insert_after(soup.a)
|
|
1075
|
-
assert soup.decode() == self.document_for("QUUX<b>bar</b><a>foo</a>BAZ")
|
|
1076
|
-
|
|
1077
|
-
# Can't insert an element after itself.
|
|
1078
|
-
b = soup.b
|
|
1079
|
-
with pytest.raises(ValueError):
|
|
1080
|
-
b.insert_after(b)
|
|
1081
|
-
|
|
1082
|
-
# Can't insert after if an element has no parent.
|
|
1083
|
-
b.extract()
|
|
1084
|
-
with pytest.raises(ValueError):
|
|
1085
|
-
b.insert_after("nope")
|
|
1086
|
-
|
|
1087
|
-
# Can insert an identical element
|
|
1088
|
-
soup = self.soup("<a>")
|
|
1089
|
-
soup.a.insert_before(soup.new_tag("a"))
|
|
1090
|
-
|
|
1091
|
-
# TODO: OK but what does it look like?
|
|
1092
|
-
|
|
1093
|
-
def test_insert_multiple_after(self):
|
|
1094
|
-
soup = self.soup("<a>foo</a><b>bar</b>")
|
|
1095
|
-
soup.b.insert_after("BAZ", " ", "QUUX")
|
|
1096
|
-
soup.a.insert_after("QUUX", " ", "BAZ")
|
|
1097
|
-
assert soup.decode() == self.document_for(
|
|
1098
|
-
"<a>foo</a>QUUX BAZ<b>bar</b>BAZ QUUX"
|
|
1099
|
-
)
|
|
1100
|
-
soup.b.insert_after(soup.a, "FOO ")
|
|
1101
|
-
assert soup.decode() == self.document_for(
|
|
1102
|
-
"QUUX BAZ<b>bar</b><a>foo</a>FOO BAZ QUUX"
|
|
1103
|
-
)
|
|
1104
|
-
|
|
1105
|
-
def test_insert_after_raises_exception_if_after_has_no_meaning(self):
|
|
1106
|
-
soup = self.soup("")
|
|
1107
|
-
tag = soup.new_tag("a")
|
|
1108
|
-
string = soup.new_string("")
|
|
1109
|
-
with pytest.raises(ValueError):
|
|
1110
|
-
string.insert_after(tag)
|
|
1111
|
-
with pytest.raises(NotImplementedError):
|
|
1112
|
-
soup.insert_after(tag)
|
|
1113
|
-
with pytest.raises(ValueError):
|
|
1114
|
-
tag.insert_after(tag)
|
|
1115
|
-
|
|
1116
|
-
def test_insert_before_raises_notimplementederror_if_before_has_no_meaning(self):
|
|
1117
|
-
soup = self.soup("")
|
|
1118
|
-
tag = soup.new_tag("a")
|
|
1119
|
-
string = soup.new_string("")
|
|
1120
|
-
with pytest.raises(ValueError):
|
|
1121
|
-
string.insert_before(tag)
|
|
1122
|
-
with pytest.raises(NotImplementedError):
|
|
1123
|
-
soup.insert_before(tag)
|
|
1124
|
-
with pytest.raises(ValueError):
|
|
1125
|
-
tag.insert_before(tag)
|
|
1126
|
-
|
|
1127
|
-
def test_replace_with(self):
|
|
1128
|
-
soup = self.soup("<p>There's <b>no</b> business like <b>show</b> business</p>")
|
|
1129
|
-
no, show = soup.find_all("b")
|
|
1130
|
-
show.replace_with(no)
|
|
1131
|
-
assert soup.decode() == self.document_for(
|
|
1132
|
-
"<p>There's business like <b>no</b> business</p>"
|
|
1133
|
-
)
|
|
1134
|
-
|
|
1135
|
-
assert show.parent is None
|
|
1136
|
-
assert no.parent == soup.p
|
|
1137
|
-
assert no.next_element == "no"
|
|
1138
|
-
assert no.next_sibling == " business"
|
|
1139
|
-
|
|
1140
|
-
def test_replace_with_errors(self):
|
|
1141
|
-
# Can't replace a tag that's not part of a tree.
|
|
1142
|
-
a_tag = Tag(name="a")
|
|
1143
|
-
with pytest.raises(ValueError):
|
|
1144
|
-
a_tag.replace_with("won't work")
|
|
1145
|
-
|
|
1146
|
-
# Can't replace a tag with its parent.
|
|
1147
|
-
a_tag = self.soup("<a><b></b></a>").a
|
|
1148
|
-
with pytest.raises(ValueError):
|
|
1149
|
-
a_tag.b.replace_with(a_tag)
|
|
1150
|
-
|
|
1151
|
-
# Or with a list that includes its parent.
|
|
1152
|
-
with pytest.raises(ValueError):
|
|
1153
|
-
a_tag.b.replace_with("string1", a_tag, "string2")
|
|
1154
|
-
|
|
1155
|
-
def test_replace_with_multiple(self):
|
|
1156
|
-
data = "<a><b></b><c></c></a>"
|
|
1157
|
-
soup = self.soup(data)
|
|
1158
|
-
d_tag = soup.new_tag("d")
|
|
1159
|
-
d_tag.string = "Text In D Tag"
|
|
1160
|
-
e_tag = soup.new_tag("e")
|
|
1161
|
-
f_tag = soup.new_tag("f")
|
|
1162
|
-
a_string = "Random Text"
|
|
1163
|
-
soup.c.replace_with(d_tag, e_tag, a_string, f_tag)
|
|
1164
|
-
assert (
|
|
1165
|
-
soup.decode()
|
|
1166
|
-
== "<a><b></b><d>Text In D Tag</d><e></e>Random Text<f></f></a>"
|
|
1167
|
-
)
|
|
1168
|
-
assert soup.b.next_element == d_tag
|
|
1169
|
-
assert d_tag.string.next_element == e_tag
|
|
1170
|
-
assert e_tag.next_element.string == a_string
|
|
1171
|
-
assert e_tag.next_element.next_element == f_tag
|
|
1172
|
-
|
|
1173
|
-
def test_replace_first_child(self):
|
|
1174
|
-
data = "<a><b></b><c></c></a>"
|
|
1175
|
-
soup = self.soup(data)
|
|
1176
|
-
soup.b.replace_with(soup.c)
|
|
1177
|
-
assert "<a><c></c></a>" == soup.decode()
|
|
1178
|
-
|
|
1179
|
-
def test_replace_last_child(self):
|
|
1180
|
-
data = "<a><b></b><c></c></a>"
|
|
1181
|
-
soup = self.soup(data)
|
|
1182
|
-
soup.c.replace_with(soup.b)
|
|
1183
|
-
assert "<a><b></b></a>" == soup.decode()
|
|
1184
|
-
|
|
1185
|
-
def test_nested_tag_replace_with(self):
|
|
1186
|
-
soup = self.soup(
|
|
1187
|
-
"""<a>We<b>reserve<c>the</c><d>right</d></b></a><e>to<f>refuse</f><g>service</g></e>"""
|
|
1188
|
-
)
|
|
1189
|
-
|
|
1190
|
-
# Replace the entire <b> tag and its contents ("reserve the
|
|
1191
|
-
# right") with the <f> tag ("refuse").
|
|
1192
|
-
remove_tag = soup.b
|
|
1193
|
-
move_tag = soup.f
|
|
1194
|
-
remove_tag.replace_with(move_tag)
|
|
1195
|
-
|
|
1196
|
-
assert soup.decode() == self.document_for(
|
|
1197
|
-
"<a>We<f>refuse</f></a><e>to<g>service</g></e>"
|
|
1198
|
-
)
|
|
1199
|
-
|
|
1200
|
-
# The <b> tag is now an orphan.
|
|
1201
|
-
assert remove_tag.parent is None
|
|
1202
|
-
assert remove_tag.find(string="right").next_element is None
|
|
1203
|
-
assert remove_tag.previous_element is None
|
|
1204
|
-
assert remove_tag.next_sibling is None
|
|
1205
|
-
assert remove_tag.previous_sibling is None
|
|
1206
|
-
|
|
1207
|
-
# The <f> tag is now connected to the <a> tag.
|
|
1208
|
-
assert move_tag.parent == soup.a
|
|
1209
|
-
assert move_tag.previous_element == "We"
|
|
1210
|
-
assert move_tag.next_element.next_element == soup.e
|
|
1211
|
-
assert move_tag.next_sibling is None
|
|
1212
|
-
|
|
1213
|
-
# The gap where the <f> tag used to be has been mended, and
|
|
1214
|
-
# the word "to" is now connected to the <g> tag.
|
|
1215
|
-
to_text = soup.find(string="to")
|
|
1216
|
-
g_tag = soup.g
|
|
1217
|
-
assert to_text.next_element == g_tag
|
|
1218
|
-
assert to_text.next_sibling == g_tag
|
|
1219
|
-
assert g_tag.previous_element == to_text
|
|
1220
|
-
assert g_tag.previous_sibling == to_text
|
|
1221
|
-
|
|
1222
|
-
def test_unwrap(self):
|
|
1223
|
-
tree = self.soup("""
|
|
1224
|
-
<p>Unneeded <em>formatting</em> is unneeded</p>
|
|
1225
|
-
""")
|
|
1226
|
-
tree.em.unwrap()
|
|
1227
|
-
assert tree.em is None
|
|
1228
|
-
assert tree.p.text == "Unneeded formatting is unneeded"
|
|
1229
|
-
|
|
1230
|
-
def test_wrap(self):
|
|
1231
|
-
soup = self.soup("I wish I was bold.")
|
|
1232
|
-
value = soup.string.wrap(soup.new_tag("b"))
|
|
1233
|
-
assert value.decode() == "<b>I wish I was bold.</b>"
|
|
1234
|
-
assert soup.decode() == self.document_for("<b>I wish I was bold.</b>")
|
|
1235
|
-
|
|
1236
|
-
def test_wrap_extracts_tag_from_elsewhere(self):
|
|
1237
|
-
soup = self.soup("<b></b>I wish I was bold.")
|
|
1238
|
-
soup.b.next_sibling.wrap(soup.b)
|
|
1239
|
-
assert soup.decode() == self.document_for("<b>I wish I was bold.</b>")
|
|
1240
|
-
|
|
1241
|
-
def test_wrap_puts_new_contents_at_the_end(self):
|
|
1242
|
-
soup = self.soup("<b>I like being bold.</b>I wish I was bold.")
|
|
1243
|
-
soup.b.next_sibling.wrap(soup.b)
|
|
1244
|
-
assert 2 == len(soup.b.contents)
|
|
1245
|
-
assert soup.decode() == self.document_for(
|
|
1246
|
-
"<b>I like being bold.I wish I was bold.</b>"
|
|
1247
|
-
)
|
|
1248
|
-
|
|
1249
|
-
def test_extract(self):
|
|
1250
|
-
soup = self.soup(
|
|
1251
|
-
'<html><body>Some content. <div id="nav">Nav crap</div> More content.</body></html>'
|
|
1252
|
-
)
|
|
1253
|
-
|
|
1254
|
-
assert len(soup.body.contents) == 3
|
|
1255
|
-
extracted = soup.find(id="nav").extract()
|
|
1256
|
-
|
|
1257
|
-
assert soup.decode() == "<html><body>Some content. More content.</body></html>"
|
|
1258
|
-
assert extracted.decode() == '<div id="nav">Nav crap</div>'
|
|
1259
|
-
|
|
1260
|
-
# The extracted tag is now an orphan.
|
|
1261
|
-
assert len(soup.body.contents) == 2
|
|
1262
|
-
assert extracted.parent is None
|
|
1263
|
-
assert extracted.previous_element is None
|
|
1264
|
-
assert extracted.next_element.next_element is None
|
|
1265
|
-
|
|
1266
|
-
# The gap where the extracted tag used to be has been mended.
|
|
1267
|
-
content_1 = soup.find(string="Some content. ")
|
|
1268
|
-
content_2 = soup.find(string=" More content.")
|
|
1269
|
-
assert content_1.next_element == content_2
|
|
1270
|
-
assert content_1.next_sibling == content_2
|
|
1271
|
-
assert content_2.previous_element == content_1
|
|
1272
|
-
assert content_2.previous_sibling == content_1
|
|
1273
|
-
|
|
1274
|
-
def test_extract_distinguishes_between_identical_strings(self):
|
|
1275
|
-
soup = self.soup("<a>foo</a><b>bar</b>")
|
|
1276
|
-
foo_1 = soup.a.string
|
|
1277
|
-
foo_2 = soup.new_string("foo")
|
|
1278
|
-
bar_2 = soup.new_string("bar")
|
|
1279
|
-
soup.a.append(foo_2)
|
|
1280
|
-
soup.b.append(bar_2)
|
|
1281
|
-
|
|
1282
|
-
# Now there are two identical strings in the <a> tag, and two
|
|
1283
|
-
# in the <b> tag. Let's remove the first "foo" and the second
|
|
1284
|
-
# "bar".
|
|
1285
|
-
foo_1.extract()
|
|
1286
|
-
bar_2.extract()
|
|
1287
|
-
assert foo_2 == soup.a.string
|
|
1288
|
-
assert bar_2 == soup.b.string
|
|
1289
|
-
|
|
1290
|
-
def test_extract_multiples_of_same_tag(self):
|
|
1291
|
-
soup = self.soup("""
|
|
1292
|
-
<html>
|
|
1293
|
-
<head>
|
|
1294
|
-
<script>foo</script>
|
|
1295
|
-
</head>
|
|
1296
|
-
<body>
|
|
1297
|
-
<script>bar</script>
|
|
1298
|
-
<a></a>
|
|
1299
|
-
</body>
|
|
1300
|
-
<script>baz</script>
|
|
1301
|
-
</html>""")
|
|
1302
|
-
[soup.script.extract() for i in soup.find_all("script")]
|
|
1303
|
-
assert "<body>\n\n<a></a>\n</body>" == str(soup.body)
|
|
1304
|
-
|
|
1305
|
-
def test_extract_works_when_element_is_surrounded_by_identical_strings(self):
|
|
1306
|
-
soup = self.soup("<html>\n" "<body>hi</body>\n" "</html>")
|
|
1307
|
-
soup.find("body").extract()
|
|
1308
|
-
assert None is soup.find("body")
|
|
1309
|
-
|
|
1310
|
-
def test_clear(self):
|
|
1311
|
-
"""Tag.clear()"""
|
|
1312
|
-
soup = self.soup("<p><a>String <em>Italicized</em></a> and another</p>")
|
|
1313
|
-
# clear using extract()
|
|
1314
|
-
a = soup.a
|
|
1315
|
-
soup.p.clear()
|
|
1316
|
-
assert len(soup.p.contents) == 0
|
|
1317
|
-
assert hasattr(a, "contents")
|
|
1318
|
-
|
|
1319
|
-
# clear using decompose()
|
|
1320
|
-
em = a.em
|
|
1321
|
-
a.clear(decompose=True)
|
|
1322
|
-
assert 0 == len(em.contents)
|
|
1323
|
-
|
|
1324
|
-
@pytest.mark.parametrize(
|
|
1325
|
-
"method_name,expected_result",
|
|
1326
|
-
[
|
|
1327
|
-
(
|
|
1328
|
-
"descendants",
|
|
1329
|
-
'<div><em>child1</em><p id="start"></p><p>child3</p></div>',
|
|
1330
|
-
),
|
|
1331
|
-
(
|
|
1332
|
-
"next_siblings",
|
|
1333
|
-
'<div><em>child1</em><p id="start"><a>Second <em>child</em></a></p></div>',
|
|
1334
|
-
),
|
|
1335
|
-
# Confused about why child3 is still here in this test? It's because removing the <p id="start"> tag from the tree removes all of its children from the tree as well. 'child'.next_element becomes None, because 'child' is no longer in the tree, and iteration stops there. Don't do this kind of thing, is what I'm saying.
|
|
1336
|
-
(
|
|
1337
|
-
"next_elements",
|
|
1338
|
-
'<div><em>child1</em><p id="start"></p><p>child3</p></div>',
|
|
1339
|
-
),
|
|
1340
|
-
("children", '<div><em>child1</em><p id="start"></p><p>child3</p></div>'),
|
|
1341
|
-
("previous_elements", ""),
|
|
1342
|
-
(
|
|
1343
|
-
"previous_siblings",
|
|
1344
|
-
'<div><p id="start"><a>Second <em>child</em></a></p><p>child3</p></div>',
|
|
1345
|
-
),
|
|
1346
|
-
("parents", ""),
|
|
1347
|
-
],
|
|
1348
|
-
)
|
|
1349
|
-
def test_extract_during_iteration(self, method_name, expected_result):
|
|
1350
|
-
# The iterators should be able to proceed even if the most
|
|
1351
|
-
# current yield got removed from the tree. This kind of code
|
|
1352
|
-
# is a bad idea, but we should be able to run it without an exception.
|
|
1353
|
-
soup = self.soup(
|
|
1354
|
-
"<div><em>child1</em><p id='start'><a>Second <em>child</em></a></p><p>child3</p></div>"
|
|
1355
|
-
)
|
|
1356
|
-
iterator = getattr(soup.p, method_name)
|
|
1357
|
-
for i in iterator:
|
|
1358
|
-
i.extract()
|
|
1359
|
-
assert expected_result == soup.decode()
|
|
1360
|
-
|
|
1361
|
-
def test_decompose(self):
|
|
1362
|
-
# Test PageElement.decompose() and PageElement.decomposed
|
|
1363
|
-
soup = self.soup("<p><a>String <em>Italicized</em></a></p><p>Another para</p>")
|
|
1364
|
-
p1, p2 = soup.find_all("p")
|
|
1365
|
-
a = p1.a
|
|
1366
|
-
text = p1.em.string
|
|
1367
|
-
for i in [p1, p2, a, text]:
|
|
1368
|
-
assert False is i.decomposed
|
|
1369
|
-
|
|
1370
|
-
# This sets p1 and everything beneath it to decomposed.
|
|
1371
|
-
p1.decompose()
|
|
1372
|
-
for i in [p1, a, text]:
|
|
1373
|
-
assert True is i.decomposed
|
|
1374
|
-
# p2 is unaffected.
|
|
1375
|
-
assert False is p2.decomposed
|
|
1376
|
-
|
|
1377
|
-
def test_decompose_string(self):
|
|
1378
|
-
soup = self.soup("<div><p>String 1</p><p>String 2</p></p>")
|
|
1379
|
-
div = soup.div
|
|
1380
|
-
text = div.p.string
|
|
1381
|
-
assert False is text.decomposed
|
|
1382
|
-
text.decompose()
|
|
1383
|
-
assert True is text.decomposed
|
|
1384
|
-
assert "<div><p></p><p>String 2</p></div>" == div.decode()
|
|
1385
|
-
|
|
1386
|
-
def test_string_set(self):
|
|
1387
|
-
"""Tag.string = 'string'"""
|
|
1388
|
-
soup = self.soup("<a></a> <b><c></c></b>")
|
|
1389
|
-
soup.a.string = "foo"
|
|
1390
|
-
assert soup.a.contents == ["foo"]
|
|
1391
|
-
soup.b.string = "bar"
|
|
1392
|
-
assert soup.b.contents == ["bar"]
|
|
1393
|
-
|
|
1394
|
-
def test_string_set_does_not_affect_original_string(self):
|
|
1395
|
-
soup = self.soup("<a><b>foo</b><c>bar</c>")
|
|
1396
|
-
soup.b.string = soup.c.string
|
|
1397
|
-
assert soup.a.encode() == b"<a><b>bar</b><c>bar</c></a>"
|
|
1398
|
-
|
|
1399
|
-
def test_set_string_preserves_class_of_string(self):
|
|
1400
|
-
soup = self.soup("<a></a>")
|
|
1401
|
-
cdata = CData("foo")
|
|
1402
|
-
soup.a.string = cdata
|
|
1403
|
-
assert isinstance(soup.a.string, CData)
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
all_find_type_methods = [
|
|
1407
|
-
"find",
|
|
1408
|
-
"find_all",
|
|
1409
|
-
"find_parent",
|
|
1410
|
-
"find_parents",
|
|
1411
|
-
"find_next",
|
|
1412
|
-
"find_all_next",
|
|
1413
|
-
"find_previous",
|
|
1414
|
-
"find_all_previous",
|
|
1415
|
-
"find_next_sibling",
|
|
1416
|
-
"find_next_siblings",
|
|
1417
|
-
"find_previous_sibling",
|
|
1418
|
-
"find_previous_siblings",
|
|
1419
|
-
]
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
class TestDeprecatedArguments(SoupTest):
|
|
1423
|
-
@pytest.mark.parametrize("method_name", all_find_type_methods)
|
|
1424
|
-
def test_find_type_method_string(self, method_name):
|
|
1425
|
-
soup = self.soup("<a>some</a><b>markup</b>")
|
|
1426
|
-
method = getattr(soup.b, method_name)
|
|
1427
|
-
with warnings.catch_warnings(record=True) as w:
|
|
1428
|
-
method(text="markup")
|
|
1429
|
-
[warning] = w
|
|
1430
|
-
assert warning.filename == __file__
|
|
1431
|
-
msg = str(warning.message)
|
|
1432
|
-
assert (
|
|
1433
|
-
msg
|
|
1434
|
-
== "The 'text' argument to find()-type methods is deprecated. Use 'string' instead."
|
|
1435
|
-
)
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
class TestWarnings(SoupTest):
|
|
1439
|
-
@pytest.mark.parametrize("method_name", all_find_type_methods)
|
|
1440
|
-
def test_suspicious_syntax_warning(self, method_name):
|
|
1441
|
-
soup = self.soup("<a>some</a><b>markup</b>")
|
|
1442
|
-
method = getattr(soup.b, method_name)
|
|
1443
|
-
with warnings.catch_warnings(record=True) as w:
|
|
1444
|
-
method(_class="u")
|
|
1445
|
-
[warning] = w
|
|
1446
|
-
assert warning.filename == __file__
|
|
1447
|
-
assert isinstance(warning.message, AttributeResemblesVariableWarning)
|
|
1448
|
-
msg = str(warning.message)
|
|
1449
|
-
assert (
|
|
1450
|
-
"'_class' is an unusual attribute name and is a common misspelling for 'class_'"
|
|
1451
|
-
in msg
|
|
1452
|
-
)
|