repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/models.py
venv/Lib/site-packages/pip/_vendor/requests/models.py
""" requests.models ~~~~~~~~~~~~~~~ This module contains the primary objects that power Requests. """ import datetime # Import encoding now, to avoid implicit import later. # Implicit import within threads may cause LookupError when standard library is in a ZIP, # such as in Embedded Python. See https://github.com/p...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
true
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/exceptions.py
venv/Lib/site-packages/pip/_vendor/requests/exceptions.py
""" requests.exceptions ~~~~~~~~~~~~~~~~~~~ This module contains the set of Requests' exceptions. """ from pip._vendor.urllib3.exceptions import HTTPError as BaseHTTPError from .compat import JSONDecodeError as CompatJSONDecodeError class RequestException(IOError): """There was an ambiguous exception that occur...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/utils.py
venv/Lib/site-packages/pip/_vendor/requests/utils.py
""" requests.utils ~~~~~~~~~~~~~~ This module provides utility functions that are used within Requests that are also useful for external consumption. """ import codecs import contextlib import io import os import re import socket import struct import sys import tempfile import warnings import zipfile from collections...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
true
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/adapters.py
venv/Lib/site-packages/pip/_vendor/requests/adapters.py
""" requests.adapters ~~~~~~~~~~~~~~~~~ This module contains the transport adapters that Requests uses to define and maintain connections. """ import os.path import socket # noqa: F401 import typing import warnings from pip._vendor.urllib3.exceptions import ClosedPoolError, ConnectTimeoutError from pip._vendor.urll...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/_internal_utils.py
venv/Lib/site-packages/pip/_vendor/requests/_internal_utils.py
""" requests._internal_utils ~~~~~~~~~~~~~~ Provides utility functions that are consumed internally by Requests which depend on extremely few external helpers (such as compat) """ import re from .compat import builtin_str _VALID_HEADER_NAME_RE_BYTE = re.compile(rb"^[^:\s][^:\r\n]*$") _VALID_HEADER_NAME_RE_STR = re.c...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/__init__.py
venv/Lib/site-packages/pip/_vendor/requests/__init__.py
# __ # /__) _ _ _ _ _/ _ # / ( (- (/ (/ (- _) / _) # / """ Requests HTTP Library ~~~~~~~~~~~~~~~~~~~~~ Requests is an HTTP library, written in Python, for human beings. Basic GET usage: >>> import requests >>> r = requests.get('https://www.python.org') >>> r.status_code 200 >...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/structures.py
venv/Lib/site-packages/pip/_vendor/requests/structures.py
""" requests.structures ~~~~~~~~~~~~~~~~~~~ Data structures that power Requests. """ from collections import OrderedDict from .compat import Mapping, MutableMapping class CaseInsensitiveDict(MutableMapping): """A case-insensitive ``dict``-like object. Implements all methods and operations of ``Mutable...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/sessions.py
venv/Lib/site-packages/pip/_vendor/requests/sessions.py
""" requests.sessions ~~~~~~~~~~~~~~~~~ This module provides a Session object to manage and persist settings across requests (cookies, auth, proxies). """ import os import sys import time from collections import OrderedDict from datetime import timedelta from ._internal_utils import to_native_string from .adapters im...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/certs.py
venv/Lib/site-packages/pip/_vendor/requests/certs.py
#!/usr/bin/env python """ requests.certs ~~~~~~~~~~~~~~ This module returns the preferred default CA certificate bundle. There is only one — the one from the certifi package. If you are packaging Requests, e.g., for a Linux distribution or a managed environment, you can change the definition of where() to return a s...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/hooks.py
venv/Lib/site-packages/pip/_vendor/requests/hooks.py
""" requests.hooks ~~~~~~~~~~~~~~ This module provides the capabilities for the Requests hooks system. Available hooks: ``response``: The response generated from a Request. """ HOOKS = ["response"] def default_hooks(): return {event: [] for event in HOOKS} # TODO: response is the only one def dispatch_...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/auth.py
venv/Lib/site-packages/pip/_vendor/requests/auth.py
""" requests.auth ~~~~~~~~~~~~~ This module contains the authentication handlers for Requests. """ import hashlib import os import re import threading import time import warnings from base64 import b64encode from ._internal_utils import to_native_string from .compat import basestring, str, urlparse from .cookies imp...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/__version__.py
venv/Lib/site-packages/pip/_vendor/requests/__version__.py
# .-. .-. .-. . . .-. .-. .-. .-. # |( |- |.| | | |- `-. | `-. # ' ' `-' `-`.`-' `-' `-' ' `-' __title__ = "requests" __description__ = "Python HTTP for Humans." __url__ = "https://requests.readthedocs.io" __version__ = "2.32.3" __build__ = 0x023203 __author__ = "Kenneth Reitz" __author_email__ = "me@kennethrei...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/help.py
venv/Lib/site-packages/pip/_vendor/requests/help.py
"""Module containing bug report helper(s).""" import json import platform import ssl import sys from pip._vendor import idna from pip._vendor import urllib3 from . import __version__ as requests_version charset_normalizer = None chardet = None try: from pip._vendor.urllib3.contrib import pyopenssl except Impor...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/status_codes.py
venv/Lib/site-packages/pip/_vendor/requests/status_codes.py
r""" The ``codes`` object defines a mapping from common names for HTTP statuses to their numerical codes, accessible either as attributes or as dictionary items. Example:: >>> import requests >>> requests.codes['temporary_redirect'] 307 >>> requests.codes.teapot 418 >>> requests.codes['\o/'] ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/requests/packages.py
venv/Lib/site-packages/pip/_vendor/requests/packages.py
import sys from .compat import chardet # This code exists for backwards compatibility reasons. # I don't like it either. Just look the other way. :) for package in ("urllib3", "idna"): vendored_package = "pip._vendor." + package locals()[package] = __import__(vendored_package) # This traversal is apparen...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/idna/idnadata.py
venv/Lib/site-packages/pip/_vendor/idna/idnadata.py
# This file is automatically generated by tools/idna-data __version__ = '15.1.0' scripts = { 'Greek': ( 0x37000000374, 0x37500000378, 0x37a0000037e, 0x37f00000380, 0x38400000385, 0x38600000387, 0x3880000038b, 0x38c0000038d, 0x38e000003a2, ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
true
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/idna/compat.py
venv/Lib/site-packages/pip/_vendor/idna/compat.py
from .core import * from .codec import * from typing import Any, Union def ToASCII(label: str) -> bytes: return encode(label) def ToUnicode(label: Union[bytes, bytearray]) -> str: return decode(label) def nameprep(s: Any) -> None: raise NotImplementedError('IDNA 2008 does not utilise nameprep protocol') ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/idna/core.py
venv/Lib/site-packages/pip/_vendor/idna/core.py
from . import idnadata import bisect import unicodedata import re from typing import Union, Optional from .intranges import intranges_contain _virama_combining_class = 9 _alabel_prefix = b'xn--' _unicode_dots_re = re.compile('[\u002e\u3002\uff0e\uff61]') class IDNAError(UnicodeError): """ Base exception for all I...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/idna/codec.py
venv/Lib/site-packages/pip/_vendor/idna/codec.py
from .core import encode, decode, alabel, ulabel, IDNAError import codecs import re from typing import Any, Tuple, Optional _unicode_dots_re = re.compile('[\u002e\u3002\uff0e\uff61]') class Codec(codecs.Codec): def encode(self, data: str, errors: str = 'strict') -> Tuple[bytes, int]: if errors != 'strict...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/idna/__init__.py
venv/Lib/site-packages/pip/_vendor/idna/__init__.py
from .package_data import __version__ from .core import ( IDNABidiError, IDNAError, InvalidCodepoint, InvalidCodepointContext, alabel, check_bidi, check_hyphen_ok, check_initial_combiner, check_label, check_nfc, decode, encode, ulabel, uts46_remap, valid_conte...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/idna/package_data.py
venv/Lib/site-packages/pip/_vendor/idna/package_data.py
__version__ = '3.7'
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/idna/intranges.py
venv/Lib/site-packages/pip/_vendor/idna/intranges.py
""" Given a list of integers, made up of (hopefully) a small number of long runs of consecutive integers, compute a representation of the form ((start1, end1), (start2, end2) ...). Then answer the question "was x present in the original list?" in time O(log(# runs)). """ import bisect from typing import List, Tuple d...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/idna/uts46data.py
venv/Lib/site-packages/pip/_vendor/idna/uts46data.py
# This file is automatically generated by tools/idna-data # vim: set fileencoding=utf-8 : from typing import List, Tuple, Union """IDNA Mapping Table from UTS46.""" __version__ = '15.1.0' def _seg_0() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: return [ (0x0, '3'), (0x1, '3'), (0x2, '3')...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
true
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/columns.py
venv/Lib/site-packages/pip/_vendor/rich/columns.py
from collections import defaultdict from itertools import chain from operator import itemgetter from typing import Dict, Iterable, List, Optional, Tuple from .align import Align, AlignMethod from .console import Console, ConsoleOptions, RenderableType, RenderResult from .constrain import Constrain from .measure import...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/default_styles.py
venv/Lib/site-packages/pip/_vendor/rich/default_styles.py
from typing import Dict from .style import Style DEFAULT_STYLES: Dict[str, Style] = { "none": Style.null(), "reset": Style( color="default", bgcolor="default", dim=False, bold=False, italic=False, underline=False, blink=False, blink2=False, ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/spinner.py
venv/Lib/site-packages/pip/_vendor/rich/spinner.py
from typing import cast, List, Optional, TYPE_CHECKING, Union from ._spinners import SPINNERS from .measure import Measurement from .table import Table from .text import Text if TYPE_CHECKING: from .console import Console, ConsoleOptions, RenderResult, RenderableType from .style import StyleType class Spinn...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_inspect.py
venv/Lib/site-packages/pip/_vendor/rich/_inspect.py
from __future__ import absolute_import import inspect from inspect import cleandoc, getdoc, getfile, isclass, ismodule, signature from typing import Any, Collection, Iterable, Optional, Tuple, Type, Union from .console import Group, RenderableType from .control import escape_control_codes from .highlighter import Rep...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/box.py
venv/Lib/site-packages/pip/_vendor/rich/box.py
import sys from typing import TYPE_CHECKING, Iterable, List if sys.version_info >= (3, 8): from typing import Literal else: from pip._vendor.typing_extensions import Literal # pragma: no cover from ._loop import loop_last if TYPE_CHECKING: from pip._vendor.rich.console import ConsoleOptions class Box...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/table.py
venv/Lib/site-packages/pip/_vendor/rich/table.py
from dataclasses import dataclass, field, replace from typing import ( TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Union, ) from . import box, errors from ._loop import loop_first_last, loop_last from ._pick import pick_bool from ._ratio import ratio_...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
true
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_spinners.py
venv/Lib/site-packages/pip/_vendor/rich/_spinners.py
""" Spinners are from: * cli-spinners: MIT License Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software withou...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/panel.py
venv/Lib/site-packages/pip/_vendor/rich/panel.py
from typing import TYPE_CHECKING, Optional from .align import AlignMethod from .box import ROUNDED, Box from .cells import cell_len from .jupyter import JupyterMixin from .measure import Measurement, measure_renderables from .padding import Padding, PaddingDimensions from .segment import Segment from .style import Sty...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/markup.py
venv/Lib/site-packages/pip/_vendor/rich/markup.py
import re from ast import literal_eval from operator import attrgetter from typing import Callable, Iterable, List, Match, NamedTuple, Optional, Tuple, Union from ._emoji_replace import _emoji_replace from .emoji import EmojiVariant from .errors import MarkupError from .style import Style from .text import Span, Text ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/align.py
venv/Lib/site-packages/pip/_vendor/rich/align.py
import sys from itertools import chain from typing import TYPE_CHECKING, Iterable, Optional if sys.version_info >= (3, 8): from typing import Literal else: from pip._vendor.typing_extensions import Literal # pragma: no cover from .constrain import Constrain from .jupyter import JupyterMixin from .measure imp...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_wrap.py
venv/Lib/site-packages/pip/_vendor/rich/_wrap.py
from __future__ import annotations import re from typing import Iterable from ._loop import loop_last from .cells import cell_len, chop_cells re_word = re.compile(r"\s*\S+\s*") def words(text: str) -> Iterable[tuple[int, int, str]]: """Yields each word from the text as a tuple containing (start_index, end_...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_fileno.py
venv/Lib/site-packages/pip/_vendor/rich/_fileno.py
from __future__ import annotations from typing import IO, Callable def get_fileno(file_like: IO[str]) -> int | None: """Get fileno() from a file, accounting for poorly implemented file-like objects. Args: file_like (IO): A file-like object. Returns: int | None: The result of fileno if a...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/segment.py
venv/Lib/site-packages/pip/_vendor/rich/segment.py
from enum import IntEnum from functools import lru_cache from itertools import filterfalse from logging import getLogger from operator import attrgetter from typing import ( TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Type, Union, ) from .cells im...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/tree.py
venv/Lib/site-packages/pip/_vendor/rich/tree.py
from typing import Iterator, List, Optional, Tuple from ._loop import loop_first, loop_last from .console import Console, ConsoleOptions, RenderableType, RenderResult from .jupyter import JupyterMixin from .measure import Measurement from .segment import Segment from .style import Style, StyleStack, StyleType from .st...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_export_format.py
venv/Lib/site-packages/pip/_vendor/rich/_export_format.py
CONSOLE_HTML_FORMAT = """\ <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> {stylesheet} body {{ color: {foreground}; background-color: {background}; }} </style> </head> <body> <pre style="font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace"><code style="font-family:inherit">{c...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/themes.py
venv/Lib/site-packages/pip/_vendor/rich/themes.py
from .default_styles import DEFAULT_STYLES from .theme import Theme DEFAULT = Theme(DEFAULT_STYLES)
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_windows.py
venv/Lib/site-packages/pip/_vendor/rich/_windows.py
import sys from dataclasses import dataclass @dataclass class WindowsConsoleFeatures: """Windows features available.""" vt: bool = False """The console supports VT codes.""" truecolor: bool = False """The console supports truecolor.""" try: import ctypes from ctypes import LibraryLoader...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_ratio.py
venv/Lib/site-packages/pip/_vendor/rich/_ratio.py
import sys from fractions import Fraction from math import ceil from typing import cast, List, Optional, Sequence if sys.version_info >= (3, 8): from typing import Protocol else: from pip._vendor.typing_extensions import Protocol # pragma: no cover class Edge(Protocol): """Any object that defines an edg...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/bar.py
venv/Lib/site-packages/pip/_vendor/rich/bar.py
from typing import Optional, Union from .color import Color from .console import Console, ConsoleOptions, RenderResult from .jupyter import JupyterMixin from .measure import Measurement from .segment import Segment from .style import Style # There are left-aligned characters for 1/8 to 7/8, but # the right-aligned ch...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/live.py
venv/Lib/site-packages/pip/_vendor/rich/live.py
import sys from threading import Event, RLock, Thread from types import TracebackType from typing import IO, Any, Callable, List, Optional, TextIO, Type, cast from . import get_console from .console import Console, ConsoleRenderable, RenderableType, RenderHook from .control import Control from .file_proxy import FileP...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/control.py
venv/Lib/site-packages/pip/_vendor/rich/control.py
import sys import time from typing import TYPE_CHECKING, Callable, Dict, Iterable, List, Union if sys.version_info >= (3, 8): from typing import Final else: from pip._vendor.typing_extensions import Final # pragma: no cover from .segment import ControlCode, ControlType, Segment if TYPE_CHECKING: from .c...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_windows_renderer.py
venv/Lib/site-packages/pip/_vendor/rich/_windows_renderer.py
from typing import Iterable, Sequence, Tuple, cast from pip._vendor.rich._win32_console import LegacyWindowsTerm, WindowsCoordinates from pip._vendor.rich.segment import ControlCode, ControlType, Segment def legacy_windows_render(buffer: Iterable[Segment], term: LegacyWindowsTerm) -> None: """Makes appropriate W...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/file_proxy.py
venv/Lib/site-packages/pip/_vendor/rich/file_proxy.py
import io from typing import IO, TYPE_CHECKING, Any, List from .ansi import AnsiDecoder from .text import Text if TYPE_CHECKING: from .console import Console class FileProxy(io.TextIOBase): """Wraps a file (e.g. sys.stdout) and redirects writes to a console.""" def __init__(self, console: "Console", fi...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/color_triplet.py
venv/Lib/site-packages/pip/_vendor/rich/color_triplet.py
from typing import NamedTuple, Tuple class ColorTriplet(NamedTuple): """The red, green, and blue components of a color.""" red: int """Red component in 0 to 255 range.""" green: int """Green component in 0 to 255 range.""" blue: int """Blue component in 0 to 255 range.""" @property ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/measure.py
venv/Lib/site-packages/pip/_vendor/rich/measure.py
from operator import itemgetter from typing import TYPE_CHECKING, Callable, NamedTuple, Optional, Sequence from . import errors from .protocol import is_renderable, rich_cast if TYPE_CHECKING: from .console import Console, ConsoleOptions, RenderableType class Measurement(NamedTuple): """Stores the minimum a...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_win32_console.py
venv/Lib/site-packages/pip/_vendor/rich/_win32_console.py
"""Light wrapper around the Win32 Console API - this module should only be imported on Windows The API that this module wraps is documented at https://docs.microsoft.com/en-us/windows/console/console-functions """ import ctypes import sys from typing import Any windll: Any = None if sys.platform == "win32": windl...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/pager.py
venv/Lib/site-packages/pip/_vendor/rich/pager.py
from abc import ABC, abstractmethod from typing import Any class Pager(ABC): """Base class for a pager.""" @abstractmethod def show(self, content: str) -> None: """Show content in pager. Args: content (str): Content to be displayed. """ class SystemPager(Pager): ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/console.py
venv/Lib/site-packages/pip/_vendor/rich/console.py
import inspect import os import platform import sys import threading import zlib from abc import ABC, abstractmethod from dataclasses import dataclass, field from datetime import datetime from functools import wraps from getpass import getpass from html import escape from inspect import isclass from itertools import is...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
true
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/styled.py
venv/Lib/site-packages/pip/_vendor/rich/styled.py
from typing import TYPE_CHECKING from .measure import Measurement from .segment import Segment from .style import StyleType if TYPE_CHECKING: from .console import Console, ConsoleOptions, RenderResult, RenderableType class Styled: """Apply a style to a renderable. Args: renderable (RenderableTy...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/cells.py
venv/Lib/site-packages/pip/_vendor/rich/cells.py
from __future__ import annotations import re from functools import lru_cache from typing import Callable from ._cell_widths import CELL_WIDTHS # Regex to match sequence of the most common character ranges _is_single_cell_widths = re.compile("^[\u0020-\u006f\u00a0\u02ff\u0370-\u0482]*$").match @lru_cache(4096) def ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_emoji_replace.py
venv/Lib/site-packages/pip/_vendor/rich/_emoji_replace.py
from typing import Callable, Match, Optional import re from ._emoji_codes import EMOJI _ReStringMatch = Match[str] # regex match object _ReSubCallable = Callable[[_ReStringMatch], str] # Callable invoked by re.sub _EmojiSubMethod = Callable[[_ReSubCallable, str], str] # Sub method of a compiled re def _emoji_re...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_null_file.py
venv/Lib/site-packages/pip/_vendor/rich/_null_file.py
from types import TracebackType from typing import IO, Iterable, Iterator, List, Optional, Type class NullFile(IO[str]): def close(self) -> None: pass def isatty(self) -> bool: return False def read(self, __n: int = 1) -> str: return "" def readable(self) -> bool: re...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/palette.py
venv/Lib/site-packages/pip/_vendor/rich/palette.py
from math import sqrt from functools import lru_cache from typing import Sequence, Tuple, TYPE_CHECKING from .color_triplet import ColorTriplet if TYPE_CHECKING: from pip._vendor.rich.table import Table class Palette: """A palette of available colors.""" def __init__(self, colors: Sequence[Tuple[int, i...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_loop.py
venv/Lib/site-packages/pip/_vendor/rich/_loop.py
from typing import Iterable, Tuple, TypeVar T = TypeVar("T") def loop_first(values: Iterable[T]) -> Iterable[Tuple[bool, T]]: """Iterate and generate a tuple with a flag for first value.""" iter_values = iter(values) try: value = next(iter_values) except StopIteration: return yiel...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/filesize.py
venv/Lib/site-packages/pip/_vendor/rich/filesize.py
# coding: utf-8 """Functions for reporting filesizes. Borrowed from https://github.com/PyFilesystem/pyfilesystem2 The functions declared in this module should cover the different use cases needed to generate a string representation of a file size using several different units. Since there are many standards regarding ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/__main__.py
venv/Lib/site-packages/pip/_vendor/rich/__main__.py
import colorsys import io from time import process_time from pip._vendor.rich import box from pip._vendor.rich.color import Color from pip._vendor.rich.console import Console, ConsoleOptions, Group, RenderableType, RenderResult from pip._vendor.rich.markdown import Markdown from pip._vendor.rich.measure import Measure...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/scope.py
venv/Lib/site-packages/pip/_vendor/rich/scope.py
from collections.abc import Mapping from typing import TYPE_CHECKING, Any, Optional, Tuple from .highlighter import ReprHighlighter from .panel import Panel from .pretty import Pretty from .table import Table from .text import Text, TextType if TYPE_CHECKING: from .console import ConsoleRenderable def render_sc...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/containers.py
venv/Lib/site-packages/pip/_vendor/rich/containers.py
from itertools import zip_longest from typing import ( TYPE_CHECKING, Iterable, Iterator, List, Optional, TypeVar, Union, overload, ) if TYPE_CHECKING: from .console import ( Console, ConsoleOptions, JustifyMethod, OverflowMethod, RenderResult...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_log_render.py
venv/Lib/site-packages/pip/_vendor/rich/_log_render.py
from datetime import datetime from typing import Iterable, List, Optional, TYPE_CHECKING, Union, Callable from .text import Text, TextType if TYPE_CHECKING: from .console import Console, ConsoleRenderable, RenderableType from .table import Table FormatTimeCallable = Callable[[datetime], Text] class LogRen...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/traceback.py
venv/Lib/site-packages/pip/_vendor/rich/traceback.py
from __future__ import absolute_import import linecache import os import platform import sys from dataclasses import dataclass, field from traceback import walk_tb from types import ModuleType, TracebackType from typing import ( Any, Callable, Dict, Iterable, List, Optional, Sequence, T...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/prompt.py
venv/Lib/site-packages/pip/_vendor/rich/prompt.py
from typing import Any, Generic, List, Optional, TextIO, TypeVar, Union, overload from . import get_console from .console import Console from .text import Text, TextType PromptType = TypeVar("PromptType") DefaultType = TypeVar("DefaultType") class PromptError(Exception): """Exception base class for prompt relat...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/terminal_theme.py
venv/Lib/site-packages/pip/_vendor/rich/terminal_theme.py
from typing import List, Optional, Tuple from .color_triplet import ColorTriplet from .palette import Palette _ColorTuple = Tuple[int, int, int] class TerminalTheme: """A color theme used when exporting console content. Args: background (Tuple[int, int, int]): The background color. foregrou...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/errors.py
venv/Lib/site-packages/pip/_vendor/rich/errors.py
class ConsoleError(Exception): """An error in console operation.""" class StyleError(Exception): """An error in styles.""" class StyleSyntaxError(ConsoleError): """Style was badly formatted.""" class MissingStyle(StyleError): """No such style.""" class StyleStackError(ConsoleError): """Style...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/theme.py
venv/Lib/site-packages/pip/_vendor/rich/theme.py
import configparser from typing import Dict, List, IO, Mapping, Optional from .default_styles import DEFAULT_STYLES from .style import Style, StyleType class Theme: """A container for style information, used by :class:`~rich.console.Console`. Args: styles (Dict[str, Style], optional): A mapping of s...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_pick.py
venv/Lib/site-packages/pip/_vendor/rich/_pick.py
from typing import Optional def pick_bool(*values: Optional[bool]) -> bool: """Pick the first non-none bool or return the last value. Args: *values (bool): Any number of boolean or None values. Returns: bool: First non-none boolean. """ assert values, "1 or more values required" ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/jupyter.py
venv/Lib/site-packages/pip/_vendor/rich/jupyter.py
from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Sequence if TYPE_CHECKING: from pip._vendor.rich.console import ConsoleRenderable from . import get_console from .segment import Segment from .terminal_theme import DEFAULT_TERMINAL_THEME if TYPE_CHECKING: from pip._vendor.rich.console import Conso...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/logging.py
venv/Lib/site-packages/pip/_vendor/rich/logging.py
import logging from datetime import datetime from logging import Handler, LogRecord from pathlib import Path from types import ModuleType from typing import ClassVar, Iterable, List, Optional, Type, Union from pip._vendor.rich._null_file import NullFile from . import get_console from ._log_render import FormatTimeCal...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/screen.py
venv/Lib/site-packages/pip/_vendor/rich/screen.py
from typing import Optional, TYPE_CHECKING from .segment import Segment from .style import StyleType from ._loop import loop_last if TYPE_CHECKING: from .console import ( Console, ConsoleOptions, RenderResult, RenderableType, Group, ) class Screen: """A renderabl...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/progress.py
venv/Lib/site-packages/pip/_vendor/rich/progress.py
import io import sys import typing import warnings from abc import ABC, abstractmethod from collections import deque from dataclasses import dataclass, field from datetime import timedelta from io import RawIOBase, UnsupportedOperation from math import ceil from mmap import mmap from operator import length_hint from os...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
true
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/region.py
venv/Lib/site-packages/pip/_vendor/rich/region.py
from typing import NamedTuple class Region(NamedTuple): """Defines a rectangular region of the screen.""" x: int y: int width: int height: int
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/highlighter.py
venv/Lib/site-packages/pip/_vendor/rich/highlighter.py
import re from abc import ABC, abstractmethod from typing import List, Union from .text import Span, Text def _combine_regex(*regexes: str) -> str: """Combine a number of regexes in to a single regex. Returns: str: New regex with all regexes ORed together. """ return "|".join(regexes) clas...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_palettes.py
venv/Lib/site-packages/pip/_vendor/rich/_palettes.py
from .palette import Palette # Taken from https://en.wikipedia.org/wiki/ANSI_escape_code (Windows 10 column) WINDOWS_PALETTE = Palette( [ (12, 12, 12), (197, 15, 31), (19, 161, 14), (193, 156, 0), (0, 55, 218), (136, 23, 152), (58, 150, 221), (204, 2...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/pretty.py
venv/Lib/site-packages/pip/_vendor/rich/pretty.py
import builtins import collections import dataclasses import inspect import os import sys from array import array from collections import Counter, UserDict, UserList, defaultdict, deque from dataclasses import dataclass, fields, is_dataclass from inspect import isclass from itertools import islice from types import Map...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
true
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/__init__.py
venv/Lib/site-packages/pip/_vendor/rich/__init__.py
"""Rich text and beautiful formatting in the terminal.""" import os from typing import IO, TYPE_CHECKING, Any, Callable, Optional, Union from ._extension import load_ipython_extension # noqa: F401 __all__ = ["get_console", "reconfigure", "print", "inspect", "print_json"] if TYPE_CHECKING: from .console import ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/protocol.py
venv/Lib/site-packages/pip/_vendor/rich/protocol.py
from typing import Any, cast, Set, TYPE_CHECKING from inspect import isclass if TYPE_CHECKING: from pip._vendor.rich.console import RenderableType _GIBBERISH = """aihwerij235234ljsdnp34ksodfipwoe234234jlskjdf""" def is_renderable(check_object: Any) -> bool: """Check if an object may be rendered by Rich.""" ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/emoji.py
venv/Lib/site-packages/pip/_vendor/rich/emoji.py
import sys from typing import TYPE_CHECKING, Optional, Union from .jupyter import JupyterMixin from .segment import Segment from .style import Style from ._emoji_codes import EMOJI from ._emoji_replace import _emoji_replace if sys.version_info >= (3, 8): from typing import Literal else: from pip._vendor.typin...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/abc.py
venv/Lib/site-packages/pip/_vendor/rich/abc.py
from abc import ABC class RichRenderable(ABC): """An abstract base class for Rich renderables. Note that there is no need to extend this class, the intended use is to check if an object supports the Rich renderable protocol. For example:: if isinstance(my_object, RichRenderable): con...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_stack.py
venv/Lib/site-packages/pip/_vendor/rich/_stack.py
from typing import List, TypeVar T = TypeVar("T") class Stack(List[T]): """A small shim over builtin list.""" @property def top(self) -> T: """Get top of stack.""" return self[-1] def push(self, item: T) -> None: """Push an item on to the stack (append in stack nomenclature)...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/status.py
venv/Lib/site-packages/pip/_vendor/rich/status.py
from types import TracebackType from typing import Optional, Type from .console import Console, RenderableType from .jupyter import JupyterMixin from .live import Live from .spinner import Spinner from .style import StyleType class Status(JupyterMixin): """Displays a status indicator with a 'spinner' animation. ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/json.py
venv/Lib/site-packages/pip/_vendor/rich/json.py
from pathlib import Path from json import loads, dumps from typing import Any, Callable, Optional, Union from .text import Text from .highlighter import JSONHighlighter, NullHighlighter class JSON: """A renderable which pretty prints JSON. Args: json (str): JSON encoded data. indent (Union[N...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/color.py
venv/Lib/site-packages/pip/_vendor/rich/color.py
import platform import re from colorsys import rgb_to_hls from enum import IntEnum from functools import lru_cache from typing import TYPE_CHECKING, NamedTuple, Optional, Tuple from ._palettes import EIGHT_BIT_PALETTE, STANDARD_PALETTE, WINDOWS_PALETTE from .color_triplet import ColorTriplet from .repr import Result, ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/constrain.py
venv/Lib/site-packages/pip/_vendor/rich/constrain.py
from typing import Optional, TYPE_CHECKING from .jupyter import JupyterMixin from .measure import Measurement if TYPE_CHECKING: from .console import Console, ConsoleOptions, RenderableType, RenderResult class Constrain(JupyterMixin): """Constrain the width of a renderable to a given number of characters. ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/text.py
venv/Lib/site-packages/pip/_vendor/rich/text.py
import re from functools import partial, reduce from math import gcd from operator import itemgetter from typing import ( TYPE_CHECKING, Any, Callable, Dict, Iterable, List, NamedTuple, Optional, Tuple, Union, ) from ._loop import loop_last from ._pick import pick_bool from ._wr...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
true
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/ansi.py
venv/Lib/site-packages/pip/_vendor/rich/ansi.py
import re import sys from contextlib import suppress from typing import Iterable, NamedTuple, Optional from .color import Color from .style import Style from .text import Text re_ansi = re.compile( r""" (?:\x1b\](.*?)\x1b\\)| (?:\x1b([(@-Z\\-_]|\[[0-?]*[ -/]*[@-~])) """, re.VERBOSE, ) class _AnsiToken(Named...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/syntax.py
venv/Lib/site-packages/pip/_vendor/rich/syntax.py
import os.path import platform import re import sys import textwrap from abc import ABC, abstractmethod from pathlib import Path from typing import ( Any, Dict, Iterable, List, NamedTuple, Optional, Sequence, Set, Tuple, Type, Union, ) from pip._vendor.pygments.lexer import ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
true
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_cell_widths.py
venv/Lib/site-packages/pip/_vendor/rich/_cell_widths.py
# Auto generated by make_terminal_widths.py CELL_WIDTHS = [ (0, 0, 0), (1, 31, -1), (127, 159, -1), (173, 173, 0), (768, 879, 0), (1155, 1161, 0), (1425, 1469, 0), (1471, 1471, 0), (1473, 1474, 0), (1476, 1477, 0), (1479, 1479, 0), (1536, 1541, 0), (1552, 1562, 0), ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/progress_bar.py
venv/Lib/site-packages/pip/_vendor/rich/progress_bar.py
import math from functools import lru_cache from time import monotonic from typing import Iterable, List, Optional from .color import Color, blend_rgb from .color_triplet import ColorTriplet from .console import Console, ConsoleOptions, RenderResult from .jupyter import JupyterMixin from .measure import Measurement fr...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_timer.py
venv/Lib/site-packages/pip/_vendor/rich/_timer.py
""" Timer context manager, only used in debug. """ from time import time import contextlib from typing import Generator @contextlib.contextmanager def timer(subject: str = "time") -> Generator[None, None, None]: """print the elapsed time. (only used in debugging)""" start = time() yield elapsed = t...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/repr.py
venv/Lib/site-packages/pip/_vendor/rich/repr.py
import inspect from functools import partial from typing import ( Any, Callable, Iterable, List, Optional, Tuple, Type, TypeVar, Union, overload, ) T = TypeVar("T") Result = Iterable[Union[Any, Tuple[Any], Tuple[str, Any], Tuple[str, Any, Any]]] RichReprResult = Result class...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_emoji_codes.py
venv/Lib/site-packages/pip/_vendor/rich/_emoji_codes.py
EMOJI = { "1st_place_medal": "🥇", "2nd_place_medal": "🥈", "3rd_place_medal": "🥉", "ab_button_(blood_type)": "🆎", "atm_sign": "🏧", "a_button_(blood_type)": "🅰", "afghanistan": "🇦🇫", "albania": "🇦🇱", "algeria": "🇩🇿", "american_samoa": "🇦🇸", "andorra": "🇦🇩", ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
true
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/live_render.py
venv/Lib/site-packages/pip/_vendor/rich/live_render.py
import sys from typing import Optional, Tuple if sys.version_info >= (3, 8): from typing import Literal else: from pip._vendor.typing_extensions import Literal # pragma: no cover from ._loop import loop_last from .console import Console, ConsoleOptions, RenderableType, RenderResult from .control import Cont...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/_extension.py
venv/Lib/site-packages/pip/_vendor/rich/_extension.py
from typing import Any def load_ipython_extension(ip: Any) -> None: # pragma: no cover # prevent circular import from pip._vendor.rich.pretty import install from pip._vendor.rich.traceback import install as tr_install install() tr_install()
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/rule.py
venv/Lib/site-packages/pip/_vendor/rich/rule.py
from typing import Union from .align import AlignMethod from .cells import cell_len, set_cell_size from .console import Console, ConsoleOptions, RenderResult from .jupyter import JupyterMixin from .measure import Measurement from .style import Style from .text import Text class Rule(JupyterMixin): """A console r...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/diagnose.py
venv/Lib/site-packages/pip/_vendor/rich/diagnose.py
import os import platform from pip._vendor.rich import inspect from pip._vendor.rich.console import Console, get_windows_console_features from pip._vendor.rich.panel import Panel from pip._vendor.rich.pretty import Pretty def report() -> None: # pragma: no cover """Print a report to the terminal with debugging ...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/style.py
venv/Lib/site-packages/pip/_vendor/rich/style.py
import sys from functools import lru_cache from marshal import dumps, loads from random import randint from typing import Any, Dict, Iterable, List, Optional, Type, Union, cast from . import errors from .color import Color, ColorParseError, ColorSystem, blend_rgb from .repr import Result, rich_repr from .terminal_them...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/padding.py
venv/Lib/site-packages/pip/_vendor/rich/padding.py
from typing import cast, List, Optional, Tuple, TYPE_CHECKING, Union if TYPE_CHECKING: from .console import ( Console, ConsoleOptions, RenderableType, RenderResult, ) from .jupyter import JupyterMixin from .measure import Measurement from .style import Style from .segment import...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false
geekcomputers/Python
https://github.com/geekcomputers/Python/blob/21cbdf223aadd1c28293570d1106fe47af6e9434/venv/Lib/site-packages/pip/_vendor/rich/layout.py
venv/Lib/site-packages/pip/_vendor/rich/layout.py
from abc import ABC, abstractmethod from itertools import islice from operator import itemgetter from threading import RLock from typing import ( TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Union, ) from ._ratio import ratio_resolve from .align import...
python
MIT
21cbdf223aadd1c28293570d1106fe47af6e9434
2026-01-04T14:42:18.827821Z
false