@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,1301 +0,0 @@
|
|
|
1
|
-
import abc
|
|
2
|
-
import asyncio
|
|
3
|
-
import base64
|
|
4
|
-
import functools
|
|
5
|
-
import hashlib
|
|
6
|
-
import html
|
|
7
|
-
import inspect
|
|
8
|
-
import keyword
|
|
9
|
-
import os
|
|
10
|
-
import re
|
|
11
|
-
import sys
|
|
12
|
-
import warnings
|
|
13
|
-
from functools import wraps
|
|
14
|
-
from pathlib import Path
|
|
15
|
-
from types import MappingProxyType
|
|
16
|
-
from typing import (
|
|
17
|
-
TYPE_CHECKING,
|
|
18
|
-
Any,
|
|
19
|
-
Awaitable,
|
|
20
|
-
Callable,
|
|
21
|
-
Container,
|
|
22
|
-
Dict,
|
|
23
|
-
Final,
|
|
24
|
-
Generator,
|
|
25
|
-
Iterable,
|
|
26
|
-
Iterator,
|
|
27
|
-
List,
|
|
28
|
-
Mapping,
|
|
29
|
-
NoReturn,
|
|
30
|
-
Optional,
|
|
31
|
-
Pattern,
|
|
32
|
-
Set,
|
|
33
|
-
Sized,
|
|
34
|
-
Tuple,
|
|
35
|
-
Type,
|
|
36
|
-
TypedDict,
|
|
37
|
-
Union,
|
|
38
|
-
cast,
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
from yarl import URL, __version__ as yarl_version
|
|
42
|
-
|
|
43
|
-
from . import hdrs
|
|
44
|
-
from .abc import AbstractMatchInfo, AbstractRouter, AbstractView
|
|
45
|
-
from .helpers import DEBUG
|
|
46
|
-
from .http import HttpVersion11
|
|
47
|
-
from .typedefs import Handler, PathLike
|
|
48
|
-
from .web_exceptions import (
|
|
49
|
-
HTTPException,
|
|
50
|
-
HTTPExpectationFailed,
|
|
51
|
-
HTTPForbidden,
|
|
52
|
-
HTTPMethodNotAllowed,
|
|
53
|
-
HTTPNotFound,
|
|
54
|
-
)
|
|
55
|
-
from .web_fileresponse import FileResponse
|
|
56
|
-
from .web_request import Request
|
|
57
|
-
from .web_response import Response, StreamResponse
|
|
58
|
-
from .web_routedef import AbstractRouteDef
|
|
59
|
-
|
|
60
|
-
__all__ = (
|
|
61
|
-
"UrlDispatcher",
|
|
62
|
-
"UrlMappingMatchInfo",
|
|
63
|
-
"AbstractResource",
|
|
64
|
-
"Resource",
|
|
65
|
-
"PlainResource",
|
|
66
|
-
"DynamicResource",
|
|
67
|
-
"AbstractRoute",
|
|
68
|
-
"ResourceRoute",
|
|
69
|
-
"StaticResource",
|
|
70
|
-
"View",
|
|
71
|
-
)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
if TYPE_CHECKING:
|
|
75
|
-
from .web_app import Application
|
|
76
|
-
|
|
77
|
-
BaseDict = Dict[str, str]
|
|
78
|
-
else:
|
|
79
|
-
BaseDict = dict
|
|
80
|
-
|
|
81
|
-
CIRCULAR_SYMLINK_ERROR = (
|
|
82
|
-
(OSError,)
|
|
83
|
-
if sys.version_info < (3, 10) and sys.platform.startswith("win32")
|
|
84
|
-
else (RuntimeError,) if sys.version_info < (3, 13) else ()
|
|
85
|
-
)
|
|
86
|
-
|
|
87
|
-
YARL_VERSION: Final[Tuple[int, ...]] = tuple(map(int, yarl_version.split(".")[:2]))
|
|
88
|
-
|
|
89
|
-
HTTP_METHOD_RE: Final[Pattern[str]] = re.compile(
|
|
90
|
-
r"^[0-9A-Za-z!#\$%&'\*\+\-\.\^_`\|~]+$"
|
|
91
|
-
)
|
|
92
|
-
ROUTE_RE: Final[Pattern[str]] = re.compile(
|
|
93
|
-
r"(\{[_a-zA-Z][^{}]*(?:\{[^{}]*\}[^{}]*)*\})"
|
|
94
|
-
)
|
|
95
|
-
PATH_SEP: Final[str] = re.escape("/")
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
_ExpectHandler = Callable[[Request], Awaitable[Optional[StreamResponse]]]
|
|
99
|
-
_Resolve = Tuple[Optional["UrlMappingMatchInfo"], Set[str]]
|
|
100
|
-
|
|
101
|
-
html_escape = functools.partial(html.escape, quote=True)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
class _InfoDict(TypedDict, total=False):
|
|
105
|
-
path: str
|
|
106
|
-
|
|
107
|
-
formatter: str
|
|
108
|
-
pattern: Pattern[str]
|
|
109
|
-
|
|
110
|
-
directory: Path
|
|
111
|
-
prefix: str
|
|
112
|
-
routes: Mapping[str, "AbstractRoute"]
|
|
113
|
-
|
|
114
|
-
app: "Application"
|
|
115
|
-
|
|
116
|
-
domain: str
|
|
117
|
-
|
|
118
|
-
rule: "AbstractRuleMatching"
|
|
119
|
-
|
|
120
|
-
http_exception: HTTPException
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
class AbstractResource(Sized, Iterable["AbstractRoute"]):
|
|
124
|
-
def __init__(self, *, name: Optional[str] = None) -> None:
|
|
125
|
-
self._name = name
|
|
126
|
-
|
|
127
|
-
@property
|
|
128
|
-
def name(self) -> Optional[str]:
|
|
129
|
-
return self._name
|
|
130
|
-
|
|
131
|
-
@property
|
|
132
|
-
@abc.abstractmethod
|
|
133
|
-
def canonical(self) -> str:
|
|
134
|
-
"""Exposes the resource's canonical path.
|
|
135
|
-
|
|
136
|
-
For example '/foo/bar/{name}'
|
|
137
|
-
|
|
138
|
-
"""
|
|
139
|
-
|
|
140
|
-
@abc.abstractmethod # pragma: no branch
|
|
141
|
-
def url_for(self, **kwargs: str) -> URL:
|
|
142
|
-
"""Construct url for resource with additional params."""
|
|
143
|
-
|
|
144
|
-
@abc.abstractmethod # pragma: no branch
|
|
145
|
-
async def resolve(self, request: Request) -> _Resolve:
|
|
146
|
-
"""Resolve resource.
|
|
147
|
-
|
|
148
|
-
Return (UrlMappingMatchInfo, allowed_methods) pair.
|
|
149
|
-
"""
|
|
150
|
-
|
|
151
|
-
@abc.abstractmethod
|
|
152
|
-
def add_prefix(self, prefix: str) -> None:
|
|
153
|
-
"""Add a prefix to processed URLs.
|
|
154
|
-
|
|
155
|
-
Required for subapplications support.
|
|
156
|
-
"""
|
|
157
|
-
|
|
158
|
-
@abc.abstractmethod
|
|
159
|
-
def get_info(self) -> _InfoDict:
|
|
160
|
-
"""Return a dict with additional info useful for introspection"""
|
|
161
|
-
|
|
162
|
-
def freeze(self) -> None:
|
|
163
|
-
pass
|
|
164
|
-
|
|
165
|
-
@abc.abstractmethod
|
|
166
|
-
def raw_match(self, path: str) -> bool:
|
|
167
|
-
"""Perform a raw match against path"""
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
class AbstractRoute(abc.ABC):
|
|
171
|
-
def __init__(
|
|
172
|
-
self,
|
|
173
|
-
method: str,
|
|
174
|
-
handler: Union[Handler, Type[AbstractView]],
|
|
175
|
-
*,
|
|
176
|
-
expect_handler: Optional[_ExpectHandler] = None,
|
|
177
|
-
resource: Optional[AbstractResource] = None,
|
|
178
|
-
) -> None:
|
|
179
|
-
|
|
180
|
-
if expect_handler is None:
|
|
181
|
-
expect_handler = _default_expect_handler
|
|
182
|
-
|
|
183
|
-
assert asyncio.iscoroutinefunction(
|
|
184
|
-
expect_handler
|
|
185
|
-
), f"Coroutine is expected, got {expect_handler!r}"
|
|
186
|
-
|
|
187
|
-
method = method.upper()
|
|
188
|
-
if not HTTP_METHOD_RE.match(method):
|
|
189
|
-
raise ValueError(f"{method} is not allowed HTTP method")
|
|
190
|
-
|
|
191
|
-
assert callable(handler), handler
|
|
192
|
-
if asyncio.iscoroutinefunction(handler):
|
|
193
|
-
pass
|
|
194
|
-
elif inspect.isgeneratorfunction(handler):
|
|
195
|
-
warnings.warn(
|
|
196
|
-
"Bare generators are deprecated, use @coroutine wrapper",
|
|
197
|
-
DeprecationWarning,
|
|
198
|
-
)
|
|
199
|
-
elif isinstance(handler, type) and issubclass(handler, AbstractView):
|
|
200
|
-
pass
|
|
201
|
-
else:
|
|
202
|
-
warnings.warn(
|
|
203
|
-
"Bare functions are deprecated, use async ones", DeprecationWarning
|
|
204
|
-
)
|
|
205
|
-
|
|
206
|
-
@wraps(handler)
|
|
207
|
-
async def handler_wrapper(request: Request) -> StreamResponse:
|
|
208
|
-
result = old_handler(request) # type: ignore[call-arg]
|
|
209
|
-
if asyncio.iscoroutine(result):
|
|
210
|
-
result = await result
|
|
211
|
-
assert isinstance(result, StreamResponse)
|
|
212
|
-
return result
|
|
213
|
-
|
|
214
|
-
old_handler = handler
|
|
215
|
-
handler = handler_wrapper
|
|
216
|
-
|
|
217
|
-
self._method = method
|
|
218
|
-
self._handler = handler
|
|
219
|
-
self._expect_handler = expect_handler
|
|
220
|
-
self._resource = resource
|
|
221
|
-
|
|
222
|
-
@property
|
|
223
|
-
def method(self) -> str:
|
|
224
|
-
return self._method
|
|
225
|
-
|
|
226
|
-
@property
|
|
227
|
-
def handler(self) -> Handler:
|
|
228
|
-
return self._handler
|
|
229
|
-
|
|
230
|
-
@property
|
|
231
|
-
@abc.abstractmethod
|
|
232
|
-
def name(self) -> Optional[str]:
|
|
233
|
-
"""Optional route's name, always equals to resource's name."""
|
|
234
|
-
|
|
235
|
-
@property
|
|
236
|
-
def resource(self) -> Optional[AbstractResource]:
|
|
237
|
-
return self._resource
|
|
238
|
-
|
|
239
|
-
@abc.abstractmethod
|
|
240
|
-
def get_info(self) -> _InfoDict:
|
|
241
|
-
"""Return a dict with additional info useful for introspection"""
|
|
242
|
-
|
|
243
|
-
@abc.abstractmethod # pragma: no branch
|
|
244
|
-
def url_for(self, *args: str, **kwargs: str) -> URL:
|
|
245
|
-
"""Construct url for route with additional params."""
|
|
246
|
-
|
|
247
|
-
async def handle_expect_header(self, request: Request) -> Optional[StreamResponse]:
|
|
248
|
-
return await self._expect_handler(request)
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
class UrlMappingMatchInfo(BaseDict, AbstractMatchInfo):
|
|
252
|
-
|
|
253
|
-
__slots__ = ("_route", "_apps", "_current_app", "_frozen")
|
|
254
|
-
|
|
255
|
-
def __init__(self, match_dict: Dict[str, str], route: AbstractRoute) -> None:
|
|
256
|
-
super().__init__(match_dict)
|
|
257
|
-
self._route = route
|
|
258
|
-
self._apps: List[Application] = []
|
|
259
|
-
self._current_app: Optional[Application] = None
|
|
260
|
-
self._frozen = False
|
|
261
|
-
|
|
262
|
-
@property
|
|
263
|
-
def handler(self) -> Handler:
|
|
264
|
-
return self._route.handler
|
|
265
|
-
|
|
266
|
-
@property
|
|
267
|
-
def route(self) -> AbstractRoute:
|
|
268
|
-
return self._route
|
|
269
|
-
|
|
270
|
-
@property
|
|
271
|
-
def expect_handler(self) -> _ExpectHandler:
|
|
272
|
-
return self._route.handle_expect_header
|
|
273
|
-
|
|
274
|
-
@property
|
|
275
|
-
def http_exception(self) -> Optional[HTTPException]:
|
|
276
|
-
return None
|
|
277
|
-
|
|
278
|
-
def get_info(self) -> _InfoDict: # type: ignore[override]
|
|
279
|
-
return self._route.get_info()
|
|
280
|
-
|
|
281
|
-
@property
|
|
282
|
-
def apps(self) -> Tuple["Application", ...]:
|
|
283
|
-
return tuple(self._apps)
|
|
284
|
-
|
|
285
|
-
def add_app(self, app: "Application") -> None:
|
|
286
|
-
if self._frozen:
|
|
287
|
-
raise RuntimeError("Cannot change apps stack after .freeze() call")
|
|
288
|
-
if self._current_app is None:
|
|
289
|
-
self._current_app = app
|
|
290
|
-
self._apps.insert(0, app)
|
|
291
|
-
|
|
292
|
-
@property
|
|
293
|
-
def current_app(self) -> "Application":
|
|
294
|
-
app = self._current_app
|
|
295
|
-
assert app is not None
|
|
296
|
-
return app
|
|
297
|
-
|
|
298
|
-
@current_app.setter
|
|
299
|
-
def current_app(self, app: "Application") -> None:
|
|
300
|
-
if DEBUG: # pragma: no cover
|
|
301
|
-
if app not in self._apps:
|
|
302
|
-
raise RuntimeError(
|
|
303
|
-
"Expected one of the following apps {!r}, got {!r}".format(
|
|
304
|
-
self._apps, app
|
|
305
|
-
)
|
|
306
|
-
)
|
|
307
|
-
self._current_app = app
|
|
308
|
-
|
|
309
|
-
def freeze(self) -> None:
|
|
310
|
-
self._frozen = True
|
|
311
|
-
|
|
312
|
-
def __repr__(self) -> str:
|
|
313
|
-
return f"<MatchInfo {super().__repr__()}: {self._route}>"
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
class MatchInfoError(UrlMappingMatchInfo):
|
|
317
|
-
|
|
318
|
-
__slots__ = ("_exception",)
|
|
319
|
-
|
|
320
|
-
def __init__(self, http_exception: HTTPException) -> None:
|
|
321
|
-
self._exception = http_exception
|
|
322
|
-
super().__init__({}, SystemRoute(self._exception))
|
|
323
|
-
|
|
324
|
-
@property
|
|
325
|
-
def http_exception(self) -> HTTPException:
|
|
326
|
-
return self._exception
|
|
327
|
-
|
|
328
|
-
def __repr__(self) -> str:
|
|
329
|
-
return "<MatchInfoError {}: {}>".format(
|
|
330
|
-
self._exception.status, self._exception.reason
|
|
331
|
-
)
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
async def _default_expect_handler(request: Request) -> None:
|
|
335
|
-
"""Default handler for Expect header.
|
|
336
|
-
|
|
337
|
-
Just send "100 Continue" to client.
|
|
338
|
-
raise HTTPExpectationFailed if value of header is not "100-continue"
|
|
339
|
-
"""
|
|
340
|
-
expect = request.headers.get(hdrs.EXPECT, "")
|
|
341
|
-
if request.version == HttpVersion11:
|
|
342
|
-
if expect.lower() == "100-continue":
|
|
343
|
-
await request.writer.write(b"HTTP/1.1 100 Continue\r\n\r\n")
|
|
344
|
-
# Reset output_size as we haven't started the main body yet.
|
|
345
|
-
request.writer.output_size = 0
|
|
346
|
-
else:
|
|
347
|
-
raise HTTPExpectationFailed(text="Unknown Expect: %s" % expect)
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
class Resource(AbstractResource):
|
|
351
|
-
def __init__(self, *, name: Optional[str] = None) -> None:
|
|
352
|
-
super().__init__(name=name)
|
|
353
|
-
self._routes: Dict[str, ResourceRoute] = {}
|
|
354
|
-
self._any_route: Optional[ResourceRoute] = None
|
|
355
|
-
self._allowed_methods: Set[str] = set()
|
|
356
|
-
|
|
357
|
-
def add_route(
|
|
358
|
-
self,
|
|
359
|
-
method: str,
|
|
360
|
-
handler: Union[Type[AbstractView], Handler],
|
|
361
|
-
*,
|
|
362
|
-
expect_handler: Optional[_ExpectHandler] = None,
|
|
363
|
-
) -> "ResourceRoute":
|
|
364
|
-
if route := self._routes.get(method, self._any_route):
|
|
365
|
-
raise RuntimeError(
|
|
366
|
-
"Added route will never be executed, "
|
|
367
|
-
f"method {route.method} is already "
|
|
368
|
-
"registered"
|
|
369
|
-
)
|
|
370
|
-
|
|
371
|
-
route_obj = ResourceRoute(method, handler, self, expect_handler=expect_handler)
|
|
372
|
-
self.register_route(route_obj)
|
|
373
|
-
return route_obj
|
|
374
|
-
|
|
375
|
-
def register_route(self, route: "ResourceRoute") -> None:
|
|
376
|
-
assert isinstance(
|
|
377
|
-
route, ResourceRoute
|
|
378
|
-
), f"Instance of Route class is required, got {route!r}"
|
|
379
|
-
if route.method == hdrs.METH_ANY:
|
|
380
|
-
self._any_route = route
|
|
381
|
-
self._allowed_methods.add(route.method)
|
|
382
|
-
self._routes[route.method] = route
|
|
383
|
-
|
|
384
|
-
async def resolve(self, request: Request) -> _Resolve:
|
|
385
|
-
if (match_dict := self._match(request.rel_url.path_safe)) is None:
|
|
386
|
-
return None, set()
|
|
387
|
-
if route := self._routes.get(request.method, self._any_route):
|
|
388
|
-
return UrlMappingMatchInfo(match_dict, route), self._allowed_methods
|
|
389
|
-
return None, self._allowed_methods
|
|
390
|
-
|
|
391
|
-
@abc.abstractmethod
|
|
392
|
-
def _match(self, path: str) -> Optional[Dict[str, str]]:
|
|
393
|
-
pass # pragma: no cover
|
|
394
|
-
|
|
395
|
-
def __len__(self) -> int:
|
|
396
|
-
return len(self._routes)
|
|
397
|
-
|
|
398
|
-
def __iter__(self) -> Iterator["ResourceRoute"]:
|
|
399
|
-
return iter(self._routes.values())
|
|
400
|
-
|
|
401
|
-
# TODO: implement all abstract methods
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
class PlainResource(Resource):
|
|
405
|
-
def __init__(self, path: str, *, name: Optional[str] = None) -> None:
|
|
406
|
-
super().__init__(name=name)
|
|
407
|
-
assert not path or path.startswith("/")
|
|
408
|
-
self._path = path
|
|
409
|
-
|
|
410
|
-
@property
|
|
411
|
-
def canonical(self) -> str:
|
|
412
|
-
return self._path
|
|
413
|
-
|
|
414
|
-
def freeze(self) -> None:
|
|
415
|
-
if not self._path:
|
|
416
|
-
self._path = "/"
|
|
417
|
-
|
|
418
|
-
def add_prefix(self, prefix: str) -> None:
|
|
419
|
-
assert prefix.startswith("/")
|
|
420
|
-
assert not prefix.endswith("/")
|
|
421
|
-
assert len(prefix) > 1
|
|
422
|
-
self._path = prefix + self._path
|
|
423
|
-
|
|
424
|
-
def _match(self, path: str) -> Optional[Dict[str, str]]:
|
|
425
|
-
# string comparison is about 10 times faster than regexp matching
|
|
426
|
-
if self._path == path:
|
|
427
|
-
return {}
|
|
428
|
-
return None
|
|
429
|
-
|
|
430
|
-
def raw_match(self, path: str) -> bool:
|
|
431
|
-
return self._path == path
|
|
432
|
-
|
|
433
|
-
def get_info(self) -> _InfoDict:
|
|
434
|
-
return {"path": self._path}
|
|
435
|
-
|
|
436
|
-
def url_for(self) -> URL: # type: ignore[override]
|
|
437
|
-
return URL.build(path=self._path, encoded=True)
|
|
438
|
-
|
|
439
|
-
def __repr__(self) -> str:
|
|
440
|
-
name = "'" + self.name + "' " if self.name is not None else ""
|
|
441
|
-
return f"<PlainResource {name} {self._path}>"
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
class DynamicResource(Resource):
|
|
445
|
-
|
|
446
|
-
DYN = re.compile(r"\{(?P<var>[_a-zA-Z][_a-zA-Z0-9]*)\}")
|
|
447
|
-
DYN_WITH_RE = re.compile(r"\{(?P<var>[_a-zA-Z][_a-zA-Z0-9]*):(?P<re>.+)\}")
|
|
448
|
-
GOOD = r"[^{}/]+"
|
|
449
|
-
|
|
450
|
-
def __init__(self, path: str, *, name: Optional[str] = None) -> None:
|
|
451
|
-
super().__init__(name=name)
|
|
452
|
-
self._orig_path = path
|
|
453
|
-
pattern = ""
|
|
454
|
-
formatter = ""
|
|
455
|
-
for part in ROUTE_RE.split(path):
|
|
456
|
-
match = self.DYN.fullmatch(part)
|
|
457
|
-
if match:
|
|
458
|
-
pattern += "(?P<{}>{})".format(match.group("var"), self.GOOD)
|
|
459
|
-
formatter += "{" + match.group("var") + "}"
|
|
460
|
-
continue
|
|
461
|
-
|
|
462
|
-
match = self.DYN_WITH_RE.fullmatch(part)
|
|
463
|
-
if match:
|
|
464
|
-
pattern += "(?P<{var}>{re})".format(**match.groupdict())
|
|
465
|
-
formatter += "{" + match.group("var") + "}"
|
|
466
|
-
continue
|
|
467
|
-
|
|
468
|
-
if "{" in part or "}" in part:
|
|
469
|
-
raise ValueError(f"Invalid path '{path}'['{part}']")
|
|
470
|
-
|
|
471
|
-
part = _requote_path(part)
|
|
472
|
-
formatter += part
|
|
473
|
-
pattern += re.escape(part)
|
|
474
|
-
|
|
475
|
-
try:
|
|
476
|
-
compiled = re.compile(pattern)
|
|
477
|
-
except re.error as exc:
|
|
478
|
-
raise ValueError(f"Bad pattern '{pattern}': {exc}") from None
|
|
479
|
-
assert compiled.pattern.startswith(PATH_SEP)
|
|
480
|
-
assert formatter.startswith("/")
|
|
481
|
-
self._pattern = compiled
|
|
482
|
-
self._formatter = formatter
|
|
483
|
-
|
|
484
|
-
@property
|
|
485
|
-
def canonical(self) -> str:
|
|
486
|
-
return self._formatter
|
|
487
|
-
|
|
488
|
-
def add_prefix(self, prefix: str) -> None:
|
|
489
|
-
assert prefix.startswith("/")
|
|
490
|
-
assert not prefix.endswith("/")
|
|
491
|
-
assert len(prefix) > 1
|
|
492
|
-
self._pattern = re.compile(re.escape(prefix) + self._pattern.pattern)
|
|
493
|
-
self._formatter = prefix + self._formatter
|
|
494
|
-
|
|
495
|
-
def _match(self, path: str) -> Optional[Dict[str, str]]:
|
|
496
|
-
match = self._pattern.fullmatch(path)
|
|
497
|
-
if match is None:
|
|
498
|
-
return None
|
|
499
|
-
return {
|
|
500
|
-
key: _unquote_path_safe(value) for key, value in match.groupdict().items()
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
def raw_match(self, path: str) -> bool:
|
|
504
|
-
return self._orig_path == path
|
|
505
|
-
|
|
506
|
-
def get_info(self) -> _InfoDict:
|
|
507
|
-
return {"formatter": self._formatter, "pattern": self._pattern}
|
|
508
|
-
|
|
509
|
-
def url_for(self, **parts: str) -> URL:
|
|
510
|
-
url = self._formatter.format_map({k: _quote_path(v) for k, v in parts.items()})
|
|
511
|
-
return URL.build(path=url, encoded=True)
|
|
512
|
-
|
|
513
|
-
def __repr__(self) -> str:
|
|
514
|
-
name = "'" + self.name + "' " if self.name is not None else ""
|
|
515
|
-
return "<DynamicResource {name} {formatter}>".format(
|
|
516
|
-
name=name, formatter=self._formatter
|
|
517
|
-
)
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
class PrefixResource(AbstractResource):
|
|
521
|
-
def __init__(self, prefix: str, *, name: Optional[str] = None) -> None:
|
|
522
|
-
assert not prefix or prefix.startswith("/"), prefix
|
|
523
|
-
assert prefix in ("", "/") or not prefix.endswith("/"), prefix
|
|
524
|
-
super().__init__(name=name)
|
|
525
|
-
self._prefix = _requote_path(prefix)
|
|
526
|
-
self._prefix2 = self._prefix + "/"
|
|
527
|
-
|
|
528
|
-
@property
|
|
529
|
-
def canonical(self) -> str:
|
|
530
|
-
return self._prefix
|
|
531
|
-
|
|
532
|
-
def add_prefix(self, prefix: str) -> None:
|
|
533
|
-
assert prefix.startswith("/")
|
|
534
|
-
assert not prefix.endswith("/")
|
|
535
|
-
assert len(prefix) > 1
|
|
536
|
-
self._prefix = prefix + self._prefix
|
|
537
|
-
self._prefix2 = self._prefix + "/"
|
|
538
|
-
|
|
539
|
-
def raw_match(self, prefix: str) -> bool:
|
|
540
|
-
return False
|
|
541
|
-
|
|
542
|
-
# TODO: impl missing abstract methods
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
class StaticResource(PrefixResource):
|
|
546
|
-
VERSION_KEY = "v"
|
|
547
|
-
|
|
548
|
-
def __init__(
|
|
549
|
-
self,
|
|
550
|
-
prefix: str,
|
|
551
|
-
directory: PathLike,
|
|
552
|
-
*,
|
|
553
|
-
name: Optional[str] = None,
|
|
554
|
-
expect_handler: Optional[_ExpectHandler] = None,
|
|
555
|
-
chunk_size: int = 256 * 1024,
|
|
556
|
-
show_index: bool = False,
|
|
557
|
-
follow_symlinks: bool = False,
|
|
558
|
-
append_version: bool = False,
|
|
559
|
-
) -> None:
|
|
560
|
-
super().__init__(prefix, name=name)
|
|
561
|
-
try:
|
|
562
|
-
directory = Path(directory).expanduser().resolve(strict=True)
|
|
563
|
-
except FileNotFoundError as error:
|
|
564
|
-
raise ValueError(f"'{directory}' does not exist") from error
|
|
565
|
-
if not directory.is_dir():
|
|
566
|
-
raise ValueError(f"'{directory}' is not a directory")
|
|
567
|
-
self._directory = directory
|
|
568
|
-
self._show_index = show_index
|
|
569
|
-
self._chunk_size = chunk_size
|
|
570
|
-
self._follow_symlinks = follow_symlinks
|
|
571
|
-
self._expect_handler = expect_handler
|
|
572
|
-
self._append_version = append_version
|
|
573
|
-
|
|
574
|
-
self._routes = {
|
|
575
|
-
"GET": ResourceRoute(
|
|
576
|
-
"GET", self._handle, self, expect_handler=expect_handler
|
|
577
|
-
),
|
|
578
|
-
"HEAD": ResourceRoute(
|
|
579
|
-
"HEAD", self._handle, self, expect_handler=expect_handler
|
|
580
|
-
),
|
|
581
|
-
}
|
|
582
|
-
self._allowed_methods = set(self._routes)
|
|
583
|
-
|
|
584
|
-
def url_for( # type: ignore[override]
|
|
585
|
-
self,
|
|
586
|
-
*,
|
|
587
|
-
filename: PathLike,
|
|
588
|
-
append_version: Optional[bool] = None,
|
|
589
|
-
) -> URL:
|
|
590
|
-
if append_version is None:
|
|
591
|
-
append_version = self._append_version
|
|
592
|
-
filename = str(filename).lstrip("/")
|
|
593
|
-
|
|
594
|
-
url = URL.build(path=self._prefix, encoded=True)
|
|
595
|
-
# filename is not encoded
|
|
596
|
-
if YARL_VERSION < (1, 6):
|
|
597
|
-
url = url / filename.replace("%", "%25")
|
|
598
|
-
else:
|
|
599
|
-
url = url / filename
|
|
600
|
-
|
|
601
|
-
if append_version:
|
|
602
|
-
unresolved_path = self._directory.joinpath(filename)
|
|
603
|
-
try:
|
|
604
|
-
if self._follow_symlinks:
|
|
605
|
-
normalized_path = Path(os.path.normpath(unresolved_path))
|
|
606
|
-
normalized_path.relative_to(self._directory)
|
|
607
|
-
filepath = normalized_path.resolve()
|
|
608
|
-
else:
|
|
609
|
-
filepath = unresolved_path.resolve()
|
|
610
|
-
filepath.relative_to(self._directory)
|
|
611
|
-
except (ValueError, FileNotFoundError):
|
|
612
|
-
# ValueError for case when path point to symlink
|
|
613
|
-
# with follow_symlinks is False
|
|
614
|
-
return url # relatively safe
|
|
615
|
-
if filepath.is_file():
|
|
616
|
-
# TODO cache file content
|
|
617
|
-
# with file watcher for cache invalidation
|
|
618
|
-
with filepath.open("rb") as f:
|
|
619
|
-
file_bytes = f.read()
|
|
620
|
-
h = self._get_file_hash(file_bytes)
|
|
621
|
-
url = url.with_query({self.VERSION_KEY: h})
|
|
622
|
-
return url
|
|
623
|
-
return url
|
|
624
|
-
|
|
625
|
-
@staticmethod
|
|
626
|
-
def _get_file_hash(byte_array: bytes) -> str:
|
|
627
|
-
m = hashlib.sha256() # todo sha256 can be configurable param
|
|
628
|
-
m.update(byte_array)
|
|
629
|
-
b64 = base64.urlsafe_b64encode(m.digest())
|
|
630
|
-
return b64.decode("ascii")
|
|
631
|
-
|
|
632
|
-
def get_info(self) -> _InfoDict:
|
|
633
|
-
return {
|
|
634
|
-
"directory": self._directory,
|
|
635
|
-
"prefix": self._prefix,
|
|
636
|
-
"routes": self._routes,
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
def set_options_route(self, handler: Handler) -> None:
|
|
640
|
-
if "OPTIONS" in self._routes:
|
|
641
|
-
raise RuntimeError("OPTIONS route was set already")
|
|
642
|
-
self._routes["OPTIONS"] = ResourceRoute(
|
|
643
|
-
"OPTIONS", handler, self, expect_handler=self._expect_handler
|
|
644
|
-
)
|
|
645
|
-
self._allowed_methods.add("OPTIONS")
|
|
646
|
-
|
|
647
|
-
async def resolve(self, request: Request) -> _Resolve:
|
|
648
|
-
path = request.rel_url.path_safe
|
|
649
|
-
method = request.method
|
|
650
|
-
if not path.startswith(self._prefix2) and path != self._prefix:
|
|
651
|
-
return None, set()
|
|
652
|
-
|
|
653
|
-
allowed_methods = self._allowed_methods
|
|
654
|
-
if method not in allowed_methods:
|
|
655
|
-
return None, allowed_methods
|
|
656
|
-
|
|
657
|
-
match_dict = {"filename": _unquote_path_safe(path[len(self._prefix) + 1 :])}
|
|
658
|
-
return (UrlMappingMatchInfo(match_dict, self._routes[method]), allowed_methods)
|
|
659
|
-
|
|
660
|
-
def __len__(self) -> int:
|
|
661
|
-
return len(self._routes)
|
|
662
|
-
|
|
663
|
-
def __iter__(self) -> Iterator[AbstractRoute]:
|
|
664
|
-
return iter(self._routes.values())
|
|
665
|
-
|
|
666
|
-
async def _handle(self, request: Request) -> StreamResponse:
|
|
667
|
-
rel_url = request.match_info["filename"]
|
|
668
|
-
filename = Path(rel_url)
|
|
669
|
-
if filename.anchor:
|
|
670
|
-
# rel_url is an absolute name like
|
|
671
|
-
# /static/\\machine_name\c$ or /static/D:\path
|
|
672
|
-
# where the static dir is totally different
|
|
673
|
-
raise HTTPForbidden()
|
|
674
|
-
|
|
675
|
-
unresolved_path = self._directory.joinpath(filename)
|
|
676
|
-
loop = asyncio.get_running_loop()
|
|
677
|
-
return await loop.run_in_executor(
|
|
678
|
-
None, self._resolve_path_to_response, unresolved_path
|
|
679
|
-
)
|
|
680
|
-
|
|
681
|
-
def _resolve_path_to_response(self, unresolved_path: Path) -> StreamResponse:
|
|
682
|
-
"""Take the unresolved path and query the file system to form a response."""
|
|
683
|
-
# Check for access outside the root directory. For follow symlinks, URI
|
|
684
|
-
# cannot traverse out, but symlinks can. Otherwise, no access outside
|
|
685
|
-
# root is permitted.
|
|
686
|
-
try:
|
|
687
|
-
if self._follow_symlinks:
|
|
688
|
-
normalized_path = Path(os.path.normpath(unresolved_path))
|
|
689
|
-
normalized_path.relative_to(self._directory)
|
|
690
|
-
file_path = normalized_path.resolve()
|
|
691
|
-
else:
|
|
692
|
-
file_path = unresolved_path.resolve()
|
|
693
|
-
file_path.relative_to(self._directory)
|
|
694
|
-
except (ValueError, *CIRCULAR_SYMLINK_ERROR) as error:
|
|
695
|
-
# ValueError is raised for the relative check. Circular symlinks
|
|
696
|
-
# raise here on resolving for python < 3.13.
|
|
697
|
-
raise HTTPNotFound() from error
|
|
698
|
-
|
|
699
|
-
# if path is a directory, return the contents if permitted. Note the
|
|
700
|
-
# directory check will raise if a segment is not readable.
|
|
701
|
-
try:
|
|
702
|
-
if file_path.is_dir():
|
|
703
|
-
if self._show_index:
|
|
704
|
-
return Response(
|
|
705
|
-
text=self._directory_as_html(file_path),
|
|
706
|
-
content_type="text/html",
|
|
707
|
-
)
|
|
708
|
-
else:
|
|
709
|
-
raise HTTPForbidden()
|
|
710
|
-
except PermissionError as error:
|
|
711
|
-
raise HTTPForbidden() from error
|
|
712
|
-
|
|
713
|
-
# Return the file response, which handles all other checks.
|
|
714
|
-
return FileResponse(file_path, chunk_size=self._chunk_size)
|
|
715
|
-
|
|
716
|
-
def _directory_as_html(self, dir_path: Path) -> str:
|
|
717
|
-
"""returns directory's index as html."""
|
|
718
|
-
assert dir_path.is_dir()
|
|
719
|
-
|
|
720
|
-
relative_path_to_dir = dir_path.relative_to(self._directory).as_posix()
|
|
721
|
-
index_of = f"Index of /{html_escape(relative_path_to_dir)}"
|
|
722
|
-
h1 = f"<h1>{index_of}</h1>"
|
|
723
|
-
|
|
724
|
-
index_list = []
|
|
725
|
-
dir_index = dir_path.iterdir()
|
|
726
|
-
for _file in sorted(dir_index):
|
|
727
|
-
# show file url as relative to static path
|
|
728
|
-
rel_path = _file.relative_to(self._directory).as_posix()
|
|
729
|
-
quoted_file_url = _quote_path(f"{self._prefix}/{rel_path}")
|
|
730
|
-
|
|
731
|
-
# if file is a directory, add '/' to the end of the name
|
|
732
|
-
if _file.is_dir():
|
|
733
|
-
file_name = f"{_file.name}/"
|
|
734
|
-
else:
|
|
735
|
-
file_name = _file.name
|
|
736
|
-
|
|
737
|
-
index_list.append(
|
|
738
|
-
f'<li><a href="{quoted_file_url}">{html_escape(file_name)}</a></li>'
|
|
739
|
-
)
|
|
740
|
-
ul = "<ul>\n{}\n</ul>".format("\n".join(index_list))
|
|
741
|
-
body = f"<body>\n{h1}\n{ul}\n</body>"
|
|
742
|
-
|
|
743
|
-
head_str = f"<head>\n<title>{index_of}</title>\n</head>"
|
|
744
|
-
html = f"<html>\n{head_str}\n{body}\n</html>"
|
|
745
|
-
|
|
746
|
-
return html
|
|
747
|
-
|
|
748
|
-
def __repr__(self) -> str:
|
|
749
|
-
name = "'" + self.name + "'" if self.name is not None else ""
|
|
750
|
-
return "<StaticResource {name} {path} -> {directory!r}>".format(
|
|
751
|
-
name=name, path=self._prefix, directory=self._directory
|
|
752
|
-
)
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
class PrefixedSubAppResource(PrefixResource):
|
|
756
|
-
def __init__(self, prefix: str, app: "Application") -> None:
|
|
757
|
-
super().__init__(prefix)
|
|
758
|
-
self._app = app
|
|
759
|
-
self._add_prefix_to_resources(prefix)
|
|
760
|
-
|
|
761
|
-
def add_prefix(self, prefix: str) -> None:
|
|
762
|
-
super().add_prefix(prefix)
|
|
763
|
-
self._add_prefix_to_resources(prefix)
|
|
764
|
-
|
|
765
|
-
def _add_prefix_to_resources(self, prefix: str) -> None:
|
|
766
|
-
router = self._app.router
|
|
767
|
-
for resource in router.resources():
|
|
768
|
-
# Since the canonical path of a resource is about
|
|
769
|
-
# to change, we need to unindex it and then reindex
|
|
770
|
-
router.unindex_resource(resource)
|
|
771
|
-
resource.add_prefix(prefix)
|
|
772
|
-
router.index_resource(resource)
|
|
773
|
-
|
|
774
|
-
def url_for(self, *args: str, **kwargs: str) -> URL:
|
|
775
|
-
raise RuntimeError(".url_for() is not supported by sub-application root")
|
|
776
|
-
|
|
777
|
-
def get_info(self) -> _InfoDict:
|
|
778
|
-
return {"app": self._app, "prefix": self._prefix}
|
|
779
|
-
|
|
780
|
-
async def resolve(self, request: Request) -> _Resolve:
|
|
781
|
-
match_info = await self._app.router.resolve(request)
|
|
782
|
-
match_info.add_app(self._app)
|
|
783
|
-
if isinstance(match_info.http_exception, HTTPMethodNotAllowed):
|
|
784
|
-
methods = match_info.http_exception.allowed_methods
|
|
785
|
-
else:
|
|
786
|
-
methods = set()
|
|
787
|
-
return match_info, methods
|
|
788
|
-
|
|
789
|
-
def __len__(self) -> int:
|
|
790
|
-
return len(self._app.router.routes())
|
|
791
|
-
|
|
792
|
-
def __iter__(self) -> Iterator[AbstractRoute]:
|
|
793
|
-
return iter(self._app.router.routes())
|
|
794
|
-
|
|
795
|
-
def __repr__(self) -> str:
|
|
796
|
-
return "<PrefixedSubAppResource {prefix} -> {app!r}>".format(
|
|
797
|
-
prefix=self._prefix, app=self._app
|
|
798
|
-
)
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
class AbstractRuleMatching(abc.ABC):
|
|
802
|
-
@abc.abstractmethod # pragma: no branch
|
|
803
|
-
async def match(self, request: Request) -> bool:
|
|
804
|
-
"""Return bool if the request satisfies the criteria"""
|
|
805
|
-
|
|
806
|
-
@abc.abstractmethod # pragma: no branch
|
|
807
|
-
def get_info(self) -> _InfoDict:
|
|
808
|
-
"""Return a dict with additional info useful for introspection"""
|
|
809
|
-
|
|
810
|
-
@property
|
|
811
|
-
@abc.abstractmethod # pragma: no branch
|
|
812
|
-
def canonical(self) -> str:
|
|
813
|
-
"""Return a str"""
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
class Domain(AbstractRuleMatching):
|
|
817
|
-
re_part = re.compile(r"(?!-)[a-z\d-]{1,63}(?<!-)")
|
|
818
|
-
|
|
819
|
-
def __init__(self, domain: str) -> None:
|
|
820
|
-
super().__init__()
|
|
821
|
-
self._domain = self.validation(domain)
|
|
822
|
-
|
|
823
|
-
@property
|
|
824
|
-
def canonical(self) -> str:
|
|
825
|
-
return self._domain
|
|
826
|
-
|
|
827
|
-
def validation(self, domain: str) -> str:
|
|
828
|
-
if not isinstance(domain, str):
|
|
829
|
-
raise TypeError("Domain must be str")
|
|
830
|
-
domain = domain.rstrip(".").lower()
|
|
831
|
-
if not domain:
|
|
832
|
-
raise ValueError("Domain cannot be empty")
|
|
833
|
-
elif "://" in domain:
|
|
834
|
-
raise ValueError("Scheme not supported")
|
|
835
|
-
url = URL("http://" + domain)
|
|
836
|
-
assert url.raw_host is not None
|
|
837
|
-
if not all(self.re_part.fullmatch(x) for x in url.raw_host.split(".")):
|
|
838
|
-
raise ValueError("Domain not valid")
|
|
839
|
-
if url.port == 80:
|
|
840
|
-
return url.raw_host
|
|
841
|
-
return f"{url.raw_host}:{url.port}"
|
|
842
|
-
|
|
843
|
-
async def match(self, request: Request) -> bool:
|
|
844
|
-
host = request.headers.get(hdrs.HOST)
|
|
845
|
-
if not host:
|
|
846
|
-
return False
|
|
847
|
-
return self.match_domain(host)
|
|
848
|
-
|
|
849
|
-
def match_domain(self, host: str) -> bool:
|
|
850
|
-
return host.lower() == self._domain
|
|
851
|
-
|
|
852
|
-
def get_info(self) -> _InfoDict:
|
|
853
|
-
return {"domain": self._domain}
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
class MaskDomain(Domain):
|
|
857
|
-
re_part = re.compile(r"(?!-)[a-z\d\*-]{1,63}(?<!-)")
|
|
858
|
-
|
|
859
|
-
def __init__(self, domain: str) -> None:
|
|
860
|
-
super().__init__(domain)
|
|
861
|
-
mask = self._domain.replace(".", r"\.").replace("*", ".*")
|
|
862
|
-
self._mask = re.compile(mask)
|
|
863
|
-
|
|
864
|
-
@property
|
|
865
|
-
def canonical(self) -> str:
|
|
866
|
-
return self._mask.pattern
|
|
867
|
-
|
|
868
|
-
def match_domain(self, host: str) -> bool:
|
|
869
|
-
return self._mask.fullmatch(host) is not None
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
class MatchedSubAppResource(PrefixedSubAppResource):
|
|
873
|
-
def __init__(self, rule: AbstractRuleMatching, app: "Application") -> None:
|
|
874
|
-
AbstractResource.__init__(self)
|
|
875
|
-
self._prefix = ""
|
|
876
|
-
self._app = app
|
|
877
|
-
self._rule = rule
|
|
878
|
-
|
|
879
|
-
@property
|
|
880
|
-
def canonical(self) -> str:
|
|
881
|
-
return self._rule.canonical
|
|
882
|
-
|
|
883
|
-
def get_info(self) -> _InfoDict:
|
|
884
|
-
return {"app": self._app, "rule": self._rule}
|
|
885
|
-
|
|
886
|
-
async def resolve(self, request: Request) -> _Resolve:
|
|
887
|
-
if not await self._rule.match(request):
|
|
888
|
-
return None, set()
|
|
889
|
-
match_info = await self._app.router.resolve(request)
|
|
890
|
-
match_info.add_app(self._app)
|
|
891
|
-
if isinstance(match_info.http_exception, HTTPMethodNotAllowed):
|
|
892
|
-
methods = match_info.http_exception.allowed_methods
|
|
893
|
-
else:
|
|
894
|
-
methods = set()
|
|
895
|
-
return match_info, methods
|
|
896
|
-
|
|
897
|
-
def __repr__(self) -> str:
|
|
898
|
-
return f"<MatchedSubAppResource -> {self._app!r}>"
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
class ResourceRoute(AbstractRoute):
|
|
902
|
-
"""A route with resource"""
|
|
903
|
-
|
|
904
|
-
def __init__(
|
|
905
|
-
self,
|
|
906
|
-
method: str,
|
|
907
|
-
handler: Union[Handler, Type[AbstractView]],
|
|
908
|
-
resource: AbstractResource,
|
|
909
|
-
*,
|
|
910
|
-
expect_handler: Optional[_ExpectHandler] = None,
|
|
911
|
-
) -> None:
|
|
912
|
-
super().__init__(
|
|
913
|
-
method, handler, expect_handler=expect_handler, resource=resource
|
|
914
|
-
)
|
|
915
|
-
|
|
916
|
-
def __repr__(self) -> str:
|
|
917
|
-
return "<ResourceRoute [{method}] {resource} -> {handler!r}".format(
|
|
918
|
-
method=self.method, resource=self._resource, handler=self.handler
|
|
919
|
-
)
|
|
920
|
-
|
|
921
|
-
@property
|
|
922
|
-
def name(self) -> Optional[str]:
|
|
923
|
-
if self._resource is None:
|
|
924
|
-
return None
|
|
925
|
-
return self._resource.name
|
|
926
|
-
|
|
927
|
-
def url_for(self, *args: str, **kwargs: str) -> URL:
|
|
928
|
-
"""Construct url for route with additional params."""
|
|
929
|
-
assert self._resource is not None
|
|
930
|
-
return self._resource.url_for(*args, **kwargs)
|
|
931
|
-
|
|
932
|
-
def get_info(self) -> _InfoDict:
|
|
933
|
-
assert self._resource is not None
|
|
934
|
-
return self._resource.get_info()
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
class SystemRoute(AbstractRoute):
|
|
938
|
-
def __init__(self, http_exception: HTTPException) -> None:
|
|
939
|
-
super().__init__(hdrs.METH_ANY, self._handle)
|
|
940
|
-
self._http_exception = http_exception
|
|
941
|
-
|
|
942
|
-
def url_for(self, *args: str, **kwargs: str) -> URL:
|
|
943
|
-
raise RuntimeError(".url_for() is not allowed for SystemRoute")
|
|
944
|
-
|
|
945
|
-
@property
|
|
946
|
-
def name(self) -> Optional[str]:
|
|
947
|
-
return None
|
|
948
|
-
|
|
949
|
-
def get_info(self) -> _InfoDict:
|
|
950
|
-
return {"http_exception": self._http_exception}
|
|
951
|
-
|
|
952
|
-
async def _handle(self, request: Request) -> StreamResponse:
|
|
953
|
-
raise self._http_exception
|
|
954
|
-
|
|
955
|
-
@property
|
|
956
|
-
def status(self) -> int:
|
|
957
|
-
return self._http_exception.status
|
|
958
|
-
|
|
959
|
-
@property
|
|
960
|
-
def reason(self) -> str:
|
|
961
|
-
return self._http_exception.reason
|
|
962
|
-
|
|
963
|
-
def __repr__(self) -> str:
|
|
964
|
-
return "<SystemRoute {self.status}: {self.reason}>".format(self=self)
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
class View(AbstractView):
|
|
968
|
-
async def _iter(self) -> StreamResponse:
|
|
969
|
-
if self.request.method not in hdrs.METH_ALL:
|
|
970
|
-
self._raise_allowed_methods()
|
|
971
|
-
method: Optional[Callable[[], Awaitable[StreamResponse]]]
|
|
972
|
-
method = getattr(self, self.request.method.lower(), None)
|
|
973
|
-
if method is None:
|
|
974
|
-
self._raise_allowed_methods()
|
|
975
|
-
ret = await method()
|
|
976
|
-
assert isinstance(ret, StreamResponse)
|
|
977
|
-
return ret
|
|
978
|
-
|
|
979
|
-
def __await__(self) -> Generator[Any, None, StreamResponse]:
|
|
980
|
-
return self._iter().__await__()
|
|
981
|
-
|
|
982
|
-
def _raise_allowed_methods(self) -> NoReturn:
|
|
983
|
-
allowed_methods = {m for m in hdrs.METH_ALL if hasattr(self, m.lower())}
|
|
984
|
-
raise HTTPMethodNotAllowed(self.request.method, allowed_methods)
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
class ResourcesView(Sized, Iterable[AbstractResource], Container[AbstractResource]):
|
|
988
|
-
def __init__(self, resources: List[AbstractResource]) -> None:
|
|
989
|
-
self._resources = resources
|
|
990
|
-
|
|
991
|
-
def __len__(self) -> int:
|
|
992
|
-
return len(self._resources)
|
|
993
|
-
|
|
994
|
-
def __iter__(self) -> Iterator[AbstractResource]:
|
|
995
|
-
yield from self._resources
|
|
996
|
-
|
|
997
|
-
def __contains__(self, resource: object) -> bool:
|
|
998
|
-
return resource in self._resources
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
class RoutesView(Sized, Iterable[AbstractRoute], Container[AbstractRoute]):
|
|
1002
|
-
def __init__(self, resources: List[AbstractResource]):
|
|
1003
|
-
self._routes: List[AbstractRoute] = []
|
|
1004
|
-
for resource in resources:
|
|
1005
|
-
for route in resource:
|
|
1006
|
-
self._routes.append(route)
|
|
1007
|
-
|
|
1008
|
-
def __len__(self) -> int:
|
|
1009
|
-
return len(self._routes)
|
|
1010
|
-
|
|
1011
|
-
def __iter__(self) -> Iterator[AbstractRoute]:
|
|
1012
|
-
yield from self._routes
|
|
1013
|
-
|
|
1014
|
-
def __contains__(self, route: object) -> bool:
|
|
1015
|
-
return route in self._routes
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
class UrlDispatcher(AbstractRouter, Mapping[str, AbstractResource]):
|
|
1019
|
-
|
|
1020
|
-
NAME_SPLIT_RE = re.compile(r"[.:-]")
|
|
1021
|
-
|
|
1022
|
-
def __init__(self) -> None:
|
|
1023
|
-
super().__init__()
|
|
1024
|
-
self._resources: List[AbstractResource] = []
|
|
1025
|
-
self._named_resources: Dict[str, AbstractResource] = {}
|
|
1026
|
-
self._resource_index: dict[str, list[AbstractResource]] = {}
|
|
1027
|
-
self._matched_sub_app_resources: List[MatchedSubAppResource] = []
|
|
1028
|
-
|
|
1029
|
-
async def resolve(self, request: Request) -> UrlMappingMatchInfo:
|
|
1030
|
-
resource_index = self._resource_index
|
|
1031
|
-
allowed_methods: Set[str] = set()
|
|
1032
|
-
|
|
1033
|
-
# Walk the url parts looking for candidates. We walk the url backwards
|
|
1034
|
-
# to ensure the most explicit match is found first. If there are multiple
|
|
1035
|
-
# candidates for a given url part because there are multiple resources
|
|
1036
|
-
# registered for the same canonical path, we resolve them in a linear
|
|
1037
|
-
# fashion to ensure registration order is respected.
|
|
1038
|
-
url_part = request.rel_url.path_safe
|
|
1039
|
-
while url_part:
|
|
1040
|
-
for candidate in resource_index.get(url_part, ()):
|
|
1041
|
-
match_dict, allowed = await candidate.resolve(request)
|
|
1042
|
-
if match_dict is not None:
|
|
1043
|
-
return match_dict
|
|
1044
|
-
else:
|
|
1045
|
-
allowed_methods |= allowed
|
|
1046
|
-
if url_part == "/":
|
|
1047
|
-
break
|
|
1048
|
-
url_part = url_part.rpartition("/")[0] or "/"
|
|
1049
|
-
|
|
1050
|
-
#
|
|
1051
|
-
# We didn't find any candidates, so we'll try the matched sub-app
|
|
1052
|
-
# resources which we have to walk in a linear fashion because they
|
|
1053
|
-
# have regex/wildcard match rules and we cannot index them.
|
|
1054
|
-
#
|
|
1055
|
-
# For most cases we do not expect there to be many of these since
|
|
1056
|
-
# currently they are only added by `add_domain`
|
|
1057
|
-
#
|
|
1058
|
-
for resource in self._matched_sub_app_resources:
|
|
1059
|
-
match_dict, allowed = await resource.resolve(request)
|
|
1060
|
-
if match_dict is not None:
|
|
1061
|
-
return match_dict
|
|
1062
|
-
else:
|
|
1063
|
-
allowed_methods |= allowed
|
|
1064
|
-
|
|
1065
|
-
if allowed_methods:
|
|
1066
|
-
return MatchInfoError(HTTPMethodNotAllowed(request.method, allowed_methods))
|
|
1067
|
-
|
|
1068
|
-
return MatchInfoError(HTTPNotFound())
|
|
1069
|
-
|
|
1070
|
-
def __iter__(self) -> Iterator[str]:
|
|
1071
|
-
return iter(self._named_resources)
|
|
1072
|
-
|
|
1073
|
-
def __len__(self) -> int:
|
|
1074
|
-
return len(self._named_resources)
|
|
1075
|
-
|
|
1076
|
-
def __contains__(self, resource: object) -> bool:
|
|
1077
|
-
return resource in self._named_resources
|
|
1078
|
-
|
|
1079
|
-
def __getitem__(self, name: str) -> AbstractResource:
|
|
1080
|
-
return self._named_resources[name]
|
|
1081
|
-
|
|
1082
|
-
def resources(self) -> ResourcesView:
|
|
1083
|
-
return ResourcesView(self._resources)
|
|
1084
|
-
|
|
1085
|
-
def routes(self) -> RoutesView:
|
|
1086
|
-
return RoutesView(self._resources)
|
|
1087
|
-
|
|
1088
|
-
def named_resources(self) -> Mapping[str, AbstractResource]:
|
|
1089
|
-
return MappingProxyType(self._named_resources)
|
|
1090
|
-
|
|
1091
|
-
def register_resource(self, resource: AbstractResource) -> None:
|
|
1092
|
-
assert isinstance(
|
|
1093
|
-
resource, AbstractResource
|
|
1094
|
-
), f"Instance of AbstractResource class is required, got {resource!r}"
|
|
1095
|
-
if self.frozen:
|
|
1096
|
-
raise RuntimeError("Cannot register a resource into frozen router.")
|
|
1097
|
-
|
|
1098
|
-
name = resource.name
|
|
1099
|
-
|
|
1100
|
-
if name is not None:
|
|
1101
|
-
parts = self.NAME_SPLIT_RE.split(name)
|
|
1102
|
-
for part in parts:
|
|
1103
|
-
if keyword.iskeyword(part):
|
|
1104
|
-
raise ValueError(
|
|
1105
|
-
f"Incorrect route name {name!r}, "
|
|
1106
|
-
"python keywords cannot be used "
|
|
1107
|
-
"for route name"
|
|
1108
|
-
)
|
|
1109
|
-
if not part.isidentifier():
|
|
1110
|
-
raise ValueError(
|
|
1111
|
-
"Incorrect route name {!r}, "
|
|
1112
|
-
"the name should be a sequence of "
|
|
1113
|
-
"python identifiers separated "
|
|
1114
|
-
"by dash, dot or column".format(name)
|
|
1115
|
-
)
|
|
1116
|
-
if name in self._named_resources:
|
|
1117
|
-
raise ValueError(
|
|
1118
|
-
"Duplicate {!r}, "
|
|
1119
|
-
"already handled by {!r}".format(name, self._named_resources[name])
|
|
1120
|
-
)
|
|
1121
|
-
self._named_resources[name] = resource
|
|
1122
|
-
self._resources.append(resource)
|
|
1123
|
-
|
|
1124
|
-
if isinstance(resource, MatchedSubAppResource):
|
|
1125
|
-
# We cannot index match sub-app resources because they have match rules
|
|
1126
|
-
self._matched_sub_app_resources.append(resource)
|
|
1127
|
-
else:
|
|
1128
|
-
self.index_resource(resource)
|
|
1129
|
-
|
|
1130
|
-
def _get_resource_index_key(self, resource: AbstractResource) -> str:
|
|
1131
|
-
"""Return a key to index the resource in the resource index."""
|
|
1132
|
-
if "{" in (index_key := resource.canonical):
|
|
1133
|
-
# strip at the first { to allow for variables, and than
|
|
1134
|
-
# rpartition at / to allow for variable parts in the path
|
|
1135
|
-
# For example if the canonical path is `/core/locations{tail:.*}`
|
|
1136
|
-
# the index key will be `/core` since index is based on the
|
|
1137
|
-
# url parts split by `/`
|
|
1138
|
-
index_key = index_key.partition("{")[0].rpartition("/")[0]
|
|
1139
|
-
return index_key.rstrip("/") or "/"
|
|
1140
|
-
|
|
1141
|
-
def index_resource(self, resource: AbstractResource) -> None:
|
|
1142
|
-
"""Add a resource to the resource index."""
|
|
1143
|
-
resource_key = self._get_resource_index_key(resource)
|
|
1144
|
-
# There may be multiple resources for a canonical path
|
|
1145
|
-
# so we keep them in a list to ensure that registration
|
|
1146
|
-
# order is respected.
|
|
1147
|
-
self._resource_index.setdefault(resource_key, []).append(resource)
|
|
1148
|
-
|
|
1149
|
-
def unindex_resource(self, resource: AbstractResource) -> None:
|
|
1150
|
-
"""Remove a resource from the resource index."""
|
|
1151
|
-
resource_key = self._get_resource_index_key(resource)
|
|
1152
|
-
self._resource_index[resource_key].remove(resource)
|
|
1153
|
-
|
|
1154
|
-
def add_resource(self, path: str, *, name: Optional[str] = None) -> Resource:
|
|
1155
|
-
if path and not path.startswith("/"):
|
|
1156
|
-
raise ValueError("path should be started with / or be empty")
|
|
1157
|
-
# Reuse last added resource if path and name are the same
|
|
1158
|
-
if self._resources:
|
|
1159
|
-
resource = self._resources[-1]
|
|
1160
|
-
if resource.name == name and resource.raw_match(path):
|
|
1161
|
-
return cast(Resource, resource)
|
|
1162
|
-
if not ("{" in path or "}" in path or ROUTE_RE.search(path)):
|
|
1163
|
-
resource = PlainResource(path, name=name)
|
|
1164
|
-
self.register_resource(resource)
|
|
1165
|
-
return resource
|
|
1166
|
-
resource = DynamicResource(path, name=name)
|
|
1167
|
-
self.register_resource(resource)
|
|
1168
|
-
return resource
|
|
1169
|
-
|
|
1170
|
-
def add_route(
|
|
1171
|
-
self,
|
|
1172
|
-
method: str,
|
|
1173
|
-
path: str,
|
|
1174
|
-
handler: Union[Handler, Type[AbstractView]],
|
|
1175
|
-
*,
|
|
1176
|
-
name: Optional[str] = None,
|
|
1177
|
-
expect_handler: Optional[_ExpectHandler] = None,
|
|
1178
|
-
) -> AbstractRoute:
|
|
1179
|
-
resource = self.add_resource(path, name=name)
|
|
1180
|
-
return resource.add_route(method, handler, expect_handler=expect_handler)
|
|
1181
|
-
|
|
1182
|
-
def add_static(
|
|
1183
|
-
self,
|
|
1184
|
-
prefix: str,
|
|
1185
|
-
path: PathLike,
|
|
1186
|
-
*,
|
|
1187
|
-
name: Optional[str] = None,
|
|
1188
|
-
expect_handler: Optional[_ExpectHandler] = None,
|
|
1189
|
-
chunk_size: int = 256 * 1024,
|
|
1190
|
-
show_index: bool = False,
|
|
1191
|
-
follow_symlinks: bool = False,
|
|
1192
|
-
append_version: bool = False,
|
|
1193
|
-
) -> AbstractResource:
|
|
1194
|
-
"""Add static files view.
|
|
1195
|
-
|
|
1196
|
-
prefix - url prefix
|
|
1197
|
-
path - folder with files
|
|
1198
|
-
|
|
1199
|
-
"""
|
|
1200
|
-
assert prefix.startswith("/")
|
|
1201
|
-
if prefix.endswith("/"):
|
|
1202
|
-
prefix = prefix[:-1]
|
|
1203
|
-
resource = StaticResource(
|
|
1204
|
-
prefix,
|
|
1205
|
-
path,
|
|
1206
|
-
name=name,
|
|
1207
|
-
expect_handler=expect_handler,
|
|
1208
|
-
chunk_size=chunk_size,
|
|
1209
|
-
show_index=show_index,
|
|
1210
|
-
follow_symlinks=follow_symlinks,
|
|
1211
|
-
append_version=append_version,
|
|
1212
|
-
)
|
|
1213
|
-
self.register_resource(resource)
|
|
1214
|
-
return resource
|
|
1215
|
-
|
|
1216
|
-
def add_head(self, path: str, handler: Handler, **kwargs: Any) -> AbstractRoute:
|
|
1217
|
-
"""Shortcut for add_route with method HEAD."""
|
|
1218
|
-
return self.add_route(hdrs.METH_HEAD, path, handler, **kwargs)
|
|
1219
|
-
|
|
1220
|
-
def add_options(self, path: str, handler: Handler, **kwargs: Any) -> AbstractRoute:
|
|
1221
|
-
"""Shortcut for add_route with method OPTIONS."""
|
|
1222
|
-
return self.add_route(hdrs.METH_OPTIONS, path, handler, **kwargs)
|
|
1223
|
-
|
|
1224
|
-
def add_get(
|
|
1225
|
-
self,
|
|
1226
|
-
path: str,
|
|
1227
|
-
handler: Handler,
|
|
1228
|
-
*,
|
|
1229
|
-
name: Optional[str] = None,
|
|
1230
|
-
allow_head: bool = True,
|
|
1231
|
-
**kwargs: Any,
|
|
1232
|
-
) -> AbstractRoute:
|
|
1233
|
-
"""Shortcut for add_route with method GET.
|
|
1234
|
-
|
|
1235
|
-
If allow_head is true, another
|
|
1236
|
-
route is added allowing head requests to the same endpoint.
|
|
1237
|
-
"""
|
|
1238
|
-
resource = self.add_resource(path, name=name)
|
|
1239
|
-
if allow_head:
|
|
1240
|
-
resource.add_route(hdrs.METH_HEAD, handler, **kwargs)
|
|
1241
|
-
return resource.add_route(hdrs.METH_GET, handler, **kwargs)
|
|
1242
|
-
|
|
1243
|
-
def add_post(self, path: str, handler: Handler, **kwargs: Any) -> AbstractRoute:
|
|
1244
|
-
"""Shortcut for add_route with method POST."""
|
|
1245
|
-
return self.add_route(hdrs.METH_POST, path, handler, **kwargs)
|
|
1246
|
-
|
|
1247
|
-
def add_put(self, path: str, handler: Handler, **kwargs: Any) -> AbstractRoute:
|
|
1248
|
-
"""Shortcut for add_route with method PUT."""
|
|
1249
|
-
return self.add_route(hdrs.METH_PUT, path, handler, **kwargs)
|
|
1250
|
-
|
|
1251
|
-
def add_patch(self, path: str, handler: Handler, **kwargs: Any) -> AbstractRoute:
|
|
1252
|
-
"""Shortcut for add_route with method PATCH."""
|
|
1253
|
-
return self.add_route(hdrs.METH_PATCH, path, handler, **kwargs)
|
|
1254
|
-
|
|
1255
|
-
def add_delete(self, path: str, handler: Handler, **kwargs: Any) -> AbstractRoute:
|
|
1256
|
-
"""Shortcut for add_route with method DELETE."""
|
|
1257
|
-
return self.add_route(hdrs.METH_DELETE, path, handler, **kwargs)
|
|
1258
|
-
|
|
1259
|
-
def add_view(
|
|
1260
|
-
self, path: str, handler: Type[AbstractView], **kwargs: Any
|
|
1261
|
-
) -> AbstractRoute:
|
|
1262
|
-
"""Shortcut for add_route with ANY methods for a class-based view."""
|
|
1263
|
-
return self.add_route(hdrs.METH_ANY, path, handler, **kwargs)
|
|
1264
|
-
|
|
1265
|
-
def freeze(self) -> None:
|
|
1266
|
-
super().freeze()
|
|
1267
|
-
for resource in self._resources:
|
|
1268
|
-
resource.freeze()
|
|
1269
|
-
|
|
1270
|
-
def add_routes(self, routes: Iterable[AbstractRouteDef]) -> List[AbstractRoute]:
|
|
1271
|
-
"""Append routes to route table.
|
|
1272
|
-
|
|
1273
|
-
Parameter should be a sequence of RouteDef objects.
|
|
1274
|
-
|
|
1275
|
-
Returns a list of registered AbstractRoute instances.
|
|
1276
|
-
"""
|
|
1277
|
-
registered_routes = []
|
|
1278
|
-
for route_def in routes:
|
|
1279
|
-
registered_routes.extend(route_def.register(self))
|
|
1280
|
-
return registered_routes
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
def _quote_path(value: str) -> str:
|
|
1284
|
-
if YARL_VERSION < (1, 6):
|
|
1285
|
-
value = value.replace("%", "%25")
|
|
1286
|
-
return URL.build(path=value, encoded=False).raw_path
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
def _unquote_path_safe(value: str) -> str:
|
|
1290
|
-
if "%" not in value:
|
|
1291
|
-
return value
|
|
1292
|
-
return value.replace("%2F", "/").replace("%25", "%")
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
def _requote_path(value: str) -> str:
|
|
1296
|
-
# Quote non-ascii characters and other characters which must be quoted,
|
|
1297
|
-
# but preserve existing %-sequences.
|
|
1298
|
-
result = _quote_path(value)
|
|
1299
|
-
if "%" in value:
|
|
1300
|
-
result = result.replace("%25", "%")
|
|
1301
|
-
return result
|