id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
⌀
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
14,700
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/cookies.py
pipenv.patched.pip._vendor.requests.cookies.RequestsCookieJar
import copy from .compat import Morsel, MutableMapping, cookielib, urlparse, urlunparse class RequestsCookieJar(cookielib.CookieJar, MutableMapping): """Compatibility class; is a http.cookiejar.CookieJar, but exposes a dict interface. This is the CookieJar we create by default for requests and sessions th...
class RequestsCookieJar(cookielib.CookieJar, MutableMapping): '''Compatibility class; is a http.cookiejar.CookieJar, but exposes a dict interface. This is the CookieJar we create by default for requests and sessions that don't specify one, since some clients may expect response.cookies and session....
25
23
9
1
5
4
2
0.81
2
5
1
0
24
1
24
86
262
44
121
44
96
98
109
44
84
7
7
5
53
14,701
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/exceptions.py
pipenv.patched.pip._vendor.requests.exceptions.ContentDecodingError
from pipenv.patched.pip._vendor.urllib3.exceptions import HTTPError as BaseHTTPError class ContentDecodingError(RequestException, BaseHTTPError): """Failed to decode response content."""
class ContentDecodingError(RequestException, BaseHTTPError): '''Failed to decode response content.''' pass
1
1
0
0
0
0
0
1
2
0
0
0
0
0
0
11
2
0
1
1
0
1
1
1
0
0
4
0
0
14,702
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/exceptions.py
pipenv.patched.pip._vendor.requests.exceptions.InvalidJSONError
class InvalidJSONError(RequestException): """A JSON error occurred."""
class InvalidJSONError(RequestException): '''A JSON error occurred.''' pass
1
1
0
0
0
0
0
1
1
0
0
1
0
0
0
1
2
0
1
1
0
1
1
1
0
0
2
0
0
14,703
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/exceptions.py
pipenv.patched.pip._vendor.requests.exceptions.InvalidSchema
class InvalidSchema(RequestException, ValueError): """The URL scheme provided is either invalid or unsupported."""
class InvalidSchema(RequestException, ValueError): '''The URL scheme provided is either invalid or unsupported.''' pass
1
1
0
0
0
0
0
1
2
0
0
0
0
0
0
12
2
0
1
1
0
1
1
1
0
0
4
0
0
14,704
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/exceptions.py
pipenv.patched.pip._vendor.requests.exceptions.JSONDecodeError
from .compat import JSONDecodeError as CompatJSONDecodeError class JSONDecodeError(InvalidJSONError, CompatJSONDecodeError): """Couldn't decode the text into json""" def __init__(self, *args, **kwargs): """ Construct the JSONDecodeError instance first with all args. Then use it's args ...
class JSONDecodeError(InvalidJSONError, CompatJSONDecodeError): '''Couldn't decode the text into json''' def __init__(self, *args, **kwargs): ''' Construct the JSONDecodeError instance first with all args. Then use it's args to construct the IOError so that the json specific ar...
3
3
9
0
3
7
1
2.33
2
0
0
0
2
0
2
16
22
2
6
3
3
14
6
3
3
1
5
0
2
14,705
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/exceptions.py
pipenv.patched.pip._vendor.requests.exceptions.MissingSchema
class MissingSchema(RequestException, ValueError): """The URL scheme (e.g. http or https) is missing."""
class MissingSchema(RequestException, ValueError): '''The URL scheme (e.g. http or https) is missing.''' pass
1
1
0
0
0
0
0
1
2
0
0
0
0
0
0
12
2
0
1
1
0
1
1
1
0
0
4
0
0
14,706
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/exceptions.py
pipenv.patched.pip._vendor.requests.exceptions.RequestException
class RequestException(IOError): """There was an ambiguous exception that occurred while handling your request. """ def __init__(self, *args, **kwargs): """Initialize RequestException with `request` and `response` objects.""" response = kwargs.pop('response', None) self.response...
class RequestException(IOError): '''There was an ambiguous exception that occurred while handling your request. ''' def __init__(self, *args, **kwargs): '''Initialize RequestException with `request` and `response` objects.''' pass
2
2
8
0
7
1
2
0.5
1
1
0
15
1
2
1
1
13
1
8
5
6
4
8
5
6
2
1
1
2
14,707
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/models.py
pipenv.patched.pip._vendor.requests.models.PreparedRequest
from .cookies import _copy_cookie_jar, cookiejar_from_dict, get_cookie_header from pipenv.patched.pip._vendor.urllib3.util import parse_url from .exceptions import ChunkedEncodingError, ConnectionError, ContentDecodingError, HTTPError, InvalidJSONError, InvalidURL from io import UnsupportedOperation from .hooks import ...
class PreparedRequest(RequestEncodingMixin, RequestHooksMixin): '''The fully mutable :class:`PreparedRequest <PreparedRequest>` object, containing the exact bytes that will be sent to the server. Instances are generated from a :class:`Request <Request>` object, and should not be instantiated manually; ...
15
10
22
3
14
5
4
0.45
2
20
7
0
12
7
13
18
325
54
187
52
159
84
152
37
137
15
1
4
55
14,708
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/models.py
pipenv.patched.pip._vendor.requests.models.Request
from .hooks import default_hooks from .compat import json as complexjson class Request(RequestHooksMixin): """A user-created :class:`Request <Request>` object. Used to prepare a :class:`PreparedRequest <PreparedRequest>`, which is sent to the server. :param method: HTTP method to use. :param url: URL...
class Request(RequestHooksMixin): '''A user-created :class:`Request <Request>` object. Used to prepare a :class:`PreparedRequest <PreparedRequest>`, which is sent to the server. :param method: HTTP method to use. :param url: URL to send. :param headers: dictionary of headers to send. :param fil...
4
2
17
1
16
1
3
0.5
1
2
1
0
3
10
3
5
81
9
48
28
32
24
25
16
21
7
1
1
9
14,709
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/models.py
pipenv.patched.pip._vendor.requests.models.RequestEncodingMixin
from pipenv.patched.pip._vendor.urllib3.fields import RequestField from .compat import urlencode, urlsplit, urlunparse from .utils import check_header_validity, get_auth_from_url, guess_filename, guess_json_utf, iter_slices, parse_header_links, requote_uri, stream_decode_response_unicode, super_len, to_key_val_list fro...
class RequestEncodingMixin: @property def path_url(self): '''Build the path URL to use.''' pass @staticmethod def _encode_params(data): '''Encode parameters in a piece of data. Will successfully encode parameters when passed as a dict or a list of 2-tuples. Orde...
7
3
38
6
27
5
10
0.17
0
7
1
1
1
0
3
3
120
19
86
25
79
15
61
22
57
17
0
4
30
14,710
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/models.py
pipenv.patched.pip._vendor.requests.models.RequestHooksMixin
from .compat import Callable, JSONDecodeError, Mapping, basestring, builtin_str, chardet, cookielib class RequestHooksMixin: def register_hook(self, event, hook): """Properly register a hook.""" if event not in self.hooks: raise ValueError(f'Unsupported event specified, with event name...
class RequestHooksMixin: def register_hook(self, event, hook): '''Properly register a hook.''' pass def deregister_hook(self, event, hook): '''Deregister a previously registered hook. Returns True if the hook existed, False if not. ''' pass
3
2
10
2
7
2
3
0.29
0
2
0
2
2
0
2
2
22
4
14
3
11
4
13
3
10
4
0
1
6
14,711
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/models.py
pipenv.patched.pip._vendor.requests.models.Response
from .exceptions import JSONDecodeError as RequestsJSONDecodeError from .utils import check_header_validity, get_auth_from_url, guess_filename, guess_json_utf, iter_slices, parse_header_links, requote_uri, stream_decode_response_unicode, super_len, to_key_val_list from .exceptions import SSLError as RequestsSSLError fr...
class Response: '''The :class:`Response <Response>` object, which contains a server's response to an HTTP request. ''' def __init__(self): pass def __enter__(self): pass def __exit__(self, *args): pass def __getstate__(self): pass def __setstate__(se...
32
17
16
2
9
5
3
0.62
0
21
9
0
22
13
22
22
398
78
198
69
164
122
158
57
134
8
0
3
63
14,712
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/sessions.py
pipenv.patched.pip._vendor.requests.sessions.Session
from .models import DEFAULT_REDIRECT_LIMIT, REDIRECT_STATI, PreparedRequest, Request from .structures import CaseInsensitiveDict from datetime import timedelta from .exceptions import ChunkedEncodingError, ContentDecodingError, InvalidSchema, TooManyRedirects from .utils import DEFAULT_PORTS, default_headers, get_auth_...
class Session(SessionRedirectMixin): '''A Requests session. Provides cookie persistence, connection-pooling, and configuration. Basic Usage:: >>> import requests >>> s = requests.Session() >>> s.get('https://httpbin.org/get') <Response [200]> Or as a context manager:: >>> ...
20
15
22
3
10
9
2
0.93
1
11
6
1
19
12
19
25
461
83
196
79
158
182
127
61
107
10
1
2
39
14,713
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/sessions.py
pipenv.patched.pip._vendor.requests.sessions.SessionRedirectMixin
from .compat import Mapping, cookielib, urljoin, urlparse from .exceptions import ChunkedEncodingError, ContentDecodingError, InvalidSchema, TooManyRedirects from .status_codes import codes from .auth import _basic_auth_str from .cookies import RequestsCookieJar, cookiejar_from_dict, extract_cookies_to_jar, merge_cooki...
class SessionRedirectMixin: def get_redirect_target(self, resp): '''Receives a Response. Returns a redirect URI or ``None``''' pass def should_strip_auth(self, old_url, new_url): '''Decide whether Authorization header should be removed when redirecting''' pass def resolve...
7
6
40
6
23
12
5
0.49
0
5
3
1
6
0
6
6
248
40
141
42
123
69
100
31
93
12
0
3
30
14,714
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/requests/structures.py
pipenv.patched.pip._vendor.requests.structures.LookupDict
class LookupDict(dict): """Dictionary lookup object.""" def __init__(self, name=None): self.name = name super().__init__() def __repr__(self): return f"<lookup '{self.name}'>" def __getitem__(self, key): return self.__dict__.get(key, None) def get(self, key, defau...
class LookupDict(dict): '''Dictionary lookup object.''' def __init__(self, name=None): pass def __repr__(self): pass def __getitem__(self, key): pass def get(self, key, default=None): pass
5
1
3
0
2
0
1
0.2
1
1
0
0
4
1
4
31
17
5
10
6
5
2
10
6
5
1
2
0
4
14,715
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/resolvelib/providers.py
pipenv.patched.pip._vendor.resolvelib.providers.AbstractProvider
from typing import TYPE_CHECKING, Generic, Iterable, Iterator, Mapping, Sequence from .structs import CT, KT, RT, Matches, RequirementInformation class AbstractProvider(Generic[RT, CT, KT]): """Delegate class to provide the required interface for the resolver.""" def identify(self, requirement_or_candidate: R...
class AbstractProvider(Generic[RT, CT, KT]): '''Delegate class to provide the required interface for the resolver.''' def identify(self, requirement_or_candidate: RT | CT) -> KT: '''Given a requirement or candidate, return an identifier for it. This is used to identify, e.g. whether two requir...
7
7
20
3
3
14
1
3.94
1
1
0
0
5
0
5
5
109
20
18
13
5
71
11
6
5
1
1
0
5
14,716
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/resolvelib/reporters.py
pipenv.patched.pip._vendor.resolvelib.reporters.BaseReporter
from typing import TYPE_CHECKING, Collection, Generic from .structs import CT, KT, RT, RequirementInformation, State class BaseReporter(Generic[RT, CT, KT]): """Delegate class to provide progress reporting for the resolver.""" def starting(self) -> None: """Called before the resolution actually starts...
class BaseReporter(Generic[RT, CT, KT]): '''Delegate class to provide progress reporting for the resolver.''' def starting(self) -> None: '''Called before the resolution actually starts.''' pass def starting_round(self, index: int) -> None: '''Called before each round of resolutio...
9
9
4
1
1
3
1
2.44
1
0
0
2
8
0
8
8
43
12
9
9
0
22
9
9
0
1
1
0
8
14,717
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/resolvelib/structs.py
pipenv.patched.pip._vendor.resolvelib.structs.DirectedGraph
from typing import TYPE_CHECKING, Callable, Generic, Iterable, Iterator, Mapping, NamedTuple, Sequence, TypeVar, Union class DirectedGraph(Generic[KT]): """A graph structure with directed edges.""" def __init__(self) -> None: self._vertices: set[KT] = set() self._forwards: dict[KT, set[KT]] = ...
class DirectedGraph(Generic[KT]): '''A graph structure with directed edges.''' def __init__(self) -> None: pass def __iter__(self) -> Iterator[KT]: pass def __len__(self) -> int: pass def __contains__(self, key: KT) -> bool: pass def copy(self) -> DirectedGr...
13
5
4
0
4
1
2
0.2
1
3
0
0
12
3
12
12
64
13
44
21
31
9
44
21
31
3
1
2
18
14,718
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/resolvelib/structs.py
pipenv.patched.pip._vendor.resolvelib.structs.IteratorMapping
import itertools from typing import TYPE_CHECKING, Callable, Generic, Iterable, Iterator, Mapping, NamedTuple, Sequence, TypeVar, Union class IteratorMapping(Mapping[KT, Iterator[CT]], Generic[RT, CT, KT]): def __init__(self, mapping: Mapping[KT, RT], accessor: Callable[[RT], Iterable[CT]], appends: Mapping[KT, I...
class IteratorMapping(Mapping[KT, Iterator[CT]], Generic[RT, CT, KT]): def __init__(self, mapping: Mapping[KT, RT], accessor: Callable[[RT], Iterable[CT]], appends: Mapping[KT, Iterable[CT]] | None=None) -> None: pass def __repr__(self) -> str: pass def __bool__(self) -> bool: pa...
8
0
4
0
4
0
1
0.04
1
3
0
0
7
3
7
41
35
7
28
15
20
1
24
15
16
2
6
1
8
14,719
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/resolvelib/structs.py
pipenv.patched.pip._vendor.resolvelib.structs._FactoryIterableView
import itertools from typing import TYPE_CHECKING, Callable, Generic, Iterable, Iterator, Mapping, NamedTuple, Sequence, TypeVar, Union class _FactoryIterableView(Iterable[RT]): """Wrap an iterator factory returned by `find_matches()`. Calling `iter()` on this class would invoke the underlying iterator fa...
class _FactoryIterableView(Iterable[RT]): '''Wrap an iterator factory returned by `find_matches()`. Calling `iter()` on this class would invoke the underlying iterator factory, making it a "collection with ordering" that can be iterated through multiple times, but lacks random access methods presented ...
5
1
4
0
4
0
2
0.37
1
3
0
0
4
2
4
4
31
6
19
10
14
7
17
10
12
2
1
1
6
14,720
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/resolvelib/structs.py
pipenv.patched.pip._vendor.resolvelib.structs._SequenceIterableView
from typing import TYPE_CHECKING, Callable, Generic, Iterable, Iterator, Mapping, NamedTuple, Sequence, TypeVar, Union class _SequenceIterableView(Iterable[RT]): """Wrap an iterable returned by find_matches(). This is essentially just a proxy to the underlying sequence that provides the same interface as ...
class _SequenceIterableView(Iterable[RT]): '''Wrap an iterable returned by find_matches(). This is essentially just a proxy to the underlying sequence that provides the same interface as `_FactoryIterableView`. ''' def __init__(self, sequence: Sequence[RT]): pass def __repr__(self) ->...
5
1
2
0
2
0
1
0.5
1
2
0
0
4
1
4
4
20
6
10
7
5
5
10
7
5
1
1
0
4
14,721
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/__main__.py
pipenv.patched.pip._vendor.rich.__main__.ColorBox
from pipenv.patched.pip._vendor.rich.color import Color from pipenv.patched.pip._vendor.rich.measure import Measurement import colorsys from pipenv.patched.pip._vendor.rich.style import Style from pipenv.patched.pip._vendor.rich.console import Console, ConsoleOptions, Group, RenderableType, RenderResult from pipenv.pat...
class ColorBox: def __rich_console__(self, console: Console, options: ConsoleOptions) -> RenderResult: pass def __rich_measure__(self, console: 'Console', options: ConsoleOptions) -> Measurement: pass
3
0
9
0
9
0
2
0
0
5
4
0
2
0
2
2
19
1
18
15
11
0
14
11
11
3
0
2
4
14,722
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/_inspect.py
pipenv.patched.pip._vendor.rich._inspect.Inspect
from .text import Text, TextType from .highlighter import ReprHighlighter from .table import Table import inspect from .panel import Panel from inspect import cleandoc, getdoc, getfile, isclass, ismodule, signature from typing import Any, Collection, Iterable, Optional, Tuple, Type, Union from .jupyter import JupyterMi...
class Inspect(JupyterMixin): '''A renderable to inspect any Python Object. Args: obj (Any): An object to inspect. title (str, optional): Title to display over inspect result, or None use type. Defaults to None. help (bool, optional): Show full help text rather than just first paragraph....
9
6
25
2
21
2
5
0.18
1
14
6
0
6
10
6
7
213
26
158
61
136
29
115
47
106
20
1
5
38
14,723
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/_log_render.py
pipenv.patched.pip._vendor.rich._log_render.LogRender
from datetime import datetime from .text import Text, TextType from typing import Iterable, List, Optional, TYPE_CHECKING, Union, Callable class LogRender: def __init__(self, show_time: bool=True, show_level: bool=False, show_path: bool=True, time_format: Union[str, FormatTimeCallable]='[%x %X]', omit_repeated_ti...
class LogRender: def __init__(self, show_time: bool=True, show_level: bool=False, show_path: bool=True, time_format: Union[str, FormatTimeCallable]='[%x %X]', omit_repeated_times: bool=True, level_width: Optional[int]=8) -> None: pass def __call__(self, console: 'Console', renderables: Iterable['Cons...
3
0
36
2
34
1
7
0.01
0
6
2
0
2
7
2
2
73
4
69
34
46
1
44
16
39
12
0
2
13
14,724
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/_null_file.py
pipenv.patched.pip._vendor.rich._null_file.NullFile
from typing import IO, Iterable, Iterator, List, Optional, Type from types import TracebackType 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: retu...
class NullFile(IO[str]): def close(self) -> None: pass def isatty(self) -> bool: pass def read(self, __n: int=1) -> str: pass def readable(self) -> bool: pass def readline(self, __limit: int=1) -> str: pass def readlines(self, __hint: int=1) -> List...
20
0
2
0
2
0
1
0
1
4
0
0
19
0
19
41
62
18
44
25
19
0
39
20
19
1
2
0
19
14,725
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/_ratio.py
pipenv.patched.pip._vendor.rich._ratio.Edge
from typing import cast, List, Optional, Sequence class Edge(Protocol): """Any object that defines an edge (such as Layout).""" size: Optional[int] = None ratio: int = 1 minimum_size: int = 1
class Edge(Protocol): '''Any object that defines an edge (such as Layout).''' pass
1
1
0
0
0
0
0
0.25
1
0
0
0
0
0
0
24
6
1
4
4
3
1
4
4
3
0
5
0
0
14,726
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/_stack.py
pipenv.patched.pip._vendor.rich._stack.Stack
from typing import List, TypeVar 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).""" self.a...
class Stack(List[T]): '''A small shim over builtin list.''' @property def top(self) -> T: '''Get top of stack.''' pass def push(self, item: T) -> None: '''Push an item on to the stack (append in stack nomenclature).''' pass
4
3
3
0
2
1
1
0.5
1
0
0
0
2
0
2
2
11
2
6
4
2
3
5
3
2
1
1
0
2
14,727
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/_win32_console.py
pipenv.patched.pip._vendor.rich._win32_console.CONSOLE_CURSOR_INFO
from ctypes import Structure, byref, wintypes import ctypes class CONSOLE_CURSOR_INFO(ctypes.Structure): _fields_ = [('dwSize', wintypes.DWORD), ('bVisible', wintypes.BOOL)]
class CONSOLE_CURSOR_INFO(ctypes.Structure): pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0
2
2
1
0
2
2
1
0
0
0
0
14,728
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/_win32_console.py
pipenv.patched.pip._vendor.rich._win32_console.CONSOLE_SCREEN_BUFFER_INFO
from ctypes import Structure, byref, wintypes class CONSOLE_SCREEN_BUFFER_INFO(Structure): _fields_ = [('dwSize', COORD), ('dwCursorPosition', COORD), ('wAttributes', wintypes.WORD), ('srWindow', wintypes.SMALL_RECT), ('dwMaximumWindowSize', COORD)]
class CONSOLE_SCREEN_BUFFER_INFO(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
8
0
8
2
7
0
2
2
1
0
1
0
0
14,729
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/_win32_console.py
pipenv.patched.pip._vendor.rich._win32_console.LegacyWindowsError
class LegacyWindowsError(Exception): pass
class LegacyWindowsError(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
14,730
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/_win32_console.py
pipenv.patched.pip._vendor.rich._win32_console.LegacyWindowsTerm
from pipenv.patched.pip._vendor.rich.color import ColorSystem import ctypes from pipenv.patched.pip._vendor.rich.style import Style class LegacyWindowsTerm: """This class allows interaction with the legacy Windows Console API. It should only be used in the context of environments where virtual terminal process...
class LegacyWindowsTerm: '''This class allows interaction with the legacy Windows Console API. It should only be used in the context of environments where virtual terminal processing is not available. However, if it is used in a Windows environment, the entire API should work. Args: file (IO[st...
21
18
11
1
8
2
2
0.39
0
7
4
0
18
8
18
18
244
34
164
57
143
64
106
55
87
8
0
2
28
14,731
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/_win32_console.py
pipenv.patched.pip._vendor.rich._win32_console.WindowsCoordinates
from typing import IO, NamedTuple, Type, cast class WindowsCoordinates(NamedTuple): """Coordinates in the Windows Console API are (y, x), not (x, y). This class is intended to prevent that confusion. Rows and columns are indexed from 0. This class can be used in place of wintypes._COORD in arguments an...
class WindowsCoordinates(NamedTuple): '''Coordinates in the Windows Console API are (y, x), not (x, y). This class is intended to prevent that confusion. Rows and columns are indexed from 0. This class can be used in place of wintypes._COORD in arguments and argtypes. ''' @classmethod d...
3
2
11
2
2
7
1
2
1
0
0
0
0
0
1
1
22
4
6
3
3
12
5
2
3
1
1
0
1
14,732
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/_windows.py
pipenv.patched.pip._vendor.rich._windows.WindowsConsoleFeatures
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.'
@dataclass class WindowsConsoleFeatures: '''Windows features available.''' pass
2
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
7
1
3
3
2
3
3
3
2
0
0
0
0
14,733
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/abc.py
pipenv.patched.pip._vendor.rich.abc.RichRenderable
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): cons...
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): console.print(my_object) ...
3
2
3
0
2
1
1
1.75
1
1
0
0
0
0
1
21
15
4
4
3
1
7
3
2
1
1
4
0
1
14,734
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/align.py
pipenv.patched.pip._vendor.rich.align.Align
from .segment import Segment from .measure import Measurement from itertools import chain from .style import StyleType from .jupyter import JupyterMixin from typing import TYPE_CHECKING, Iterable, Optional from .constrain import Constrain class Align(JupyterMixin): """Align a renderable by adding spaces if necessa...
class Align(JupyterMixin): '''Align a renderable by adding spaces if necessary. Args: renderable (RenderableType): A console renderable. align (AlignMethod): One of "left", "center", or "right"" style (StyleType, optional): An optional style to apply to the background. vertical ...
13
4
25
1
23
1
4
0.11
1
10
3
0
4
7
7
8
209
16
174
79
120
20
81
35
71
14
1
3
33
14,735
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/align.py
pipenv.patched.pip._vendor.rich.align.VerticalCenter
from .jupyter import JupyterMixin from .measure import Measurement from typing import TYPE_CHECKING, Iterable, Optional from .style import StyleType from .segment import Segment class VerticalCenter(JupyterMixin): """Vertically aligns a renderable. Warn: This class is deprecated and may be removed in ...
class VerticalCenter(JupyterMixin): '''Vertically aligns a renderable. Warn: This class is deprecated and may be removed in a future version. Use Align class with `vertical="middle"`. Args: renderable (RenderableType): A renderable object. style (StyleType, optional): An opt...
6
1
9
0
8
0
2
0.18
1
5
2
0
4
2
4
5
54
8
39
27
25
7
29
19
23
5
1
1
10
14,736
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/ansi.py
pipenv.patched.pip._vendor.rich.ansi.AnsiDecoder
from typing import Iterable, NamedTuple, Optional from .text import Text from .style import Style from contextlib import suppress from .color import Color class AnsiDecoder: """Translate ANSI code in to styled Text.""" def __init__(self) -> None: self.style = Style.null() def decode(self, termina...
class AnsiDecoder: '''Translate ANSI code in to styled Text.''' def __init__(self) -> None: pass def decode(self, terminal_text: str) -> Iterable[Text]: '''Decode ANSI codes in an iterable of lines. Args: lines (Iterable[str]): An iterable of lines of terminal output. ...
4
3
29
2
21
6
7
0.29
0
7
3
0
3
1
3
3
92
8
65
17
61
19
37
17
33
17
0
6
20
14,737
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/ansi.py
pipenv.patched.pip._vendor.rich.ansi._AnsiToken
from typing import Iterable, NamedTuple, Optional class _AnsiToken(NamedTuple): """Result of ansi tokenized string.""" plain: str = '' sgr: Optional[str] = '' osc: Optional[str] = ''
class _AnsiToken(NamedTuple): '''Result of ansi tokenized string.''' pass
1
1
0
0
0
0
0
0.25
1
0
0
0
0
0
0
0
6
1
4
4
3
1
4
4
3
0
1
0
0
14,738
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/bar.py
pipenv.patched.pip._vendor.rich.bar.Bar
from .segment import Segment from .console import Console, ConsoleOptions, RenderResult from .color import Color from typing import Optional, Union from .style import Style from .jupyter import JupyterMixin from .measure import Measurement class Bar(JupyterMixin): """Renders a solid block bar. Args: s...
class Bar(JupyterMixin): '''Renders a solid block bar. Args: size (float): Value for the end of the bar. begin (float): Begin point (between 0 and size, inclusive). end (float): End point (between 0 and size, inclusive). width (int, optional): Width of the bar, or ``None`` for m...
5
1
16
2
13
1
2
0.23
1
9
6
0
4
5
4
5
77
13
52
33
34
12
32
20
27
5
1
1
9
14,739
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/box.py
pipenv.patched.pip._vendor.rich.box.Box
from typing import TYPE_CHECKING, Iterable, List from ._loop import loop_last class Box: """Defines characters to render boxes. ┌─┬┐ top │ ││ head ├─┼┤ head_row │ ││ mid ├─┼┤ row ├─┼┤ foot_row │ ││ foot └─┴┘ bottom Args: box (str): Characters making up box. asc...
class Box: '''Defines characters to render boxes. ┌─┬┐ top │ ││ head ├─┼┤ head_row │ ││ mid ├─┼┤ row ├─┼┤ foot_row │ ││ foot └─┴┘ bottom Args: box (str): Characters making up box. ascii (bool, optional): True if this box uses ascii characters only. Default is Fal...
9
6
19
2
12
5
3
0.55
0
4
0
0
8
31
8
8
173
23
97
45
83
53
76
34
67
9
0
2
22
14,740
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/color.py
pipenv.patched.pip._vendor.rich.color.Color
from .color_triplet import ColorTriplet from .repr import Result, rich_repr from functools import lru_cache from typing import TYPE_CHECKING, NamedTuple, Optional, Tuple from .terminal_theme import DEFAULT_TERMINAL_THEME from ._palettes import EIGHT_BIT_PALETTE, STANDARD_PALETTE, WINDOWS_PALETTE from colorsys import rg...
@rich_repr class Color(NamedTuple): '''Terminal color definition.''' def __rich__(self) -> 'Text': '''Displays the actual color if Rich printed.''' pass def __rich_repr__(self) -> Result: pass @property def system(self) -> ColorSystem: '''Get the native color system...
26
13
18
2
12
4
4
0.29
1
10
6
0
8
1
13
13
266
43
177
51
148
51
124
38
108
14
1
3
55
14,741
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/color.py
pipenv.patched.pip._vendor.rich.color.ColorParseError
class ColorParseError(Exception): """The color could not be parsed."""
class ColorParseError(Exception): '''The color could not be parsed.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
14,742
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/color.py
pipenv.patched.pip._vendor.rich.color.ColorSystem
from enum import IntEnum class ColorSystem(IntEnum): """One of the 3 color system supported by terminals.""" STANDARD = 1 EIGHT_BIT = 2 TRUECOLOR = 3 WINDOWS = 4 def __repr__(self) -> str: return f'ColorSystem.{self.name}' def __str__(self) -> str: return repr(self)
class ColorSystem(IntEnum): '''One of the 3 color system supported by terminals.''' def __repr__(self) -> str: pass def __str__(self) -> str: pass
3
1
2
0
2
0
1
0.11
1
1
0
0
2
0
2
57
13
3
9
7
6
1
9
7
6
1
3
0
2
14,743
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/color.py
pipenv.patched.pip._vendor.rich.color.ColorType
from enum import IntEnum class ColorType(IntEnum): """Type of color stored in Color class.""" DEFAULT = 0 STANDARD = 1 EIGHT_BIT = 2 TRUECOLOR = 3 WINDOWS = 4 def __repr__(self) -> str: return f'ColorType.{self.name}'
class ColorType(IntEnum): '''Type of color stored in Color class.''' def __repr__(self) -> str: pass
2
1
2
0
2
0
1
0.13
1
1
0
0
1
0
1
56
11
2
8
7
6
1
8
7
6
1
3
0
1
14,744
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/color_triplet.py
pipenv.patched.pip._vendor.rich.color_triplet.ColorTriplet
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 def hex(sel...
class ColorTriplet(NamedTuple): '''The red, green, and blue components of a color.''' @property def hex(self) -> str: '''get the color triplet in CSS style.''' pass @property def rgb(self) -> str: '''The color in RGB format. Returns: str: An rgb color, e....
7
4
7
1
3
3
1
0.88
1
2
0
0
3
0
3
3
35
6
16
10
9
14
13
7
9
1
1
0
3
14,745
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/columns.py
pipenv.patched.pip._vendor.rich.columns.Columns
from .constrain import Constrain from .console import Console, ConsoleOptions, RenderableType, RenderResult from .measure import Measurement from .padding import Padding, PaddingDimensions from typing import Dict, Iterable, List, Optional, Tuple from collections import defaultdict from .align import Align, AlignMethod ...
class Columns(JupyterMixin): '''Display renderables in neat columns. Args: renderables (Iterable[RenderableType]): Any number of Rich renderables (including str). width (int, optional): The desired width of the columns, or None to auto detect. Defaults to None. padding (PaddingDimension...
5
2
43
3
39
2
7
0.13
1
10
2
0
3
9
3
3
156
13
126
60
105
17
87
44
82
15
1
4
26
14,746
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.Capture
from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Mapping, NamedTuple, Optional, TextIO, Tuple, Type, Union, cast from types import FrameType, ModuleType, TracebackType class Capture: """Context manager to capture the result of printing to the console. See :meth:`~rich.console.Console....
class Capture: '''Context manager to capture the result of printing to the console. See :meth:`~rich.console.Console.capture` for how to use. Args: console (Console): A console instance to capture output. ''' def __init__(self, console: 'Console') -> None: pass def __enter__(s...
5
2
5
0
5
0
1
0.3
0
3
1
0
4
2
4
4
31
5
20
12
10
6
13
7
8
2
0
1
5
14,747
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.CaptureError
class CaptureError(Exception): """An error in the Capture context manager."""
class CaptureError(Exception): '''An error in the Capture context manager.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
14,748
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.Console
from .styled import Styled from .control import Control from pipenv.patched.pip._vendor.rich._null_file import NULL_FILE from .text import Text, TextType from .color import ColorSystem, blend_rgb from .theme import Theme, ThemeStack from html import escape from .segment import Segment import zlib from itertools import ...
class Console: '''A high level console interface. Args: color_system (str, optional): The color system supported by your terminal, either ``"standard"``, ``"256"`` or ``"truecolor"``. Leave as ``"auto"`` to autodetect. force_terminal (Optional[bool], optional): Enable/disable termin...
97
72
25
2
17
6
3
0.39
0
55
37
0
68
31
69
69
1,972
245
1,246
512
942
492
685
286
601
19
0
9
240
14,749
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.ConsoleDimensions
from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Mapping, NamedTuple, Optional, TextIO, Tuple, Type, Union, cast class ConsoleDimensions(NamedTuple): """Size of the terminal.""" width: int "The width of the console in 'cells'." height: int 'The height of the console in lin...
class ConsoleDimensions(NamedTuple): '''Size of the terminal.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
7
1
3
1
2
3
3
1
2
0
1
0
0
14,750
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.ConsoleOptions
from dataclasses import dataclass, field from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Mapping, NamedTuple, Optional, TextIO, Tuple, Type, Union, cast @dataclass class ConsoleOptions: """Options for __rich_console__ method.""" size: ConsoleDimensions 'Size of console.' lega...
@dataclass class ConsoleOptions: '''Options for __rich_console__ method.''' @property def ascii_only(self) -> bool: '''Check if renderables should use ascii only.''' pass def copy(self) -> 'ConsoleOptions': '''Return a copy of the options. Returns: ConsoleOpt...
10
8
14
1
8
4
3
0.58
0
3
1
0
7
0
7
7
131
16
73
33
52
42
60
20
52
12
0
2
18
14,751
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.ConsoleRenderable
@runtime_checkable class ConsoleRenderable(Protocol): """An object that supports the console protocol.""" def __rich_console__(self, console: 'Console', options: 'ConsoleOptions') -> 'RenderResult': ...
@runtime_checkable class ConsoleRenderable(Protocol): '''An object that supports the console protocol.''' def __rich_console__(self, console: 'Console', options: 'ConsoleOptions') -> 'RenderResult': pass
3
1
4
0
4
1
1
0.4
1
0
0
0
1
0
1
25
7
1
5
4
1
2
3
2
1
1
5
0
1
14,752
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.ConsoleThreadLocals
from .theme import Theme, ThemeStack import threading from dataclasses import dataclass, field from .segment import Segment from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Mapping, NamedTuple, Optional, TextIO, Tuple, Type, Union, cast @dataclass class ConsoleThreadLocals(threading.local): ...
@dataclass class ConsoleThreadLocals(threading.local): '''Thread local values for Console context.''' pass
2
1
0
0
0
0
0
0.25
1
0
0
0
0
0
0
4
6
1
4
3
3
1
4
3
3
0
1
0
0
14,753
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.Group
from .measure import Measurement, measure_renderables from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Mapping, NamedTuple, Optional, TextIO, Tuple, Type, Union, cast class Group: """Takes a group of renderables and returns a renderable object that renders the group. Args: re...
class Group: '''Takes a group of renderables and returns a renderable object that renders the group. Args: renderables (Iterable[RenderableType]): An iterable of renderable objects. fit (bool, optional): Fit dimension of group to contents, or fill available space. Defaults to True. ''' ...
6
1
5
0
5
0
2
0.24
0
3
1
0
4
3
4
4
31
5
21
13
11
5
15
8
10
2
0
1
6
14,754
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.NewLine
from .segment import Segment from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Mapping, NamedTuple, Optional, TextIO, Tuple, Type, Union, cast class NewLine: """A renderable to generate new line(s)""" def __init__(self, count: int=1) -> None: self.count = count def __rich...
class NewLine: '''A renderable to generate new line(s)''' def __init__(self, count: int=1) -> None: pass def __rich_console__(self, console: 'Console', options: 'ConsoleOptions') -> Iterable[Segment]: pass
3
1
3
0
3
0
1
0.14
0
2
1
0
2
1
2
2
10
2
7
6
2
1
5
4
2
1
0
0
2
14,755
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.NoChange
class NoChange: pass
class NoChange: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
0
0
0
14,756
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.PagerContext
from .segment import Segment from .pager import Pager, SystemPager from types import FrameType, ModuleType, TracebackType from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Mapping, NamedTuple, Optional, TextIO, Tuple, Type, Union, cast class PagerContext: """A context manager that 'pages' ...
class PagerContext: '''A context manager that 'pages' content. See :meth:`~rich.console.Console.pager` for usage.''' def __init__(self, console: 'Console', pager: Optional[Pager]=None, styles: bool=False, links: bool=False) -> None: pass def __enter__(self) -> 'PagerContext': pass de...
4
1
11
0
11
0
2
0.03
0
5
3
0
3
4
3
3
37
3
33
22
18
1
21
11
17
4
0
3
7
14,757
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.RenderHook
from abc import ABC, abstractmethod from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Mapping, NamedTuple, Optional, TextIO, Tuple, Type, Union, cast class RenderHook(ABC): """Provides hooks in to the render process.""" @abstractmethod def process_renderables(self, renderables: Li...
class RenderHook(ABC): '''Provides hooks in to the render process.''' @abstractmethod def process_renderables(self, renderables: List[ConsoleRenderable]) -> List[ConsoleRenderable]: '''Called with a list of objects to render. This method can return a new list of renderables, or modify and r...
3
2
13
3
3
7
1
1.6
1
1
1
0
1
0
1
21
17
4
5
5
0
8
2
2
0
1
4
0
1
14,758
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.RichCast
from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Mapping, NamedTuple, Optional, TextIO, Tuple, Type, Union, cast @runtime_checkable class RichCast(Protocol): """An object that may be 'cast' to a console renderable.""" def __rich__(self) -> Union['ConsoleRenderable', 'RichCast', str]:...
@runtime_checkable class RichCast(Protocol): '''An object that may be 'cast' to a console renderable.''' def __rich__(self) -> Union['ConsoleRenderable', 'RichCast', str]: pass
3
1
4
0
4
1
1
0.4
1
1
0
0
1
0
1
25
7
1
5
4
1
2
3
2
1
1
5
0
1
14,759
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.ScreenContext
from types import FrameType, ModuleType, TracebackType from .style import Style, StyleType from .screen import Screen from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Mapping, NamedTuple, Optional, TextIO, Tuple, Type, Union, cast class ScreenContext: """A context manager that enables an ...
class ScreenContext: '''A context manager that enables an alternative screen. See :meth:`~rich.console.Console.screen` for usage.''' def __init__(self, console: 'Console', hide_cursor: bool, style: StyleType='') -> None: pass def update(self, *renderables: RenderableType, style: Optional[StyleTyp...
5
2
10
0
8
2
3
0.21
0
4
2
0
4
4
4
4
45
5
33
18
19
7
22
9
17
4
0
2
10
14,760
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.ScreenUpdate
from .segment import Segment from .control import Control from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Mapping, NamedTuple, Optional, TextIO, Tuple, Type, Union, cast class ScreenUpdate: """Render a list of lines at a given offset.""" def __init__(self, lines: List[List[Segment]]...
class ScreenUpdate: '''Render a list of lines at a given offset.''' def __init__(self, lines: List[List[Segment]], x: int, y: int) -> None: pass def __rich_console__(self, console: 'Console', options: ConsoleOptions) -> RenderResult: pass
3
1
6
0
6
0
2
0.08
0
5
3
0
2
3
2
2
16
2
13
11
8
1
11
9
8
2
0
1
3
14,761
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/console.py
pipenv.patched.pip._vendor.rich.console.ThemeContext
from .theme import Theme, ThemeStack from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Mapping, NamedTuple, Optional, TextIO, Tuple, Type, Union, cast from types import FrameType, ModuleType, TracebackType class ThemeContext: """A context manager to use a temporary theme. See :meth:`~rich....
class ThemeContext: '''A context manager to use a temporary theme. See :meth:`~rich.console.Console.use_theme` for usage.''' def __init__(self, console: 'Console', theme: Theme, inherit: bool=True) -> None: pass def __enter__(self) -> 'ThemeContext': pass def __exit__(self, exc_type:...
4
1
5
0
5
0
1
0.07
0
3
1
0
3
3
3
3
19
3
15
12
6
1
10
7
6
1
0
0
3
14,762
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/constrain.py
pipenv.patched.pip._vendor.rich.constrain.Constrain
from typing import Optional, TYPE_CHECKING from .measure import Measurement from .jupyter import JupyterMixin class Constrain(JupyterMixin): """Constrain the width of a renderable to a given number of characters. Args: renderable (RenderableType): A renderable object. width (int, optional): Th...
class Constrain(JupyterMixin): '''Constrain the width of a renderable to a given number of characters. Args: renderable (RenderableType): A renderable object. width (int, optional): The maximum width (in characters) to render. Defaults to 80. ''' def __init__(self, renderable: 'Rendera...
4
1
6
0
6
0
2
0.26
1
2
1
0
3
2
3
4
28
4
19
12
11
5
14
8
10
2
1
1
5
14,763
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/containers.py
pipenv.patched.pip._vendor.rich.containers.Lines
from .cells import cell_len from typing import TYPE_CHECKING, Iterable, Iterator, List, Optional, TypeVar, Union, overload from itertools import zip_longest class Lines: """A list subclass which can render to the console.""" def __init__(self, lines: Iterable['Text']=()) -> None: self._lines: List['Te...
class Lines: '''A list subclass which can render to the console.''' def __init__(self, lines: Iterable['Text']=()) -> None: pass def __repr__(self) -> str: pass def __iter__(self) -> Iterator['Text']: pass @overload def __getitem__(self, index: int) -> 'Text': ...
16
3
7
0
6
1
2
0.12
0
7
1
0
13
1
13
13
102
16
77
38
52
9
62
28
47
15
0
4
27
14,764
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/containers.py
pipenv.patched.pip._vendor.rich.containers.Renderables
from typing import TYPE_CHECKING, Iterable, Iterator, List, Optional, TypeVar, Union, overload from .measure import Measurement class Renderables: """A list subclass which renders its contents to the console.""" def __init__(self, renderables: Optional[Iterable['RenderableType']]=None) -> None: self._...
class Renderables: '''A list subclass which renders its contents to the console.''' def __init__(self, renderables: Optional[Iterable['RenderableType']]=None) -> None: pass def __rich_console__(self, console: 'Console', options: 'ConsoleOptions') -> 'RenderResult': '''Console render metho...
6
2
5
0
5
0
1
0.07
0
2
1
0
5
1
5
5
34
5
27
16
15
2
16
10
10
2
0
1
7
14,765
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/control.py
pipenv.patched.pip._vendor.rich.control.Control
from .segment import ControlCode, ControlType, Segment from typing import TYPE_CHECKING, Callable, Dict, Iterable, List, Union class Control: """A renderable that inserts a control code (non printable but may move cursor). Args: *codes (str): Positional arguments are either a :class:`~rich.segment.Con...
class Control: '''A renderable that inserts a control code (non printable but may move cursor). Args: *codes (str): Positional arguments are either a :class:`~rich.segment.ControlType` enum or a tuple of ControlType and an integer parameter ''' def __init__(self, *codes: Union[Cont...
23
10
9
1
6
2
2
0.49
0
5
2
0
3
1
12
12
131
25
71
32
46
35
39
21
25
5
0
1
23
14,766
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/emoji.py
pipenv.patched.pip._vendor.rich.emoji.Emoji
from ._emoji_codes import EMOJI from .segment import Segment from typing import TYPE_CHECKING, Optional, Union from .style import Style from .jupyter import JupyterMixin from ._emoji_replace import _emoji_replace class Emoji(JupyterMixin): __slots__ = ['name', 'style', '_char', 'variant'] VARIANTS = {'text': '...
class Emoji(JupyterMixin): def __init__(self, name: str, style: Union[str, Style]='none', variant: Optional[EmojiVariant]=None) -> None: '''A single emoji character. Args: name (str): Name of emoji. style (Union[str, Style], optional): Optional style. Defaults to None. ...
7
2
8
1
5
3
1
0.45
1
5
3
0
4
4
5
6
52
10
29
20
15
13
21
12
15
3
1
1
7
14,767
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/emoji.py
pipenv.patched.pip._vendor.rich.emoji.NoEmoji
class NoEmoji(Exception): """No emoji by that name."""
class NoEmoji(Exception): '''No emoji by that name.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
14,768
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/errors.py
pipenv.patched.pip._vendor.rich.errors.ConsoleError
class ConsoleError(Exception): """An error in console operation."""
class ConsoleError(Exception): '''An error in console operation.''' pass
1
1
0
0
0
0
0
1
1
0
0
6
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
14,769
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/errors.py
pipenv.patched.pip._vendor.rich.errors.LiveError
class LiveError(ConsoleError): """Error related to Live display."""
class LiveError(ConsoleError): '''Error related to Live display.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
4
0
0
14,770
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/errors.py
pipenv.patched.pip._vendor.rich.errors.MarkupError
class MarkupError(ConsoleError): """Markup was badly formatted."""
class MarkupError(ConsoleError): '''Markup was badly formatted.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
4
0
0
14,771
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/errors.py
pipenv.patched.pip._vendor.rich.errors.MissingStyle
class MissingStyle(StyleError): """No such style."""
class MissingStyle(StyleError): '''No such style.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
4
0
0
14,772
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/errors.py
pipenv.patched.pip._vendor.rich.errors.NoAltScreen
class NoAltScreen(ConsoleError): """Alt screen mode was required."""
class NoAltScreen(ConsoleError): '''Alt screen mode was required.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
4
0
0
14,773
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/errors.py
pipenv.patched.pip._vendor.rich.errors.NotRenderableError
class NotRenderableError(ConsoleError): """Object is not renderable."""
class NotRenderableError(ConsoleError): '''Object is not renderable.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
4
0
0
14,774
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/errors.py
pipenv.patched.pip._vendor.rich.errors.StyleError
class StyleError(Exception): """An error in styles."""
class StyleError(Exception): '''An error in styles.''' pass
1
1
0
0
0
0
0
1
1
0
0
1
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
14,775
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/errors.py
pipenv.patched.pip._vendor.rich.errors.StyleStackError
class StyleStackError(ConsoleError): """Style stack is invalid."""
class StyleStackError(ConsoleError): '''Style stack is invalid.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
4
0
0
14,776
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/errors.py
pipenv.patched.pip._vendor.rich.errors.StyleSyntaxError
class StyleSyntaxError(ConsoleError): """Style was badly formatted."""
class StyleSyntaxError(ConsoleError): '''Style was badly formatted.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
4
0
0
14,777
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/file_proxy.py
pipenv.patched.pip._vendor.rich.file_proxy.FileProxy
from .ansi import AnsiDecoder from .text import Text import io from typing import IO, TYPE_CHECKING, Any, List class FileProxy(io.TextIOBase): """Wraps a file (e.g. sys.stdout) and redirects writes to a console.""" def __init__(self, console: 'Console', file: IO[str]) -> None: self.__console = console...
class FileProxy(io.TextIOBase): '''Wraps a file (e.g. sys.stdout) and redirects writes to a console.''' def __init__(self, console: 'Console', file: IO[str]) -> None: pass @property def rich_proxied_file(self) -> IO[str]: '''Get proxied file.''' pass def __getattr__(self, ...
8
2
6
0
6
0
2
0.05
1
7
2
0
6
4
6
26
47
6
39
18
31
2
35
17
28
5
5
2
11
14,778
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/highlighter.py
pipenv.patched.pip._vendor.rich.highlighter.Highlighter
from abc import ABC, abstractmethod from typing import List, Union from .text import Span, Text class Highlighter(ABC): """Abstract base class for highlighters.""" def __call__(self, text: Union[str, Text]) -> Text: """Highlight a str or Text instance. Args: text (Union[str, ~Text...
class Highlighter(ABC): '''Abstract base class for highlighters.''' def __call__(self, text: Union[str, Text]) -> Text: '''Highlight a str or Text instance. Args: text (Union[str, ~Text]): Text to highlight. Raises: TypeError: If not called with text or str. ...
4
3
13
2
5
6
2
1.08
1
2
0
2
2
0
2
22
31
6
12
5
8
13
9
4
6
3
4
1
4
14,779
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/highlighter.py
pipenv.patched.pip._vendor.rich.highlighter.ISO8601Highlighter
class ISO8601Highlighter(RegexHighlighter): """Highlights the ISO8601 date time strings. Regex reference: https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s07.html """ base_style = 'iso8601.' highlights = ['^(?P<year>[0-9]{4})-(?P<month>1[0-2]|0[1-9])$', '^(?P<date...
class ISO8601Highlighter(RegexHighlighter): '''Highlights the ISO8601 date time strings. Regex reference: https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s07.html ''' pass
1
1
0
0
0
0
0
2.24
1
0
0
0
0
0
0
23
56
1
17
3
16
38
3
3
2
0
6
0
0
14,780
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/highlighter.py
pipenv.patched.pip._vendor.rich.highlighter.JSONHighlighter
import re from .text import Span, Text class JSONHighlighter(RegexHighlighter): """Highlights JSON""" JSON_STR = '(?<![\\\\\\w])(?P<str>b?\\".*?(?<!\\\\)\\")' JSON_WHITESPACE = {' ', '\n', '\r', '\t'} base_style = 'json.' highlights = [_combine_regex('(?P<brace>[\\{\\[\\(\\)\\]\\}])', '\\b(?P<bool_...
class JSONHighlighter(RegexHighlighter): '''Highlights JSON''' def highlight(self, text: Text) -> None: pass
2
1
18
1
16
1
5
0.11
1
1
0
0
1
0
1
24
35
4
28
13
26
3
20
13
18
5
6
3
5
14,781
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/highlighter.py
pipenv.patched.pip._vendor.rich.highlighter.NullHighlighter
from .text import Span, Text class NullHighlighter(Highlighter): """A highlighter object that doesn't highlight. May be used to disable highlighting entirely. """ def highlight(self, text: Text) -> None: """Nothing to do"""
class NullHighlighter(Highlighter): '''A highlighter object that doesn't highlight. May be used to disable highlighting entirely. ''' def highlight(self, text: Text) -> None: '''Nothing to do''' pass
2
2
2
0
1
1
1
2
1
0
0
0
1
0
1
23
9
3
2
2
0
4
2
2
0
1
5
0
1
14,782
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/highlighter.py
pipenv.patched.pip._vendor.rich.highlighter.RegexHighlighter
from typing import List, Union from .text import Span, Text class RegexHighlighter(Highlighter): """Applies highlighting from a list of regular expressions.""" highlights: List[str] = [] base_style: str = '' def highlight(self, text: Text) -> None: """Highlight :class:`rich.text.Text` using re...
class RegexHighlighter(Highlighter): '''Applies highlighting from a list of regular expressions.''' def highlight(self, text: Text) -> None: '''Highlight :class:`rich.text.Text` using regular expressions. Args: text (~Text): Text to highlighted. ''' pass
2
2
11
3
4
4
2
0.71
1
0
0
4
1
0
1
23
17
5
7
6
5
5
7
6
5
2
5
1
2
14,783
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/highlighter.py
pipenv.patched.pip._vendor.rich.highlighter.ReprHighlighter
class ReprHighlighter(RegexHighlighter): """Highlights the text typically produced from ``__repr__`` methods.""" base_style = 'repr.' highlights = ['(?P<tag_start><)(?P<tag_name>[-\\w.:|]*)(?P<tag_contents>[\\w\\W]*)(?P<tag_end>>)', '(?P<attrib_name>[\\w_]{1,50})=(?P<attrib_value>"?[\\w_]+"?)?', '(?P<brace>...
class ReprHighlighter(RegexHighlighter): '''Highlights the text typically produced from ``__repr__`` methods.''' pass
1
1
0
0
0
0
0
0.09
1
0
0
0
0
0
0
23
24
1
22
3
21
2
3
3
2
0
6
0
0
14,784
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/json.py
pipenv.patched.pip._vendor.rich.json.JSON
from .text import Text from json import loads, dumps from .highlighter import JSONHighlighter, NullHighlighter from typing import Any, Callable, Optional, Union class JSON: """A renderable which pretty prints JSON. Args: json (str): JSON encoded data. indent (Union[None, int, str], optional): ...
class JSON: '''A renderable which pretty prints JSON. Args: json (str): JSON encoded data. indent (Union[None, int, str], optional): Number of characters to indent by. Defaults to 2. highlight (bool, optional): Enable highlighting. Defaults to True. skip_keys (bool, optional): S...
5
2
25
1
19
5
2
0.49
0
6
2
0
2
1
3
3
94
6
59
33
32
29
18
10
14
2
0
0
5
14,785
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/jupyter.py
pipenv.patched.pip._vendor.rich.jupyter.JupyterMixin
from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Sequence from . import get_console class JupyterMixin: """Add to an Rich renderable to make it render in Jupyter notebook.""" __slots__ = () def _repr_mimebundle_(self: 'ConsoleRenderable', include: Sequence[str], exclude: Sequence[str], **kwarg...
class JupyterMixin: '''Add to an Rich renderable to make it render in Jupyter notebook.''' def _repr_mimebundle_(self: 'ConsoleRenderable', include: Sequence[str], exclude: Sequence[str], **kwargs: Any) -> Dict[str, str]: pass
2
1
16
0
16
0
3
0.06
0
3
0
13
1
0
1
1
21
2
18
13
11
1
13
8
11
3
0
1
3
14,786
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/jupyter.py
pipenv.patched.pip._vendor.rich.jupyter.JupyterRenderable
from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Sequence class JupyterRenderable: """A shim to write html to Jupyter notebook.""" def __init__(self, html: str, text: str) -> None: self.html = html self.text = text def _repr_mimebundle_(self, include: Sequence[str], exclude: S...
class JupyterRenderable: '''A shim to write html to Jupyter notebook.''' def __init__(self, html: str, text: str) -> None: pass def _repr_mimebundle_(self, include: Sequence[str], exclude: Sequence[str], **kwargs: Any) -> Dict[str, str]: pass
3
1
6
0
6
0
2
0.08
0
2
0
0
2
2
2
2
16
2
13
8
8
1
11
6
8
3
0
1
4
14,787
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/layout.py
pipenv.patched.pip._vendor.rich.layout.ColumnSplitter
from .region import Region from ._ratio import ratio_resolve from typing import TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Union class ColumnSplitter(Splitter): """Split a layout region in to columns.""" name = 'column' def get_tree_icon(self) -> str: return '[layo...
class ColumnSplitter(Splitter): '''Split a layout region in to columns.''' def get_tree_icon(self) -> str: pass def divide(self, children: Sequence['Layout'], region: Region) -> Iterable[Tuple['Layout', Region]]: pass
3
1
6
0
6
0
2
0.07
1
3
1
0
2
0
2
24
18
3
14
11
9
1
12
9
9
2
5
1
3
14,788
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/layout.py
pipenv.patched.pip._vendor.rich.layout.Layout
from .repr import Result, rich_repr from .console import Console, ConsoleOptions, RenderableType, RenderResult from .segment import Segment from threading import RLock from itertools import islice from operator import itemgetter from typing import TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tup...
@rich_repr class Layout: '''A renderable to divide a fixed height in to rows or columns. Args: renderable (RenderableType, optional): Renderable content, or None for placeholder. Defaults to None. name (str, optional): Optional identifier for Layout. Defaults to None. size (int, optional...
26
15
13
1
10
2
2
0.3
0
20
12
0
18
10
18
18
274
40
180
97
137
54
125
78
101
4
0
3
38
14,789
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/layout.py
pipenv.patched.pip._vendor.rich.layout.LayoutError
class LayoutError(Exception): """Layout related error."""
class LayoutError(Exception): '''Layout related error.''' pass
1
1
0
0
0
0
0
1
1
0
0
1
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
14,790
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/layout.py
pipenv.patched.pip._vendor.rich.layout.LayoutRender
from typing import TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Union from .region import Region from .segment import Segment class LayoutRender(NamedTuple): """An individual layout render.""" region: Region render: List[List[Segment]]
class LayoutRender(NamedTuple): '''An individual layout render.''' pass
1
1
0
0
0
0
0
0.33
1
0
0
0
0
0
0
0
5
1
3
1
2
1
3
1
2
0
1
0
0
14,791
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/layout.py
pipenv.patched.pip._vendor.rich.layout.NoSplitter
class NoSplitter(LayoutError): """Requested splitter does not exist."""
class NoSplitter(LayoutError): '''Requested splitter does not exist.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
4
0
0
14,792
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/layout.py
pipenv.patched.pip._vendor.rich.layout.RowSplitter
from .region import Region from typing import TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Union from ._ratio import ratio_resolve class RowSplitter(Splitter): """Split a layout region in to rows.""" name = 'row' def get_tree_icon(self) -> str: return '[layout.tree.r...
class RowSplitter(Splitter): '''Split a layout region in to rows.''' def get_tree_icon(self) -> str: pass def divide(self, children: Sequence['Layout'], region: Region) -> Iterable[Tuple['Layout', Region]]: pass
3
1
6
0
6
0
2
0.07
1
3
1
0
2
0
2
24
18
3
14
11
9
1
12
9
9
2
5
1
3
14,793
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/layout.py
pipenv.patched.pip._vendor.rich.layout.Splitter
from typing import TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Union from .region import Region from abc import ABC, abstractmethod class Splitter(ABC): """Base class for a splitter.""" name: str = '' @abstractmethod def get_tree_icon(self) -> str: """Get the ic...
class Splitter(ABC): '''Base class for a splitter.''' @abstractmethod def get_tree_icon(self) -> str: '''Get the icon (emoji) used in layout.tree''' pass @abstractmethod def divide(self, children: Sequence['Layout'], region: Region) -> Iterable[Tuple['Layout', Region]]: '''D...
5
3
6
1
2
3
1
0.88
1
2
1
2
2
0
2
22
19
4
8
8
1
7
4
4
1
1
4
0
2
14,794
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/layout.py
pipenv.patched.pip._vendor.rich.layout._Placeholder
from .highlighter import ReprHighlighter from .align import Align from .pretty import Pretty from .panel import Panel from .console import Console, ConsoleOptions, RenderableType, RenderResult from .style import StyleType class _Placeholder: """An internal renderable used as a Layout placeholder.""" highlighte...
class _Placeholder: '''An internal renderable used as a Layout placeholder.''' def __init__(self, layout: 'Layout', style: StyleType='') -> None: pass def __rich_console__(self, console: Console, options: ConsoleOptions) -> RenderResult: pass
3
1
11
0
11
0
2
0.04
0
5
5
0
2
2
2
2
27
3
23
12
18
1
11
10
8
2
0
0
3
14,795
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/live.py
pipenv.patched.pip._vendor.rich.live.Live
from threading import Event, RLock, Thread from .console import Console, ConsoleRenderable, RenderableType, RenderHook import sys from types import TracebackType from .live_render import LiveRender, VerticalOverflowMethod from .file_proxy import FileProxy from .screen import Screen from . import get_console from typing...
class Live(JupyterMixin, RenderHook): '''Renders an auto-updating live display of any given renderable. Args: renderable (RenderableType, optional): The renderable to live display. Defaults to displaying nothing. console (Console, optional): Optional Console instance. Defaults to an internal Co...
16
10
16
1
13
2
3
0.25
2
13
5
0
13
18
13
14
234
26
170
60
131
42
130
38
113
8
1
4
44
14,796
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/live.py
pipenv.patched.pip._vendor.rich.live._RefreshThread
from threading import Event, RLock, Thread class _RefreshThread(Thread): """A thread that calls refresh() at regular intervals.""" def __init__(self, live: 'Live', refresh_per_second: float) -> None: self.live = live self.refresh_per_second = refresh_per_second self.done = Event() ...
class _RefreshThread(Thread): '''A thread that calls refresh() at regular intervals.''' def __init__(self, live: 'Live', refresh_per_second: float) -> None: pass def stop(self) -> None: pass def run(self) -> None: pass
4
1
4
0
4
0
2
0.08
1
3
0
0
3
3
3
28
17
3
13
7
9
1
13
7
9
3
1
3
5
14,797
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/live_render.py
pipenv.patched.pip._vendor.rich.live_render.LiveRender
from .control import Control from ._loop import loop_last from .console import Console, ConsoleOptions, RenderableType, RenderResult from .segment import ControlType, Segment from typing import Optional, Tuple from .text import Text from .style import StyleType class LiveRender: """Creates a renderable that may be...
class LiveRender: '''Creates a renderable that may be updated. Args: renderable (RenderableType): Any renderable object. style (StyleType, optional): An optional style to apply to the renderable. Defaults to "". ''' def __init__(self, renderable: RenderableType, style: StyleType='', ve...
6
4
16
1
13
2
2
0.26
0
6
4
0
5
4
5
5
93
11
65
27
52
17
38
20
32
6
0
2
12
14,798
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/logging.py
pipenv.patched.pip._vendor.rich.logging.RichHandler
from pipenv.patched.pip._vendor.rich._null_file import NullFile from types import ModuleType from .highlighter import Highlighter, ReprHighlighter from .text import Text from .console import Console, ConsoleRenderable from typing import ClassVar, Iterable, List, Optional, Type, Union from . import get_console import lo...
class RichHandler(Handler): '''A logging handler that renders output with Rich. The time / level / message and file are displayed in columns. The level is color coded, and the message is syntax highlighted. Note: Be careful when enabling console markup in log messages if you have configured logging...
6
5
33
2
26
5
3
0.39
1
12
4
1
5
15
5
25
214
20
140
68
105
54
65
39
59
6
3
3
17
14,799
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/markup.py
pipenv.patched.pip._vendor.rich.markup.Tag
from typing import Callable, Iterable, List, Match, NamedTuple, Optional, Tuple, Union class Tag(NamedTuple): """A tag in console markup.""" name: str "The tag name. e.g. 'bold'." parameters: Optional[str] 'Any additional parameters after the name.' def __str__(self) -> str: return sel...
class Tag(NamedTuple): '''A tag in console markup.''' def __str__(self) -> str: pass @property def markup(self) -> str: '''Get the string representation of this tag.''' pass
4
2
6
0
5
1
2
0.29
1
1
0
0
2
0
2
2
21
3
14
4
10
4
7
3
4
2
1
0
4