cmpuiforoath 0.0.1-security → 1.1.4
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.
Potentially problematic release.
This version of cmpuiforoath might be problematic. Click here for more details.
- package/example.py +3 -0
- package/index.js +81 -0
- package/package.json +35 -3
- package/testenv/bin/Activate.ps1 +247 -0
- package/testenv/bin/activate +71 -0
- package/testenv/bin/activate.csh +27 -0
- package/testenv/bin/activate.fish +69 -0
- package/testenv/bin/pip +8 -0
- package/testenv/bin/pip3 +8 -0
- package/testenv/bin/pip3.12 +8 -0
- package/testenv/lib/python3.12/site-packages/pip/__init__.py +13 -0
- package/testenv/lib/python3.12/site-packages/pip/__main__.py +24 -0
- package/testenv/lib/python3.12/site-packages/pip/__pip-runner__.py +50 -0
- package/testenv/lib/python3.12/site-packages/pip/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/__pycache__/__main__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/__pycache__/__pip-runner__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/__init__.py +18 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/__pycache__/build_env.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/__pycache__/cache.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/__pycache__/configuration.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/__pycache__/main.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/__pycache__/pyproject.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/__pycache__/self_outdated_check.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/__pycache__/wheel_builder.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/build_env.py +323 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cache.py +290 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/__init__.py +4 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/autocompletion.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/base_command.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/cmdoptions.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/command_context.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/index_command.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/main.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/main_parser.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/parser.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/progress_bars.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/req_command.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/spinners.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/__pycache__/status_codes.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/autocompletion.py +176 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/base_command.py +240 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/cmdoptions.py +1075 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/command_context.py +27 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/index_command.py +171 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/main.py +80 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/main_parser.py +134 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/parser.py +294 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/progress_bars.py +94 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/req_command.py +329 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/spinners.py +159 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/cli/status_codes.py +6 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__init__.py +132 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/cache.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/check.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/completion.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/configuration.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/debug.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/download.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/freeze.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/hash.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/help.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/index.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/inspect.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/install.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/list.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/search.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/show.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/uninstall.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/wheel.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/cache.py +228 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/check.py +67 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/completion.py +130 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/configuration.py +280 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/debug.py +201 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/download.py +146 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/freeze.py +110 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/hash.py +59 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/help.py +41 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/index.py +139 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/inspect.py +92 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/install.py +784 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/list.py +377 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/search.py +172 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/show.py +224 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/uninstall.py +114 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/commands/wheel.py +182 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/configuration.py +383 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/distributions/__init__.py +21 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/distributions/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/distributions/__pycache__/base.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/distributions/__pycache__/installed.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/distributions/__pycache__/sdist.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/distributions/__pycache__/wheel.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/distributions/base.py +53 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/distributions/installed.py +29 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/distributions/sdist.py +158 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/distributions/wheel.py +42 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/exceptions.py +809 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/index/__init__.py +2 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/index/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/index/__pycache__/collector.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/index/__pycache__/package_finder.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/index/__pycache__/sources.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/index/collector.py +494 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/index/package_finder.py +1029 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/index/sources.py +284 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/locations/__init__.py +456 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/locations/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/locations/__pycache__/_distutils.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/locations/__pycache__/_sysconfig.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/locations/__pycache__/base.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/locations/_distutils.py +172 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/locations/_sysconfig.py +214 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/locations/base.py +81 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/main.py +12 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/__init__.py +128 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/__pycache__/_json.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/__pycache__/base.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/__pycache__/pkg_resources.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/_json.py +86 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/base.py +688 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/importlib/__init__.py +6 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/importlib/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/importlib/__pycache__/_compat.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/importlib/__pycache__/_dists.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/importlib/__pycache__/_envs.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_compat.py +85 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_dists.py +227 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_envs.py +189 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/metadata/pkg_resources.py +301 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/__init__.py +2 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/__pycache__/candidate.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/__pycache__/direct_url.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/__pycache__/format_control.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/__pycache__/index.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/__pycache__/installation_report.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/__pycache__/link.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/__pycache__/scheme.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/__pycache__/search_scope.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/__pycache__/selection_prefs.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/__pycache__/target_python.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/__pycache__/wheel.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/candidate.py +25 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/direct_url.py +224 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/format_control.py +78 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/index.py +28 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/installation_report.py +56 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/link.py +604 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/scheme.py +25 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/search_scope.py +127 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/selection_prefs.py +53 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/target_python.py +121 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/models/wheel.py +118 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/__init__.py +2 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/__pycache__/auth.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/__pycache__/cache.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/__pycache__/download.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/__pycache__/lazy_wheel.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/__pycache__/session.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/__pycache__/utils.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/__pycache__/xmlrpc.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/auth.py +566 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/cache.py +118 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/download.py +187 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/lazy_wheel.py +210 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/session.py +523 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/utils.py +98 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/network/xmlrpc.py +62 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/__init__.py +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/__pycache__/check.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/__pycache__/freeze.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/__pycache__/prepare.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/__init__.py +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/build_tracker.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/metadata.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/metadata_editable.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/metadata_legacy.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/wheel.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/wheel_editable.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/__pycache__/wheel_legacy.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/build_tracker.py +138 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/metadata.py +39 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/metadata_editable.py +42 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/metadata_legacy.py +74 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/wheel.py +37 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/wheel_editable.py +46 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/build/wheel_legacy.py +102 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/check.py +181 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/freeze.py +256 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/install/__init__.py +2 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/install/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/install/__pycache__/editable_legacy.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/install/__pycache__/wheel.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/install/editable_legacy.py +47 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py +741 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/operations/prepare.py +732 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/pyproject.py +185 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/req/__init__.py +90 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/req/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/req/__pycache__/constructors.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/req/__pycache__/req_file.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/req/__pycache__/req_install.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/req/__pycache__/req_set.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/req/__pycache__/req_uninstall.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/req/constructors.py +560 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/req/req_file.py +623 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/req/req_install.py +934 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/req/req_set.py +82 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/req/req_uninstall.py +633 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/__init__.py +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/__pycache__/base.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/base.py +20 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/legacy/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/legacy/__pycache__/resolver.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/legacy/resolver.py +597 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/base.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/candidates.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/factory.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/found_candidates.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/provider.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/reporter.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/requirements.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__/resolver.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/base.py +139 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py +574 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py +823 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +174 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/provider.py +258 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/reporter.py +81 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/requirements.py +245 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py +317 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/self_outdated_check.py +252 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__init__.py +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/_jaraco_text.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/_log.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/appdirs.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/compat.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/compatibility_tags.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/datetime.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/deprecation.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/direct_url_helpers.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/egg_link.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/entrypoints.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/filesystem.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/filetypes.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/glibc.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/hashes.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/logging.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/misc.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/packaging.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/retry.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/setuptools_build.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/subprocess.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/temp_dir.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/unpacking.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/urls.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/virtualenv.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/wheel.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/_jaraco_text.py +109 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/_log.py +38 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/appdirs.py +52 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/compat.py +79 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/compatibility_tags.py +188 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/datetime.py +11 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/deprecation.py +124 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/direct_url_helpers.py +87 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/egg_link.py +80 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/entrypoints.py +84 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/filesystem.py +149 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/filetypes.py +27 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/glibc.py +101 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/hashes.py +147 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/logging.py +354 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/misc.py +773 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/packaging.py +58 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/retry.py +42 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/setuptools_build.py +146 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/subprocess.py +245 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/temp_dir.py +296 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/unpacking.py +337 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/urls.py +55 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/virtualenv.py +104 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/utils/wheel.py +134 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/vcs/__init__.py +15 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/vcs/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/vcs/__pycache__/bazaar.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/vcs/__pycache__/git.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/vcs/__pycache__/mercurial.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/vcs/__pycache__/subversion.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/vcs/__pycache__/versioncontrol.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/vcs/bazaar.py +112 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/vcs/git.py +527 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/vcs/mercurial.py +163 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/vcs/subversion.py +324 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/vcs/versioncontrol.py +688 -0
- package/testenv/lib/python3.12/site-packages/pip/_internal/wheel_builder.py +354 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/__init__.py +116 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/__pycache__/typing_extensions.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__init__.py +29 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/_cmd.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/adapter.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/cache.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/controller.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/filewrapper.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/heuristics.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/serialize.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/wrapper.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/_cmd.py +70 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/adapter.py +161 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/cache.py +75 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +8 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/file_cache.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/redis_cache.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +182 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +48 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/controller.py +500 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/filewrapper.py +119 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/heuristics.py +157 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/py.typed +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/serialize.py +146 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/cachecontrol/wrapper.py +43 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/certifi/__init__.py +4 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/certifi/__main__.py +12 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/certifi/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/certifi/__pycache__/__main__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/certifi/__pycache__/core.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/certifi/cacert.pem +4929 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/certifi/core.py +125 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/certifi/py.typed +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/__init__.py +33 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/compat.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/database.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/index.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/locators.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/manifest.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/markers.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/metadata.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/resources.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/scripts.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/util.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/version.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/__pycache__/wheel.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/compat.py +1137 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/database.py +1329 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/index.py +508 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/locators.py +1295 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/manifest.py +384 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/markers.py +162 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/metadata.py +1031 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/resources.py +358 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/scripts.py +447 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/util.py +1984 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/version.py +750 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distlib/wheel.py +1100 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distro/__init__.py +54 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distro/__main__.py +4 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distro/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distro/__pycache__/__main__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distro/__pycache__/distro.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distro/distro.py +1403 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/distro/py.typed +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/__init__.py +45 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/codec.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/compat.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/core.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/idnadata.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/intranges.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/package_data.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/__pycache__/uts46data.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/codec.py +122 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/compat.py +15 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/core.py +437 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/idnadata.py +4243 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/intranges.py +57 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/package_data.py +1 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/py.typed +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/idna/uts46data.py +8681 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/msgpack/__init__.py +55 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/msgpack/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/msgpack/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/msgpack/__pycache__/ext.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/msgpack/__pycache__/fallback.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/msgpack/exceptions.py +48 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/msgpack/ext.py +170 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/msgpack/fallback.py +929 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__init__.py +15 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/_elffile.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/_manylinux.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/_musllinux.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/_parser.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/_structures.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/_tokenizer.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/markers.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/metadata.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/requirements.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/specifiers.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/tags.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/utils.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/version.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/_elffile.py +110 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/_manylinux.py +263 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/_musllinux.py +85 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/_parser.py +354 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/_structures.py +61 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/_tokenizer.py +194 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/licenses/__init__.py +145 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/licenses/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/licenses/__pycache__/_spdx.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/licenses/_spdx.py +759 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/markers.py +331 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/metadata.py +863 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/py.typed +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/requirements.py +91 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/specifiers.py +1020 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/tags.py +617 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/utils.py +163 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/packaging/version.py +582 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pkg_resources/__init__.py +3676 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pkg_resources/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/__init__.py +631 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/__main__.py +55 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/__main__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/android.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/api.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/macos.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/unix.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/version.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/windows.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/android.py +249 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/api.py +298 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/macos.py +144 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/py.typed +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/unix.py +269 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/version.py +16 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/platformdirs/windows.py +272 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__init__.py +82 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__main__.py +17 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/__main__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/cmdline.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/console.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/filter.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/formatter.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/lexer.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/modeline.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/plugin.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/regexopt.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/scanner.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/sphinxext.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/style.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/token.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/unistring.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/__pycache__/util.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/cmdline.py +668 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/console.py +70 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/filter.py +70 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/filters/__init__.py +940 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/filters/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatter.py +129 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__init__.py +157 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/_mapping.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/bbcode.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/groff.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/html.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/img.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/irc.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/latex.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/other.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/pangomarkup.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/rtf.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/svg.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/terminal.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/__pycache__/terminal256.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/_mapping.py +23 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/bbcode.py +108 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/groff.py +170 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/html.py +987 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/img.py +685 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/irc.py +154 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/latex.py +518 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/other.py +160 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/pangomarkup.py +83 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/rtf.py +349 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/svg.py +185 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/terminal.py +127 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/formatters/terminal256.py +338 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/lexer.py +963 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/__init__.py +362 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/__pycache__/_mapping.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/__pycache__/python.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/_mapping.py +589 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/python.py +1198 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/modeline.py +43 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/plugin.py +72 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/regexopt.py +91 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/scanner.py +104 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/sphinxext.py +247 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/style.py +203 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/styles/__init__.py +61 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/styles/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/styles/__pycache__/_mapping.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/styles/_mapping.py +54 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/token.py +214 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/unistring.py +153 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pygments/util.py +324 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/__init__.py +31 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/__pycache__/_impl.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_impl.py +410 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/__init__.py +21 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/__pycache__/_in_process.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py +389 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/py.typed +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__init__.py +179 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/__version__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/_internal_utils.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/adapters.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/api.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/auth.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/certs.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/compat.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/cookies.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/help.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/hooks.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/models.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/packages.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/sessions.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/status_codes.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/structures.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__pycache__/utils.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/__version__.py +14 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/_internal_utils.py +50 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/adapters.py +719 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/api.py +157 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/auth.py +314 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/certs.py +17 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/compat.py +78 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/cookies.py +561 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/exceptions.py +151 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/help.py +127 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/hooks.py +33 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/models.py +1037 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/packages.py +25 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/sessions.py +831 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/status_codes.py +128 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/structures.py +99 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/requests/utils.py +1096 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/__init__.py +26 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/__pycache__/providers.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/__pycache__/reporters.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/__pycache__/resolvers.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/__pycache__/structs.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/compat/__init__.py +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/compat/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/compat/__pycache__/collections_abc.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/compat/collections_abc.py +6 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/providers.py +133 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/py.typed +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/reporters.py +43 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py +547 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/resolvelib/structs.py +170 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__init__.py +177 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__main__.py +273 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/__main__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_cell_widths.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_emoji_codes.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_emoji_replace.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_export_format.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_extension.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_fileno.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_inspect.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_log_render.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_loop.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_null_file.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_palettes.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_pick.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_ratio.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_spinners.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_stack.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_timer.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_win32_console.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_windows.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_windows_renderer.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/_wrap.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/abc.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/align.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/ansi.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/bar.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/box.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/cells.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/color.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/color_triplet.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/columns.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/console.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/constrain.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/containers.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/control.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/default_styles.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/diagnose.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/emoji.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/errors.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/file_proxy.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/filesize.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/highlighter.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/json.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/jupyter.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/layout.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/live.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/live_render.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/logging.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/markup.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/measure.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/padding.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/pager.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/palette.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/panel.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/pretty.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/progress.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/progress_bar.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/prompt.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/protocol.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/region.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/repr.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/rule.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/scope.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/screen.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/segment.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/spinner.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/status.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/style.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/styled.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/syntax.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/table.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/terminal_theme.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/text.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/theme.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/themes.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/traceback.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/__pycache__/tree.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_cell_widths.py +454 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_emoji_codes.py +3610 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_emoji_replace.py +32 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_export_format.py +76 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_extension.py +10 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_fileno.py +24 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_inspect.py +268 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_log_render.py +94 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_loop.py +43 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_null_file.py +69 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_palettes.py +309 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_pick.py +17 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_ratio.py +159 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_spinners.py +482 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_stack.py +16 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_timer.py +19 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_win32_console.py +661 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_windows.py +71 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_windows_renderer.py +56 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/_wrap.py +93 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/abc.py +33 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/align.py +312 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/ansi.py +241 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/bar.py +93 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/box.py +480 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/cells.py +174 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/color.py +621 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/color_triplet.py +38 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/columns.py +187 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/console.py +2661 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/constrain.py +37 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/containers.py +167 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/control.py +225 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/default_styles.py +191 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/diagnose.py +37 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/emoji.py +96 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/errors.py +34 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/file_proxy.py +57 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/filesize.py +88 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/highlighter.py +232 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/json.py +139 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/jupyter.py +101 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/layout.py +442 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/live.py +375 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/live_render.py +112 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/logging.py +297 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/markup.py +251 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/measure.py +151 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/padding.py +141 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/pager.py +34 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/palette.py +100 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/panel.py +318 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/pretty.py +1016 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/progress.py +1715 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/progress_bar.py +223 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/prompt.py +400 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/protocol.py +42 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/py.typed +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/region.py +10 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/repr.py +149 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/rule.py +130 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/scope.py +86 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/screen.py +54 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/segment.py +752 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/spinner.py +138 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/status.py +131 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/style.py +796 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/styled.py +42 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/syntax.py +966 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/table.py +1007 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/terminal_theme.py +153 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/text.py +1361 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/theme.py +115 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/themes.py +5 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/traceback.py +797 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/rich/tree.py +257 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/tomli/__init__.py +8 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/tomli/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/tomli/__pycache__/_parser.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/tomli/__pycache__/_re.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/tomli/__pycache__/_types.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/tomli/_parser.py +770 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/tomli/_re.py +112 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/tomli/_types.py +10 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/tomli/py.typed +1 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/truststore/__init__.py +36 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/truststore/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/truststore/__pycache__/_api.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/truststore/__pycache__/_macos.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/truststore/__pycache__/_openssl.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/truststore/__pycache__/_ssl_constants.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/truststore/__pycache__/_windows.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/truststore/_api.py +316 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/truststore/_macos.py +571 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/truststore/_openssl.py +66 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/truststore/_ssl_constants.py +31 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/truststore/_windows.py +567 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/truststore/py.typed +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/typing_extensions.py +3641 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/__init__.py +102 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/_collections.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/_version.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/connection.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/connectionpool.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/exceptions.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/fields.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/filepost.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/poolmanager.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/request.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/__pycache__/response.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/_collections.py +355 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/_version.py +2 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/connection.py +572 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/connectionpool.py +1140 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__pycache__/_appengine_environ.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__pycache__/appengine.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__pycache__/ntlmpool.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__pycache__/pyopenssl.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__pycache__/securetransport.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/__pycache__/socks.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +36 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/bindings.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/low_level.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +519 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +397 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/appengine.py +314 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +130 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +518 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +920 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/socks.py +216 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/exceptions.py +323 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/fields.py +274 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/filepost.py +98 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/__init__.py +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/__pycache__/six.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/makefile.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/weakref_finalize.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +51 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/weakref_finalize.py +155 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/six.py +1076 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/poolmanager.py +540 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/request.py +191 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/response.py +879 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__init__.py +49 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/connection.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/proxy.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/queue.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/request.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/response.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/retry.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/ssl_.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/ssl_match_hostname.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/ssltransport.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/timeout.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/url.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/__pycache__/wait.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/connection.py +149 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/proxy.py +57 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/queue.py +22 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/request.py +137 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/response.py +107 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/retry.py +622 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/ssl_.py +504 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py +159 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/ssltransport.py +221 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/timeout.py +271 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/url.py +435 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/wait.py +152 -0
- package/testenv/lib/python3.12/site-packages/pip/_vendor/vendor.txt +18 -0
- package/testenv/lib/python3.12/site-packages/pip/py.typed +4 -0
- package/testenv/lib/python3.12/site-packages/pip-25.0.dist-info/AUTHORS.txt +806 -0
- package/testenv/lib/python3.12/site-packages/pip-25.0.dist-info/INSTALLER +1 -0
- package/testenv/lib/python3.12/site-packages/pip-25.0.dist-info/LICENSE.txt +20 -0
- package/testenv/lib/python3.12/site-packages/pip-25.0.dist-info/METADATA +90 -0
- package/testenv/lib/python3.12/site-packages/pip-25.0.dist-info/RECORD +848 -0
- package/testenv/lib/python3.12/site-packages/pip-25.0.dist-info/REQUESTED +0 -0
- package/testenv/lib/python3.12/site-packages/pip-25.0.dist-info/WHEEL +5 -0
- package/testenv/lib/python3.12/site-packages/pip-25.0.dist-info/entry_points.txt +3 -0
- package/testenv/lib/python3.12/site-packages/pip-25.0.dist-info/top_level.txt +1 -0
- package/testenv/lib/python3.12/site-packages/pxz/__init__.py +50 -0
- package/testenv/lib/python3.12/site-packages/pxz/__pycache__/__init__.cpython-312.pyc +0 -0
- package/testenv/lib/python3.12/site-packages/pxz-1.1.14.dist-info/INSTALLER +1 -0
- package/testenv/lib/python3.12/site-packages/pxz-1.1.14.dist-info/METADATA +20 -0
- package/testenv/lib/python3.12/site-packages/pxz-1.1.14.dist-info/RECORD +8 -0
- package/testenv/lib/python3.12/site-packages/pxz-1.1.14.dist-info/REQUESTED +0 -0
- package/testenv/lib/python3.12/site-packages/pxz-1.1.14.dist-info/WHEEL +5 -0
- package/testenv/lib/python3.12/site-packages/pxz-1.1.14.dist-info/top_level.txt +1 -0
- package/testenv/pyvenv.cfg +5 -0
- package/README.md +0 -5
|
@@ -0,0 +1,966 @@
|
|
|
1
|
+
import os.path
|
|
2
|
+
import re
|
|
3
|
+
import sys
|
|
4
|
+
import textwrap
|
|
5
|
+
from abc import ABC, abstractmethod
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
from typing import (
|
|
8
|
+
Any,
|
|
9
|
+
Dict,
|
|
10
|
+
Iterable,
|
|
11
|
+
List,
|
|
12
|
+
NamedTuple,
|
|
13
|
+
Optional,
|
|
14
|
+
Sequence,
|
|
15
|
+
Set,
|
|
16
|
+
Tuple,
|
|
17
|
+
Type,
|
|
18
|
+
Union,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
from pip._vendor.pygments.lexer import Lexer
|
|
22
|
+
from pip._vendor.pygments.lexers import get_lexer_by_name, guess_lexer_for_filename
|
|
23
|
+
from pip._vendor.pygments.style import Style as PygmentsStyle
|
|
24
|
+
from pip._vendor.pygments.styles import get_style_by_name
|
|
25
|
+
from pip._vendor.pygments.token import (
|
|
26
|
+
Comment,
|
|
27
|
+
Error,
|
|
28
|
+
Generic,
|
|
29
|
+
Keyword,
|
|
30
|
+
Name,
|
|
31
|
+
Number,
|
|
32
|
+
Operator,
|
|
33
|
+
String,
|
|
34
|
+
Token,
|
|
35
|
+
Whitespace,
|
|
36
|
+
)
|
|
37
|
+
from pip._vendor.pygments.util import ClassNotFound
|
|
38
|
+
|
|
39
|
+
from pip._vendor.rich.containers import Lines
|
|
40
|
+
from pip._vendor.rich.padding import Padding, PaddingDimensions
|
|
41
|
+
|
|
42
|
+
from ._loop import loop_first
|
|
43
|
+
from .cells import cell_len
|
|
44
|
+
from .color import Color, blend_rgb
|
|
45
|
+
from .console import Console, ConsoleOptions, JustifyMethod, RenderResult
|
|
46
|
+
from .jupyter import JupyterMixin
|
|
47
|
+
from .measure import Measurement
|
|
48
|
+
from .segment import Segment, Segments
|
|
49
|
+
from .style import Style, StyleType
|
|
50
|
+
from .text import Text
|
|
51
|
+
|
|
52
|
+
TokenType = Tuple[str, ...]
|
|
53
|
+
|
|
54
|
+
WINDOWS = sys.platform == "win32"
|
|
55
|
+
DEFAULT_THEME = "monokai"
|
|
56
|
+
|
|
57
|
+
# The following styles are based on https://github.com/pygments/pygments/blob/master/pygments/formatters/terminal.py
|
|
58
|
+
# A few modifications were made
|
|
59
|
+
|
|
60
|
+
ANSI_LIGHT: Dict[TokenType, Style] = {
|
|
61
|
+
Token: Style(),
|
|
62
|
+
Whitespace: Style(color="white"),
|
|
63
|
+
Comment: Style(dim=True),
|
|
64
|
+
Comment.Preproc: Style(color="cyan"),
|
|
65
|
+
Keyword: Style(color="blue"),
|
|
66
|
+
Keyword.Type: Style(color="cyan"),
|
|
67
|
+
Operator.Word: Style(color="magenta"),
|
|
68
|
+
Name.Builtin: Style(color="cyan"),
|
|
69
|
+
Name.Function: Style(color="green"),
|
|
70
|
+
Name.Namespace: Style(color="cyan", underline=True),
|
|
71
|
+
Name.Class: Style(color="green", underline=True),
|
|
72
|
+
Name.Exception: Style(color="cyan"),
|
|
73
|
+
Name.Decorator: Style(color="magenta", bold=True),
|
|
74
|
+
Name.Variable: Style(color="red"),
|
|
75
|
+
Name.Constant: Style(color="red"),
|
|
76
|
+
Name.Attribute: Style(color="cyan"),
|
|
77
|
+
Name.Tag: Style(color="bright_blue"),
|
|
78
|
+
String: Style(color="yellow"),
|
|
79
|
+
Number: Style(color="blue"),
|
|
80
|
+
Generic.Deleted: Style(color="bright_red"),
|
|
81
|
+
Generic.Inserted: Style(color="green"),
|
|
82
|
+
Generic.Heading: Style(bold=True),
|
|
83
|
+
Generic.Subheading: Style(color="magenta", bold=True),
|
|
84
|
+
Generic.Prompt: Style(bold=True),
|
|
85
|
+
Generic.Error: Style(color="bright_red"),
|
|
86
|
+
Error: Style(color="red", underline=True),
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
ANSI_DARK: Dict[TokenType, Style] = {
|
|
90
|
+
Token: Style(),
|
|
91
|
+
Whitespace: Style(color="bright_black"),
|
|
92
|
+
Comment: Style(dim=True),
|
|
93
|
+
Comment.Preproc: Style(color="bright_cyan"),
|
|
94
|
+
Keyword: Style(color="bright_blue"),
|
|
95
|
+
Keyword.Type: Style(color="bright_cyan"),
|
|
96
|
+
Operator.Word: Style(color="bright_magenta"),
|
|
97
|
+
Name.Builtin: Style(color="bright_cyan"),
|
|
98
|
+
Name.Function: Style(color="bright_green"),
|
|
99
|
+
Name.Namespace: Style(color="bright_cyan", underline=True),
|
|
100
|
+
Name.Class: Style(color="bright_green", underline=True),
|
|
101
|
+
Name.Exception: Style(color="bright_cyan"),
|
|
102
|
+
Name.Decorator: Style(color="bright_magenta", bold=True),
|
|
103
|
+
Name.Variable: Style(color="bright_red"),
|
|
104
|
+
Name.Constant: Style(color="bright_red"),
|
|
105
|
+
Name.Attribute: Style(color="bright_cyan"),
|
|
106
|
+
Name.Tag: Style(color="bright_blue"),
|
|
107
|
+
String: Style(color="yellow"),
|
|
108
|
+
Number: Style(color="bright_blue"),
|
|
109
|
+
Generic.Deleted: Style(color="bright_red"),
|
|
110
|
+
Generic.Inserted: Style(color="bright_green"),
|
|
111
|
+
Generic.Heading: Style(bold=True),
|
|
112
|
+
Generic.Subheading: Style(color="bright_magenta", bold=True),
|
|
113
|
+
Generic.Prompt: Style(bold=True),
|
|
114
|
+
Generic.Error: Style(color="bright_red"),
|
|
115
|
+
Error: Style(color="red", underline=True),
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
RICH_SYNTAX_THEMES = {"ansi_light": ANSI_LIGHT, "ansi_dark": ANSI_DARK}
|
|
119
|
+
NUMBERS_COLUMN_DEFAULT_PADDING = 2
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
class SyntaxTheme(ABC):
|
|
123
|
+
"""Base class for a syntax theme."""
|
|
124
|
+
|
|
125
|
+
@abstractmethod
|
|
126
|
+
def get_style_for_token(self, token_type: TokenType) -> Style:
|
|
127
|
+
"""Get a style for a given Pygments token."""
|
|
128
|
+
raise NotImplementedError # pragma: no cover
|
|
129
|
+
|
|
130
|
+
@abstractmethod
|
|
131
|
+
def get_background_style(self) -> Style:
|
|
132
|
+
"""Get the background color."""
|
|
133
|
+
raise NotImplementedError # pragma: no cover
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
class PygmentsSyntaxTheme(SyntaxTheme):
|
|
137
|
+
"""Syntax theme that delegates to Pygments theme."""
|
|
138
|
+
|
|
139
|
+
def __init__(self, theme: Union[str, Type[PygmentsStyle]]) -> None:
|
|
140
|
+
self._style_cache: Dict[TokenType, Style] = {}
|
|
141
|
+
if isinstance(theme, str):
|
|
142
|
+
try:
|
|
143
|
+
self._pygments_style_class = get_style_by_name(theme)
|
|
144
|
+
except ClassNotFound:
|
|
145
|
+
self._pygments_style_class = get_style_by_name("default")
|
|
146
|
+
else:
|
|
147
|
+
self._pygments_style_class = theme
|
|
148
|
+
|
|
149
|
+
self._background_color = self._pygments_style_class.background_color
|
|
150
|
+
self._background_style = Style(bgcolor=self._background_color)
|
|
151
|
+
|
|
152
|
+
def get_style_for_token(self, token_type: TokenType) -> Style:
|
|
153
|
+
"""Get a style from a Pygments class."""
|
|
154
|
+
try:
|
|
155
|
+
return self._style_cache[token_type]
|
|
156
|
+
except KeyError:
|
|
157
|
+
try:
|
|
158
|
+
pygments_style = self._pygments_style_class.style_for_token(token_type)
|
|
159
|
+
except KeyError:
|
|
160
|
+
style = Style.null()
|
|
161
|
+
else:
|
|
162
|
+
color = pygments_style["color"]
|
|
163
|
+
bgcolor = pygments_style["bgcolor"]
|
|
164
|
+
style = Style(
|
|
165
|
+
color="#" + color if color else "#000000",
|
|
166
|
+
bgcolor="#" + bgcolor if bgcolor else self._background_color,
|
|
167
|
+
bold=pygments_style["bold"],
|
|
168
|
+
italic=pygments_style["italic"],
|
|
169
|
+
underline=pygments_style["underline"],
|
|
170
|
+
)
|
|
171
|
+
self._style_cache[token_type] = style
|
|
172
|
+
return style
|
|
173
|
+
|
|
174
|
+
def get_background_style(self) -> Style:
|
|
175
|
+
return self._background_style
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
class ANSISyntaxTheme(SyntaxTheme):
|
|
179
|
+
"""Syntax theme to use standard colors."""
|
|
180
|
+
|
|
181
|
+
def __init__(self, style_map: Dict[TokenType, Style]) -> None:
|
|
182
|
+
self.style_map = style_map
|
|
183
|
+
self._missing_style = Style.null()
|
|
184
|
+
self._background_style = Style.null()
|
|
185
|
+
self._style_cache: Dict[TokenType, Style] = {}
|
|
186
|
+
|
|
187
|
+
def get_style_for_token(self, token_type: TokenType) -> Style:
|
|
188
|
+
"""Look up style in the style map."""
|
|
189
|
+
try:
|
|
190
|
+
return self._style_cache[token_type]
|
|
191
|
+
except KeyError:
|
|
192
|
+
# Styles form a hierarchy
|
|
193
|
+
# We need to go from most to least specific
|
|
194
|
+
# e.g. ("foo", "bar", "baz") to ("foo", "bar") to ("foo",)
|
|
195
|
+
get_style = self.style_map.get
|
|
196
|
+
token = tuple(token_type)
|
|
197
|
+
style = self._missing_style
|
|
198
|
+
while token:
|
|
199
|
+
_style = get_style(token)
|
|
200
|
+
if _style is not None:
|
|
201
|
+
style = _style
|
|
202
|
+
break
|
|
203
|
+
token = token[:-1]
|
|
204
|
+
self._style_cache[token_type] = style
|
|
205
|
+
return style
|
|
206
|
+
|
|
207
|
+
def get_background_style(self) -> Style:
|
|
208
|
+
return self._background_style
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
SyntaxPosition = Tuple[int, int]
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
class _SyntaxHighlightRange(NamedTuple):
|
|
215
|
+
"""
|
|
216
|
+
A range to highlight in a Syntax object.
|
|
217
|
+
`start` and `end` are 2-integers tuples, where the first integer is the line number
|
|
218
|
+
(starting from 1) and the second integer is the column index (starting from 0).
|
|
219
|
+
"""
|
|
220
|
+
|
|
221
|
+
style: StyleType
|
|
222
|
+
start: SyntaxPosition
|
|
223
|
+
end: SyntaxPosition
|
|
224
|
+
style_before: bool = False
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
class Syntax(JupyterMixin):
|
|
228
|
+
"""Construct a Syntax object to render syntax highlighted code.
|
|
229
|
+
|
|
230
|
+
Args:
|
|
231
|
+
code (str): Code to highlight.
|
|
232
|
+
lexer (Lexer | str): Lexer to use (see https://pygments.org/docs/lexers/)
|
|
233
|
+
theme (str, optional): Color theme, aka Pygments style (see https://pygments.org/docs/styles/#getting-a-list-of-available-styles). Defaults to "monokai".
|
|
234
|
+
dedent (bool, optional): Enable stripping of initial whitespace. Defaults to False.
|
|
235
|
+
line_numbers (bool, optional): Enable rendering of line numbers. Defaults to False.
|
|
236
|
+
start_line (int, optional): Starting number for line numbers. Defaults to 1.
|
|
237
|
+
line_range (Tuple[int | None, int | None], optional): If given should be a tuple of the start and end line to render.
|
|
238
|
+
A value of None in the tuple indicates the range is open in that direction.
|
|
239
|
+
highlight_lines (Set[int]): A set of line numbers to highlight.
|
|
240
|
+
code_width: Width of code to render (not including line numbers), or ``None`` to use all available width.
|
|
241
|
+
tab_size (int, optional): Size of tabs. Defaults to 4.
|
|
242
|
+
word_wrap (bool, optional): Enable word wrapping.
|
|
243
|
+
background_color (str, optional): Optional background color, or None to use theme color. Defaults to None.
|
|
244
|
+
indent_guides (bool, optional): Show indent guides. Defaults to False.
|
|
245
|
+
padding (PaddingDimensions): Padding to apply around the syntax. Defaults to 0 (no padding).
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
_pygments_style_class: Type[PygmentsStyle]
|
|
249
|
+
_theme: SyntaxTheme
|
|
250
|
+
|
|
251
|
+
@classmethod
|
|
252
|
+
def get_theme(cls, name: Union[str, SyntaxTheme]) -> SyntaxTheme:
|
|
253
|
+
"""Get a syntax theme instance."""
|
|
254
|
+
if isinstance(name, SyntaxTheme):
|
|
255
|
+
return name
|
|
256
|
+
theme: SyntaxTheme
|
|
257
|
+
if name in RICH_SYNTAX_THEMES:
|
|
258
|
+
theme = ANSISyntaxTheme(RICH_SYNTAX_THEMES[name])
|
|
259
|
+
else:
|
|
260
|
+
theme = PygmentsSyntaxTheme(name)
|
|
261
|
+
return theme
|
|
262
|
+
|
|
263
|
+
def __init__(
|
|
264
|
+
self,
|
|
265
|
+
code: str,
|
|
266
|
+
lexer: Union[Lexer, str],
|
|
267
|
+
*,
|
|
268
|
+
theme: Union[str, SyntaxTheme] = DEFAULT_THEME,
|
|
269
|
+
dedent: bool = False,
|
|
270
|
+
line_numbers: bool = False,
|
|
271
|
+
start_line: int = 1,
|
|
272
|
+
line_range: Optional[Tuple[Optional[int], Optional[int]]] = None,
|
|
273
|
+
highlight_lines: Optional[Set[int]] = None,
|
|
274
|
+
code_width: Optional[int] = None,
|
|
275
|
+
tab_size: int = 4,
|
|
276
|
+
word_wrap: bool = False,
|
|
277
|
+
background_color: Optional[str] = None,
|
|
278
|
+
indent_guides: bool = False,
|
|
279
|
+
padding: PaddingDimensions = 0,
|
|
280
|
+
) -> None:
|
|
281
|
+
self.code = code
|
|
282
|
+
self._lexer = lexer
|
|
283
|
+
self.dedent = dedent
|
|
284
|
+
self.line_numbers = line_numbers
|
|
285
|
+
self.start_line = start_line
|
|
286
|
+
self.line_range = line_range
|
|
287
|
+
self.highlight_lines = highlight_lines or set()
|
|
288
|
+
self.code_width = code_width
|
|
289
|
+
self.tab_size = tab_size
|
|
290
|
+
self.word_wrap = word_wrap
|
|
291
|
+
self.background_color = background_color
|
|
292
|
+
self.background_style = (
|
|
293
|
+
Style(bgcolor=background_color) if background_color else Style()
|
|
294
|
+
)
|
|
295
|
+
self.indent_guides = indent_guides
|
|
296
|
+
self.padding = padding
|
|
297
|
+
|
|
298
|
+
self._theme = self.get_theme(theme)
|
|
299
|
+
self._stylized_ranges: List[_SyntaxHighlightRange] = []
|
|
300
|
+
|
|
301
|
+
@classmethod
|
|
302
|
+
def from_path(
|
|
303
|
+
cls,
|
|
304
|
+
path: str,
|
|
305
|
+
encoding: str = "utf-8",
|
|
306
|
+
lexer: Optional[Union[Lexer, str]] = None,
|
|
307
|
+
theme: Union[str, SyntaxTheme] = DEFAULT_THEME,
|
|
308
|
+
dedent: bool = False,
|
|
309
|
+
line_numbers: bool = False,
|
|
310
|
+
line_range: Optional[Tuple[int, int]] = None,
|
|
311
|
+
start_line: int = 1,
|
|
312
|
+
highlight_lines: Optional[Set[int]] = None,
|
|
313
|
+
code_width: Optional[int] = None,
|
|
314
|
+
tab_size: int = 4,
|
|
315
|
+
word_wrap: bool = False,
|
|
316
|
+
background_color: Optional[str] = None,
|
|
317
|
+
indent_guides: bool = False,
|
|
318
|
+
padding: PaddingDimensions = 0,
|
|
319
|
+
) -> "Syntax":
|
|
320
|
+
"""Construct a Syntax object from a file.
|
|
321
|
+
|
|
322
|
+
Args:
|
|
323
|
+
path (str): Path to file to highlight.
|
|
324
|
+
encoding (str): Encoding of file.
|
|
325
|
+
lexer (str | Lexer, optional): Lexer to use. If None, lexer will be auto-detected from path/file content.
|
|
326
|
+
theme (str, optional): Color theme, aka Pygments style (see https://pygments.org/docs/styles/#getting-a-list-of-available-styles). Defaults to "emacs".
|
|
327
|
+
dedent (bool, optional): Enable stripping of initial whitespace. Defaults to True.
|
|
328
|
+
line_numbers (bool, optional): Enable rendering of line numbers. Defaults to False.
|
|
329
|
+
start_line (int, optional): Starting number for line numbers. Defaults to 1.
|
|
330
|
+
line_range (Tuple[int, int], optional): If given should be a tuple of the start and end line to render.
|
|
331
|
+
highlight_lines (Set[int]): A set of line numbers to highlight.
|
|
332
|
+
code_width: Width of code to render (not including line numbers), or ``None`` to use all available width.
|
|
333
|
+
tab_size (int, optional): Size of tabs. Defaults to 4.
|
|
334
|
+
word_wrap (bool, optional): Enable word wrapping of code.
|
|
335
|
+
background_color (str, optional): Optional background color, or None to use theme color. Defaults to None.
|
|
336
|
+
indent_guides (bool, optional): Show indent guides. Defaults to False.
|
|
337
|
+
padding (PaddingDimensions): Padding to apply around the syntax. Defaults to 0 (no padding).
|
|
338
|
+
|
|
339
|
+
Returns:
|
|
340
|
+
[Syntax]: A Syntax object that may be printed to the console
|
|
341
|
+
"""
|
|
342
|
+
code = Path(path).read_text(encoding=encoding)
|
|
343
|
+
|
|
344
|
+
if not lexer:
|
|
345
|
+
lexer = cls.guess_lexer(path, code=code)
|
|
346
|
+
|
|
347
|
+
return cls(
|
|
348
|
+
code,
|
|
349
|
+
lexer,
|
|
350
|
+
theme=theme,
|
|
351
|
+
dedent=dedent,
|
|
352
|
+
line_numbers=line_numbers,
|
|
353
|
+
line_range=line_range,
|
|
354
|
+
start_line=start_line,
|
|
355
|
+
highlight_lines=highlight_lines,
|
|
356
|
+
code_width=code_width,
|
|
357
|
+
tab_size=tab_size,
|
|
358
|
+
word_wrap=word_wrap,
|
|
359
|
+
background_color=background_color,
|
|
360
|
+
indent_guides=indent_guides,
|
|
361
|
+
padding=padding,
|
|
362
|
+
)
|
|
363
|
+
|
|
364
|
+
@classmethod
|
|
365
|
+
def guess_lexer(cls, path: str, code: Optional[str] = None) -> str:
|
|
366
|
+
"""Guess the alias of the Pygments lexer to use based on a path and an optional string of code.
|
|
367
|
+
If code is supplied, it will use a combination of the code and the filename to determine the
|
|
368
|
+
best lexer to use. For example, if the file is ``index.html`` and the file contains Django
|
|
369
|
+
templating syntax, then "html+django" will be returned. If the file is ``index.html``, and no
|
|
370
|
+
templating language is used, the "html" lexer will be used. If no string of code
|
|
371
|
+
is supplied, the lexer will be chosen based on the file extension..
|
|
372
|
+
|
|
373
|
+
Args:
|
|
374
|
+
path (AnyStr): The path to the file containing the code you wish to know the lexer for.
|
|
375
|
+
code (str, optional): Optional string of code that will be used as a fallback if no lexer
|
|
376
|
+
is found for the supplied path.
|
|
377
|
+
|
|
378
|
+
Returns:
|
|
379
|
+
str: The name of the Pygments lexer that best matches the supplied path/code.
|
|
380
|
+
"""
|
|
381
|
+
lexer: Optional[Lexer] = None
|
|
382
|
+
lexer_name = "default"
|
|
383
|
+
if code:
|
|
384
|
+
try:
|
|
385
|
+
lexer = guess_lexer_for_filename(path, code)
|
|
386
|
+
except ClassNotFound:
|
|
387
|
+
pass
|
|
388
|
+
|
|
389
|
+
if not lexer:
|
|
390
|
+
try:
|
|
391
|
+
_, ext = os.path.splitext(path)
|
|
392
|
+
if ext:
|
|
393
|
+
extension = ext.lstrip(".").lower()
|
|
394
|
+
lexer = get_lexer_by_name(extension)
|
|
395
|
+
except ClassNotFound:
|
|
396
|
+
pass
|
|
397
|
+
|
|
398
|
+
if lexer:
|
|
399
|
+
if lexer.aliases:
|
|
400
|
+
lexer_name = lexer.aliases[0]
|
|
401
|
+
else:
|
|
402
|
+
lexer_name = lexer.name
|
|
403
|
+
|
|
404
|
+
return lexer_name
|
|
405
|
+
|
|
406
|
+
def _get_base_style(self) -> Style:
|
|
407
|
+
"""Get the base style."""
|
|
408
|
+
default_style = self._theme.get_background_style() + self.background_style
|
|
409
|
+
return default_style
|
|
410
|
+
|
|
411
|
+
def _get_token_color(self, token_type: TokenType) -> Optional[Color]:
|
|
412
|
+
"""Get a color (if any) for the given token.
|
|
413
|
+
|
|
414
|
+
Args:
|
|
415
|
+
token_type (TokenType): A token type tuple from Pygments.
|
|
416
|
+
|
|
417
|
+
Returns:
|
|
418
|
+
Optional[Color]: Color from theme, or None for no color.
|
|
419
|
+
"""
|
|
420
|
+
style = self._theme.get_style_for_token(token_type)
|
|
421
|
+
return style.color
|
|
422
|
+
|
|
423
|
+
@property
|
|
424
|
+
def lexer(self) -> Optional[Lexer]:
|
|
425
|
+
"""The lexer for this syntax, or None if no lexer was found.
|
|
426
|
+
|
|
427
|
+
Tries to find the lexer by name if a string was passed to the constructor.
|
|
428
|
+
"""
|
|
429
|
+
|
|
430
|
+
if isinstance(self._lexer, Lexer):
|
|
431
|
+
return self._lexer
|
|
432
|
+
try:
|
|
433
|
+
return get_lexer_by_name(
|
|
434
|
+
self._lexer,
|
|
435
|
+
stripnl=False,
|
|
436
|
+
ensurenl=True,
|
|
437
|
+
tabsize=self.tab_size,
|
|
438
|
+
)
|
|
439
|
+
except ClassNotFound:
|
|
440
|
+
return None
|
|
441
|
+
|
|
442
|
+
@property
|
|
443
|
+
def default_lexer(self) -> Lexer:
|
|
444
|
+
"""A Pygments Lexer to use if one is not specified or invalid."""
|
|
445
|
+
return get_lexer_by_name(
|
|
446
|
+
"text",
|
|
447
|
+
stripnl=False,
|
|
448
|
+
ensurenl=True,
|
|
449
|
+
tabsize=self.tab_size,
|
|
450
|
+
)
|
|
451
|
+
|
|
452
|
+
def highlight(
|
|
453
|
+
self,
|
|
454
|
+
code: str,
|
|
455
|
+
line_range: Optional[Tuple[Optional[int], Optional[int]]] = None,
|
|
456
|
+
) -> Text:
|
|
457
|
+
"""Highlight code and return a Text instance.
|
|
458
|
+
|
|
459
|
+
Args:
|
|
460
|
+
code (str): Code to highlight.
|
|
461
|
+
line_range(Tuple[int, int], optional): Optional line range to highlight.
|
|
462
|
+
|
|
463
|
+
Returns:
|
|
464
|
+
Text: A text instance containing highlighted syntax.
|
|
465
|
+
"""
|
|
466
|
+
|
|
467
|
+
base_style = self._get_base_style()
|
|
468
|
+
justify: JustifyMethod = (
|
|
469
|
+
"default" if base_style.transparent_background else "left"
|
|
470
|
+
)
|
|
471
|
+
|
|
472
|
+
text = Text(
|
|
473
|
+
justify=justify,
|
|
474
|
+
style=base_style,
|
|
475
|
+
tab_size=self.tab_size,
|
|
476
|
+
no_wrap=not self.word_wrap,
|
|
477
|
+
)
|
|
478
|
+
_get_theme_style = self._theme.get_style_for_token
|
|
479
|
+
|
|
480
|
+
lexer = self.lexer or self.default_lexer
|
|
481
|
+
|
|
482
|
+
if lexer is None:
|
|
483
|
+
text.append(code)
|
|
484
|
+
else:
|
|
485
|
+
if line_range:
|
|
486
|
+
# More complicated path to only stylize a portion of the code
|
|
487
|
+
# This speeds up further operations as there are less spans to process
|
|
488
|
+
line_start, line_end = line_range
|
|
489
|
+
|
|
490
|
+
def line_tokenize() -> Iterable[Tuple[Any, str]]:
|
|
491
|
+
"""Split tokens to one per line."""
|
|
492
|
+
assert lexer # required to make MyPy happy - we know lexer is not None at this point
|
|
493
|
+
|
|
494
|
+
for token_type, token in lexer.get_tokens(code):
|
|
495
|
+
while token:
|
|
496
|
+
line_token, new_line, token = token.partition("\n")
|
|
497
|
+
yield token_type, line_token + new_line
|
|
498
|
+
|
|
499
|
+
def tokens_to_spans() -> Iterable[Tuple[str, Optional[Style]]]:
|
|
500
|
+
"""Convert tokens to spans."""
|
|
501
|
+
tokens = iter(line_tokenize())
|
|
502
|
+
line_no = 0
|
|
503
|
+
_line_start = line_start - 1 if line_start else 0
|
|
504
|
+
|
|
505
|
+
# Skip over tokens until line start
|
|
506
|
+
while line_no < _line_start:
|
|
507
|
+
try:
|
|
508
|
+
_token_type, token = next(tokens)
|
|
509
|
+
except StopIteration:
|
|
510
|
+
break
|
|
511
|
+
yield (token, None)
|
|
512
|
+
if token.endswith("\n"):
|
|
513
|
+
line_no += 1
|
|
514
|
+
# Generate spans until line end
|
|
515
|
+
for token_type, token in tokens:
|
|
516
|
+
yield (token, _get_theme_style(token_type))
|
|
517
|
+
if token.endswith("\n"):
|
|
518
|
+
line_no += 1
|
|
519
|
+
if line_end and line_no >= line_end:
|
|
520
|
+
break
|
|
521
|
+
|
|
522
|
+
text.append_tokens(tokens_to_spans())
|
|
523
|
+
|
|
524
|
+
else:
|
|
525
|
+
text.append_tokens(
|
|
526
|
+
(token, _get_theme_style(token_type))
|
|
527
|
+
for token_type, token in lexer.get_tokens(code)
|
|
528
|
+
)
|
|
529
|
+
if self.background_color is not None:
|
|
530
|
+
text.stylize(f"on {self.background_color}")
|
|
531
|
+
|
|
532
|
+
if self._stylized_ranges:
|
|
533
|
+
self._apply_stylized_ranges(text)
|
|
534
|
+
|
|
535
|
+
return text
|
|
536
|
+
|
|
537
|
+
def stylize_range(
|
|
538
|
+
self,
|
|
539
|
+
style: StyleType,
|
|
540
|
+
start: SyntaxPosition,
|
|
541
|
+
end: SyntaxPosition,
|
|
542
|
+
style_before: bool = False,
|
|
543
|
+
) -> None:
|
|
544
|
+
"""
|
|
545
|
+
Adds a custom style on a part of the code, that will be applied to the syntax display when it's rendered.
|
|
546
|
+
Line numbers are 1-based, while column indexes are 0-based.
|
|
547
|
+
|
|
548
|
+
Args:
|
|
549
|
+
style (StyleType): The style to apply.
|
|
550
|
+
start (Tuple[int, int]): The start of the range, in the form `[line number, column index]`.
|
|
551
|
+
end (Tuple[int, int]): The end of the range, in the form `[line number, column index]`.
|
|
552
|
+
style_before (bool): Apply the style before any existing styles.
|
|
553
|
+
"""
|
|
554
|
+
self._stylized_ranges.append(
|
|
555
|
+
_SyntaxHighlightRange(style, start, end, style_before)
|
|
556
|
+
)
|
|
557
|
+
|
|
558
|
+
def _get_line_numbers_color(self, blend: float = 0.3) -> Color:
|
|
559
|
+
background_style = self._theme.get_background_style() + self.background_style
|
|
560
|
+
background_color = background_style.bgcolor
|
|
561
|
+
if background_color is None or background_color.is_system_defined:
|
|
562
|
+
return Color.default()
|
|
563
|
+
foreground_color = self._get_token_color(Token.Text)
|
|
564
|
+
if foreground_color is None or foreground_color.is_system_defined:
|
|
565
|
+
return foreground_color or Color.default()
|
|
566
|
+
new_color = blend_rgb(
|
|
567
|
+
background_color.get_truecolor(),
|
|
568
|
+
foreground_color.get_truecolor(),
|
|
569
|
+
cross_fade=blend,
|
|
570
|
+
)
|
|
571
|
+
return Color.from_triplet(new_color)
|
|
572
|
+
|
|
573
|
+
@property
|
|
574
|
+
def _numbers_column_width(self) -> int:
|
|
575
|
+
"""Get the number of characters used to render the numbers column."""
|
|
576
|
+
column_width = 0
|
|
577
|
+
if self.line_numbers:
|
|
578
|
+
column_width = (
|
|
579
|
+
len(str(self.start_line + self.code.count("\n")))
|
|
580
|
+
+ NUMBERS_COLUMN_DEFAULT_PADDING
|
|
581
|
+
)
|
|
582
|
+
return column_width
|
|
583
|
+
|
|
584
|
+
def _get_number_styles(self, console: Console) -> Tuple[Style, Style, Style]:
|
|
585
|
+
"""Get background, number, and highlight styles for line numbers."""
|
|
586
|
+
background_style = self._get_base_style()
|
|
587
|
+
if background_style.transparent_background:
|
|
588
|
+
return Style.null(), Style(dim=True), Style.null()
|
|
589
|
+
if console.color_system in ("256", "truecolor"):
|
|
590
|
+
number_style = Style.chain(
|
|
591
|
+
background_style,
|
|
592
|
+
self._theme.get_style_for_token(Token.Text),
|
|
593
|
+
Style(color=self._get_line_numbers_color()),
|
|
594
|
+
self.background_style,
|
|
595
|
+
)
|
|
596
|
+
highlight_number_style = Style.chain(
|
|
597
|
+
background_style,
|
|
598
|
+
self._theme.get_style_for_token(Token.Text),
|
|
599
|
+
Style(bold=True, color=self._get_line_numbers_color(0.9)),
|
|
600
|
+
self.background_style,
|
|
601
|
+
)
|
|
602
|
+
else:
|
|
603
|
+
number_style = background_style + Style(dim=True)
|
|
604
|
+
highlight_number_style = background_style + Style(dim=False)
|
|
605
|
+
return background_style, number_style, highlight_number_style
|
|
606
|
+
|
|
607
|
+
def __rich_measure__(
|
|
608
|
+
self, console: "Console", options: "ConsoleOptions"
|
|
609
|
+
) -> "Measurement":
|
|
610
|
+
_, right, _, left = Padding.unpack(self.padding)
|
|
611
|
+
padding = left + right
|
|
612
|
+
if self.code_width is not None:
|
|
613
|
+
width = self.code_width + self._numbers_column_width + padding + 1
|
|
614
|
+
return Measurement(self._numbers_column_width, width)
|
|
615
|
+
lines = self.code.splitlines()
|
|
616
|
+
width = (
|
|
617
|
+
self._numbers_column_width
|
|
618
|
+
+ padding
|
|
619
|
+
+ (max(cell_len(line) for line in lines) if lines else 0)
|
|
620
|
+
)
|
|
621
|
+
if self.line_numbers:
|
|
622
|
+
width += 1
|
|
623
|
+
return Measurement(self._numbers_column_width, width)
|
|
624
|
+
|
|
625
|
+
def __rich_console__(
|
|
626
|
+
self, console: Console, options: ConsoleOptions
|
|
627
|
+
) -> RenderResult:
|
|
628
|
+
segments = Segments(self._get_syntax(console, options))
|
|
629
|
+
if self.padding:
|
|
630
|
+
yield Padding(segments, style=self._get_base_style(), pad=self.padding)
|
|
631
|
+
else:
|
|
632
|
+
yield segments
|
|
633
|
+
|
|
634
|
+
def _get_syntax(
|
|
635
|
+
self,
|
|
636
|
+
console: Console,
|
|
637
|
+
options: ConsoleOptions,
|
|
638
|
+
) -> Iterable[Segment]:
|
|
639
|
+
"""
|
|
640
|
+
Get the Segments for the Syntax object, excluding any vertical/horizontal padding
|
|
641
|
+
"""
|
|
642
|
+
transparent_background = self._get_base_style().transparent_background
|
|
643
|
+
code_width = (
|
|
644
|
+
(
|
|
645
|
+
(options.max_width - self._numbers_column_width - 1)
|
|
646
|
+
if self.line_numbers
|
|
647
|
+
else options.max_width
|
|
648
|
+
)
|
|
649
|
+
if self.code_width is None
|
|
650
|
+
else self.code_width
|
|
651
|
+
)
|
|
652
|
+
|
|
653
|
+
ends_on_nl, processed_code = self._process_code(self.code)
|
|
654
|
+
text = self.highlight(processed_code, self.line_range)
|
|
655
|
+
|
|
656
|
+
if not self.line_numbers and not self.word_wrap and not self.line_range:
|
|
657
|
+
if not ends_on_nl:
|
|
658
|
+
text.remove_suffix("\n")
|
|
659
|
+
# Simple case of just rendering text
|
|
660
|
+
style = (
|
|
661
|
+
self._get_base_style()
|
|
662
|
+
+ self._theme.get_style_for_token(Comment)
|
|
663
|
+
+ Style(dim=True)
|
|
664
|
+
+ self.background_style
|
|
665
|
+
)
|
|
666
|
+
if self.indent_guides and not options.ascii_only:
|
|
667
|
+
text = text.with_indent_guides(self.tab_size, style=style)
|
|
668
|
+
text.overflow = "crop"
|
|
669
|
+
if style.transparent_background:
|
|
670
|
+
yield from console.render(
|
|
671
|
+
text, options=options.update(width=code_width)
|
|
672
|
+
)
|
|
673
|
+
else:
|
|
674
|
+
syntax_lines = console.render_lines(
|
|
675
|
+
text,
|
|
676
|
+
options.update(width=code_width, height=None, justify="left"),
|
|
677
|
+
style=self.background_style,
|
|
678
|
+
pad=True,
|
|
679
|
+
new_lines=True,
|
|
680
|
+
)
|
|
681
|
+
for syntax_line in syntax_lines:
|
|
682
|
+
yield from syntax_line
|
|
683
|
+
return
|
|
684
|
+
|
|
685
|
+
start_line, end_line = self.line_range or (None, None)
|
|
686
|
+
line_offset = 0
|
|
687
|
+
if start_line:
|
|
688
|
+
line_offset = max(0, start_line - 1)
|
|
689
|
+
lines: Union[List[Text], Lines] = text.split("\n", allow_blank=ends_on_nl)
|
|
690
|
+
if self.line_range:
|
|
691
|
+
if line_offset > len(lines):
|
|
692
|
+
return
|
|
693
|
+
lines = lines[line_offset:end_line]
|
|
694
|
+
|
|
695
|
+
if self.indent_guides and not options.ascii_only:
|
|
696
|
+
style = (
|
|
697
|
+
self._get_base_style()
|
|
698
|
+
+ self._theme.get_style_for_token(Comment)
|
|
699
|
+
+ Style(dim=True)
|
|
700
|
+
+ self.background_style
|
|
701
|
+
)
|
|
702
|
+
lines = (
|
|
703
|
+
Text("\n")
|
|
704
|
+
.join(lines)
|
|
705
|
+
.with_indent_guides(self.tab_size, style=style + Style(italic=False))
|
|
706
|
+
.split("\n", allow_blank=True)
|
|
707
|
+
)
|
|
708
|
+
|
|
709
|
+
numbers_column_width = self._numbers_column_width
|
|
710
|
+
render_options = options.update(width=code_width)
|
|
711
|
+
|
|
712
|
+
highlight_line = self.highlight_lines.__contains__
|
|
713
|
+
_Segment = Segment
|
|
714
|
+
new_line = _Segment("\n")
|
|
715
|
+
|
|
716
|
+
line_pointer = "> " if options.legacy_windows else "❱ "
|
|
717
|
+
|
|
718
|
+
(
|
|
719
|
+
background_style,
|
|
720
|
+
number_style,
|
|
721
|
+
highlight_number_style,
|
|
722
|
+
) = self._get_number_styles(console)
|
|
723
|
+
|
|
724
|
+
for line_no, line in enumerate(lines, self.start_line + line_offset):
|
|
725
|
+
if self.word_wrap:
|
|
726
|
+
wrapped_lines = console.render_lines(
|
|
727
|
+
line,
|
|
728
|
+
render_options.update(height=None, justify="left"),
|
|
729
|
+
style=background_style,
|
|
730
|
+
pad=not transparent_background,
|
|
731
|
+
)
|
|
732
|
+
else:
|
|
733
|
+
segments = list(line.render(console, end=""))
|
|
734
|
+
if options.no_wrap:
|
|
735
|
+
wrapped_lines = [segments]
|
|
736
|
+
else:
|
|
737
|
+
wrapped_lines = [
|
|
738
|
+
_Segment.adjust_line_length(
|
|
739
|
+
segments,
|
|
740
|
+
render_options.max_width,
|
|
741
|
+
style=background_style,
|
|
742
|
+
pad=not transparent_background,
|
|
743
|
+
)
|
|
744
|
+
]
|
|
745
|
+
|
|
746
|
+
if self.line_numbers:
|
|
747
|
+
wrapped_line_left_pad = _Segment(
|
|
748
|
+
" " * numbers_column_width + " ", background_style
|
|
749
|
+
)
|
|
750
|
+
for first, wrapped_line in loop_first(wrapped_lines):
|
|
751
|
+
if first:
|
|
752
|
+
line_column = str(line_no).rjust(numbers_column_width - 2) + " "
|
|
753
|
+
if highlight_line(line_no):
|
|
754
|
+
yield _Segment(line_pointer, Style(color="red"))
|
|
755
|
+
yield _Segment(line_column, highlight_number_style)
|
|
756
|
+
else:
|
|
757
|
+
yield _Segment(" ", highlight_number_style)
|
|
758
|
+
yield _Segment(line_column, number_style)
|
|
759
|
+
else:
|
|
760
|
+
yield wrapped_line_left_pad
|
|
761
|
+
yield from wrapped_line
|
|
762
|
+
yield new_line
|
|
763
|
+
else:
|
|
764
|
+
for wrapped_line in wrapped_lines:
|
|
765
|
+
yield from wrapped_line
|
|
766
|
+
yield new_line
|
|
767
|
+
|
|
768
|
+
def _apply_stylized_ranges(self, text: Text) -> None:
|
|
769
|
+
"""
|
|
770
|
+
Apply stylized ranges to a text instance,
|
|
771
|
+
using the given code to determine the right portion to apply the style to.
|
|
772
|
+
|
|
773
|
+
Args:
|
|
774
|
+
text (Text): Text instance to apply the style to.
|
|
775
|
+
"""
|
|
776
|
+
code = text.plain
|
|
777
|
+
newlines_offsets = [
|
|
778
|
+
# Let's add outer boundaries at each side of the list:
|
|
779
|
+
0,
|
|
780
|
+
# N.B. using "\n" here is much faster than using metacharacters such as "^" or "\Z":
|
|
781
|
+
*[
|
|
782
|
+
match.start() + 1
|
|
783
|
+
for match in re.finditer("\n", code, flags=re.MULTILINE)
|
|
784
|
+
],
|
|
785
|
+
len(code) + 1,
|
|
786
|
+
]
|
|
787
|
+
|
|
788
|
+
for stylized_range in self._stylized_ranges:
|
|
789
|
+
start = _get_code_index_for_syntax_position(
|
|
790
|
+
newlines_offsets, stylized_range.start
|
|
791
|
+
)
|
|
792
|
+
end = _get_code_index_for_syntax_position(
|
|
793
|
+
newlines_offsets, stylized_range.end
|
|
794
|
+
)
|
|
795
|
+
if start is not None and end is not None:
|
|
796
|
+
if stylized_range.style_before:
|
|
797
|
+
text.stylize_before(stylized_range.style, start, end)
|
|
798
|
+
else:
|
|
799
|
+
text.stylize(stylized_range.style, start, end)
|
|
800
|
+
|
|
801
|
+
def _process_code(self, code: str) -> Tuple[bool, str]:
|
|
802
|
+
"""
|
|
803
|
+
Applies various processing to a raw code string
|
|
804
|
+
(normalises it so it always ends with a line return, dedents it if necessary, etc.)
|
|
805
|
+
|
|
806
|
+
Args:
|
|
807
|
+
code (str): The raw code string to process
|
|
808
|
+
|
|
809
|
+
Returns:
|
|
810
|
+
Tuple[bool, str]: the boolean indicates whether the raw code ends with a line return,
|
|
811
|
+
while the string is the processed code.
|
|
812
|
+
"""
|
|
813
|
+
ends_on_nl = code.endswith("\n")
|
|
814
|
+
processed_code = code if ends_on_nl else code + "\n"
|
|
815
|
+
processed_code = (
|
|
816
|
+
textwrap.dedent(processed_code) if self.dedent else processed_code
|
|
817
|
+
)
|
|
818
|
+
processed_code = processed_code.expandtabs(self.tab_size)
|
|
819
|
+
return ends_on_nl, processed_code
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
def _get_code_index_for_syntax_position(
|
|
823
|
+
newlines_offsets: Sequence[int], position: SyntaxPosition
|
|
824
|
+
) -> Optional[int]:
|
|
825
|
+
"""
|
|
826
|
+
Returns the index of the code string for the given positions.
|
|
827
|
+
|
|
828
|
+
Args:
|
|
829
|
+
newlines_offsets (Sequence[int]): The offset of each newline character found in the code snippet.
|
|
830
|
+
position (SyntaxPosition): The position to search for.
|
|
831
|
+
|
|
832
|
+
Returns:
|
|
833
|
+
Optional[int]: The index of the code string for this position, or `None`
|
|
834
|
+
if the given position's line number is out of range (if it's the column that is out of range
|
|
835
|
+
we silently clamp its value so that it reaches the end of the line)
|
|
836
|
+
"""
|
|
837
|
+
lines_count = len(newlines_offsets)
|
|
838
|
+
|
|
839
|
+
line_number, column_index = position
|
|
840
|
+
if line_number > lines_count or len(newlines_offsets) < (line_number + 1):
|
|
841
|
+
return None # `line_number` is out of range
|
|
842
|
+
line_index = line_number - 1
|
|
843
|
+
line_length = newlines_offsets[line_index + 1] - newlines_offsets[line_index] - 1
|
|
844
|
+
# If `column_index` is out of range: let's silently clamp it:
|
|
845
|
+
column_index = min(line_length, column_index)
|
|
846
|
+
return newlines_offsets[line_index] + column_index
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
if __name__ == "__main__": # pragma: no cover
|
|
850
|
+
import argparse
|
|
851
|
+
import sys
|
|
852
|
+
|
|
853
|
+
parser = argparse.ArgumentParser(
|
|
854
|
+
description="Render syntax to the console with Rich"
|
|
855
|
+
)
|
|
856
|
+
parser.add_argument(
|
|
857
|
+
"path",
|
|
858
|
+
metavar="PATH",
|
|
859
|
+
help="path to file, or - for stdin",
|
|
860
|
+
)
|
|
861
|
+
parser.add_argument(
|
|
862
|
+
"-c",
|
|
863
|
+
"--force-color",
|
|
864
|
+
dest="force_color",
|
|
865
|
+
action="store_true",
|
|
866
|
+
default=None,
|
|
867
|
+
help="force color for non-terminals",
|
|
868
|
+
)
|
|
869
|
+
parser.add_argument(
|
|
870
|
+
"-i",
|
|
871
|
+
"--indent-guides",
|
|
872
|
+
dest="indent_guides",
|
|
873
|
+
action="store_true",
|
|
874
|
+
default=False,
|
|
875
|
+
help="display indent guides",
|
|
876
|
+
)
|
|
877
|
+
parser.add_argument(
|
|
878
|
+
"-l",
|
|
879
|
+
"--line-numbers",
|
|
880
|
+
dest="line_numbers",
|
|
881
|
+
action="store_true",
|
|
882
|
+
help="render line numbers",
|
|
883
|
+
)
|
|
884
|
+
parser.add_argument(
|
|
885
|
+
"-w",
|
|
886
|
+
"--width",
|
|
887
|
+
type=int,
|
|
888
|
+
dest="width",
|
|
889
|
+
default=None,
|
|
890
|
+
help="width of output (default will auto-detect)",
|
|
891
|
+
)
|
|
892
|
+
parser.add_argument(
|
|
893
|
+
"-r",
|
|
894
|
+
"--wrap",
|
|
895
|
+
dest="word_wrap",
|
|
896
|
+
action="store_true",
|
|
897
|
+
default=False,
|
|
898
|
+
help="word wrap long lines",
|
|
899
|
+
)
|
|
900
|
+
parser.add_argument(
|
|
901
|
+
"-s",
|
|
902
|
+
"--soft-wrap",
|
|
903
|
+
action="store_true",
|
|
904
|
+
dest="soft_wrap",
|
|
905
|
+
default=False,
|
|
906
|
+
help="enable soft wrapping mode",
|
|
907
|
+
)
|
|
908
|
+
parser.add_argument(
|
|
909
|
+
"-t", "--theme", dest="theme", default="monokai", help="pygments theme"
|
|
910
|
+
)
|
|
911
|
+
parser.add_argument(
|
|
912
|
+
"-b",
|
|
913
|
+
"--background-color",
|
|
914
|
+
dest="background_color",
|
|
915
|
+
default=None,
|
|
916
|
+
help="Override background color",
|
|
917
|
+
)
|
|
918
|
+
parser.add_argument(
|
|
919
|
+
"-x",
|
|
920
|
+
"--lexer",
|
|
921
|
+
default=None,
|
|
922
|
+
dest="lexer_name",
|
|
923
|
+
help="Lexer name",
|
|
924
|
+
)
|
|
925
|
+
parser.add_argument(
|
|
926
|
+
"-p", "--padding", type=int, default=0, dest="padding", help="Padding"
|
|
927
|
+
)
|
|
928
|
+
parser.add_argument(
|
|
929
|
+
"--highlight-line",
|
|
930
|
+
type=int,
|
|
931
|
+
default=None,
|
|
932
|
+
dest="highlight_line",
|
|
933
|
+
help="The line number (not index!) to highlight",
|
|
934
|
+
)
|
|
935
|
+
args = parser.parse_args()
|
|
936
|
+
|
|
937
|
+
from pip._vendor.rich.console import Console
|
|
938
|
+
|
|
939
|
+
console = Console(force_terminal=args.force_color, width=args.width)
|
|
940
|
+
|
|
941
|
+
if args.path == "-":
|
|
942
|
+
code = sys.stdin.read()
|
|
943
|
+
syntax = Syntax(
|
|
944
|
+
code=code,
|
|
945
|
+
lexer=args.lexer_name,
|
|
946
|
+
line_numbers=args.line_numbers,
|
|
947
|
+
word_wrap=args.word_wrap,
|
|
948
|
+
theme=args.theme,
|
|
949
|
+
background_color=args.background_color,
|
|
950
|
+
indent_guides=args.indent_guides,
|
|
951
|
+
padding=args.padding,
|
|
952
|
+
highlight_lines={args.highlight_line},
|
|
953
|
+
)
|
|
954
|
+
else:
|
|
955
|
+
syntax = Syntax.from_path(
|
|
956
|
+
args.path,
|
|
957
|
+
lexer=args.lexer_name,
|
|
958
|
+
line_numbers=args.line_numbers,
|
|
959
|
+
word_wrap=args.word_wrap,
|
|
960
|
+
theme=args.theme,
|
|
961
|
+
background_color=args.background_color,
|
|
962
|
+
indent_guides=args.indent_guides,
|
|
963
|
+
padding=args.padding,
|
|
964
|
+
highlight_lines={args.highlight_line},
|
|
965
|
+
)
|
|
966
|
+
console.print(syntax, soft_wrap=args.soft_wrap)
|