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,300
pypa/pipenv
pypa_pipenv/pipenv/cli/options.py
pipenv.cli.options.InstallState
class InstallState: def __init__(self): self.dev = False self.pre = False self.ignore_pipfile = False self.code = False self.requirementstxt = None self.deploy = False self.packages = [] self.editables = [] self.extra_pip_args = [] sel...
class InstallState: def __init__(self): pass
2
0
12
0
12
0
1
0
0
0
0
0
1
11
1
1
13
0
13
13
11
0
13
13
11
1
0
0
1
14,301
pypa/pipenv
pypa_pipenv/pipenv/cli/options.py
pipenv.cli.options.LockOptions
class LockOptions: def __init__(self): self.dev_only = False
class LockOptions: def __init__(self): pass
2
0
2
0
2
0
1
0
0
0
0
0
1
1
1
1
3
0
3
3
1
0
3
3
1
1
0
0
1
14,302
pypa/pipenv
pypa_pipenv/pipenv/cli/options.py
pipenv.cli.options.PipenvGroup
from pipenv.vendor.click_didyoumean import DYMMixin from pipenv.vendor.click import BadArgumentUsage, BadParameter, Group, Option, argument, make_pass_decorator, option from pipenv.utils.display import format_help from pipenv.utils import console, err class PipenvGroup(DYMMixin, Group): """Custom Group class provi...
class PipenvGroup(DYMMixin, Group): '''Custom Group class provides formatted main help''' def get_help_option(self, ctx): '''Override for showing formatted main help via --help and -h options''' pass def show_help(ctx, param, value): pass def main(self, *args, **k...
4
3
10
1
8
2
2
0.3
2
1
0
0
2
0
2
58
31
5
20
6
15
6
13
6
8
2
4
1
5
14,303
pypa/pipenv
pypa_pipenv/pipenv/cli/options.py
pipenv.cli.options.State
from pipenv.project import Project class State: def __init__(self): self.index = None self.verbose = False self.quiet = False self.pypi_mirror = None self.python = None self.site_packages = None self.clear = False self.system = False self.pro...
class State: def __init__(self): pass
2
0
12
0
12
0
1
0
0
3
3
0
1
11
1
1
13
0
13
13
11
0
13
13
11
1
0
0
1
14,304
pypa/pipenv
pypa_pipenv/pipenv/cmdparse.py
pipenv.cmdparse.Script
from pipenv.vendor import tomlkit import itertools import shlex class Script: """Parse a script line (in Pipfile's [scripts] section). This always works in POSIX mode, even on Windows. """ script_types = ['call'] def __init__(self, command, args=None): self._parts = [command] if a...
class Script: '''Parse a script line (in Pipfile's [scripts] section). This always works in POSIX mode, even on Windows. ''' def __init__(self, command, args=None): pass @classmethod def parse(cls, value): pass def __repr__(self): pass @property def command...
13
2
9
1
4
4
2
0.97
0
3
1
0
7
1
8
8
92
21
36
16
23
35
26
12
17
4
0
1
12
14,305
pypa/pipenv
pypa_pipenv/pipenv/cmdparse.py
pipenv.cmdparse.ScriptEmptyError
class ScriptEmptyError(ValueError): pass
class ScriptEmptyError(ValueError): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
11
2
0
2
1
1
0
2
1
1
0
4
0
0
14,306
pypa/pipenv
pypa_pipenv/pipenv/cmdparse.py
pipenv.cmdparse.ScriptParseError
class ScriptParseError(ValueError): pass
class ScriptParseError(ValueError): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
11
2
0
2
1
1
0
2
1
1
0
4
0
0
14,307
pypa/pipenv
pypa_pipenv/pipenv/environment.py
pipenv.environment.Environment
from pipenv.patched.pip._internal.req.req_install import InstallRequirement from pipenv.patched.pip._vendor.typing_extensions import Iterable import os from pipenv.utils.virtualenv import virtualenv_scripts_dir import contextlib import pipenv from pipenv.patched.pip._vendor.packaging.utils import canonicalize_name from...
null
53
20
20
1
16
3
4
0.18
0
20
9
0
34
11
36
36
785
78
603
208
525
107
417
168
373
10
0
5
133
14,308
pypa/pipenv
pypa_pipenv/pipenv/environments.py
pipenv.environments.Setting
import os from pipenv.patched.pip._vendor.platformdirs import user_cache_dir class Setting: """ Control various settings of pipenv via environment variables. """ def __init__(self) -> None: self.USING_DEFAULT_PYTHON = True 'Use the default Python' self.PIPENV_CACHE_DIR = get_fr...
class Setting: ''' Control various settings of pipenv via environment variables. ''' def __init__(self) -> None: pass def is_verbose(self, threshold=1): pass def is_quiet(self, threshold=-1): pass
4
1
102
24
37
42
5
1.15
0
5
0
0
3
40
3
3
313
74
111
47
106
128
71
47
66
12
0
2
14
14,309
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.DependencyConflict
from pipenv.vendor import click class DependencyConflict(PipenvException): def __init__(self, message): extra = ['{} {}'.format(click.style('The operation failed...', bold=True, fg='red'), click.style('A dependency conflict was detected and could not be resolved.', fg='red'))] PipenvException.__in...
class DependencyConflict(PipenvException): def __init__(self, message): pass
2
0
11
0
11
0
1
0
1
0
0
0
1
0
1
17
12
0
12
3
10
0
4
3
2
1
5
0
1
14,310
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.DeployException
class DeployException(PipenvUsageError): def __init__(self, message=None, **kwargs): if not message: message = '[bold]Aborting deploy[/bold]' extra = kwargs.pop('extra', []) PipenvUsageError.__init__(self, message=message, extra=extra, **kwargs)
class DeployException(PipenvUsageError): def __init__(self, message=None, **kwargs): pass
2
0
5
0
5
0
2
0
1
0
0
0
1
0
1
19
6
0
6
3
4
0
6
3
4
2
6
1
2
14,311
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.InstallError
class InstallError(PipenvException): def __init__(self, package, **kwargs): package_message = '' if package is not None: package_message = "Couldn't install package: {}\n".format(f'[bold]{package!s}[/bold]') message = '{} {}'.format(f'{package_message}', '[yellow]Package install...
class InstallError(PipenvException): def __init__(self, package, **kwargs): pass
2
0
12
0
12
0
2
0
1
0
0
0
1
0
1
17
13
0
13
5
11
0
8
5
6
2
5
1
2
14,312
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.JSONParseError
from pipenv.patched.pip._vendor.rich.console import Console class JSONParseError(PipenvException): def __init__(self, contents='', error_text=''): self.error_text = error_text self.contents = contents PipenvException.__init__(self, contents) def show(self, file=None): console ...
class JSONParseError(PipenvException): def __init__(self, contents='', error_text=''): pass def show(self, file=None): pass
3
0
6
0
6
0
2
0
1
1
1
0
2
2
2
18
13
1
12
6
9
0
10
6
7
2
5
1
3
14,313
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.LockfileNotFound
class LockfileNotFound(PipenvFileError): def __init__(self, filename='Pipfile.lock', extra=None, **kwargs): extra = kwargs.pop('extra', []) message = '{} {} {}'.format('[bold]You need to run[/bold]', '[bold red]$ pipenv lock[/bold red]', '[bold]before you can continue.[/bold]') super().__in...
class LockfileNotFound(PipenvFileError): def __init__(self, filename='Pipfile.lock', extra=None, **kwargs): pass
2
0
8
0
8
0
1
0
1
1
0
0
1
0
1
19
9
0
9
3
7
0
5
3
3
1
6
0
1
14,314
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.PipenvCmdError
from pipenv.patched.pip._vendor.rich.console import Console from pipenv.utils import err class PipenvCmdError(PipenvException): def __init__(self, cmd, out='', err='', exit_code=1): self.cmd = cmd self.out = out self.err = err self.exit_code = exit_code message = f'Error ru...
class PipenvCmdError(PipenvException): def __init__(self, cmd, out='', err='', exit_code=1): pass def show(self, file=None): pass
3
0
7
0
7
0
2
0
1
1
1
0
2
4
2
18
16
1
15
9
12
0
15
9
12
3
5
1
4
14,315
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.PipenvException
from pipenv.patched.pip._vendor.rich.console import Console from pipenv.vendor.click.exceptions import ClickException, FileError, UsageError import sys class PipenvException(ClickException): message = '[bold][red]ERROR[/red][/bold]: {}' def __init__(self, message=None, **kwargs): if not message: ...
class PipenvException(ClickException): def __init__(self, message=None, **kwargs): pass def show(self, file=None): pass
3
0
8
0
8
0
4
0
1
2
1
9
2
1
2
16
20
2
18
8
15
0
18
8
15
5
4
2
7
14,316
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.PipenvFileError
from pipenv.vendor.click.exceptions import ClickException, FileError, UsageError from pipenv.patched.pip._vendor.rich.console import Console class PipenvFileError(FileError): formatted_message = '{} {{}} {{}}'.format('[bold red]ERROR:[/bold red]') def __init__(self, filename, message=None, **kwargs): ...
class PipenvFileError(FileError): def __init__(self, filename, message=None, **kwargs): pass def show(self, file=None): pass
3
0
9
0
9
0
3
0
1
2
1
2
2
1
2
18
21
2
19
8
16
0
17
8
14
4
5
2
6
14,317
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.PipenvOptionsError
class PipenvOptionsError(PipenvUsageError): def __init__(self, option_name, message=None, ctx=None, **kwargs): extra = kwargs.pop('extra', []) PipenvUsageError.__init__(self, message=message, ctx=ctx, **kwargs) self.extra = extra self.option_name = option_name
class PipenvOptionsError(PipenvUsageError): def __init__(self, option_name, message=None, ctx=None, **kwargs): pass
2
0
5
0
5
0
1
0
1
0
0
1
1
2
1
19
6
0
6
5
4
0
6
5
4
1
6
0
1
14,318
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.PipenvUsageError
from pipenv.patched.pip._vendor.rich.console import Console from pipenv.vendor.click.exceptions import ClickException, FileError, UsageError class PipenvUsageError(UsageError): def __init__(self, message=None, ctx=None, **kwargs): formatted_message = '{0}: {1}' msg_prefix = '[bold red]ERROR:[/bold...
class PipenvUsageError(UsageError): def __init__(self, message=None, ctx=None, **kwargs): pass def show(self, file=None): pass
3
0
10
0
10
0
3
0
1
1
1
2
2
1
2
18
21
1
20
8
17
0
18
8
15
3
5
1
5
14,319
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.PipfileNotFound
class PipfileNotFound(PipenvFileError): def __init__(self, filename='Pipfile', extra=None, **kwargs): extra = kwargs.pop('extra', []) message = '{} {}'.format('[bold red]Aborting![/bold red]', '[bold]Please ensure that the file exists and is located in your project root directory.[/bold]') ...
class PipfileNotFound(PipenvFileError): def __init__(self, filename='Pipfile', extra=None, **kwargs): pass
2
0
7
0
7
0
1
0
1
1
0
0
1
0
1
19
8
0
8
3
6
0
5
3
3
1
6
0
1
14,320
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.RequirementError
from pipenv.vendor import click class RequirementError(PipenvException): def __init__(self, req=None): from pipenv.utils.constants import VCS_LIST keys = ('name', 'path') + VCS_LIST + ('line', 'uri', 'url', 'relpath') if req is not None: possible_display_values = [getattr(req, ...
class RequirementError(PipenvException): def __init__(self, req=None): pass
2
0
40
1
39
0
6
0
1
1
0
0
1
0
1
17
41
1
40
13
37
0
21
13
18
6
5
3
6
14,321
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.ResolutionFailure
class ResolutionFailure(PipenvException): def __init__(self, message, no_version_found=False): extra = 'Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.\nYou can use [yellow]$ pipenv run pip install <requirement_name>[/yellow] to bypass this mechanism, then run ...
class ResolutionFailure(PipenvException): def __init__(self, message, no_version_found=False): pass
2
0
14
0
14
0
2
0
1
1
0
0
1
0
1
17
15
0
15
3
13
0
6
3
4
2
5
1
2
14,322
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.SetupException
class SetupException(PipenvException): def __init__(self, message=None, **kwargs): PipenvException.__init__(self, message, **kwargs)
class SetupException(PipenvException): def __init__(self, message=None, **kwargs): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
17
3
0
3
2
1
0
3
2
1
1
5
0
1
14,323
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.SystemUsageError
class SystemUsageError(PipenvOptionsError): def __init__(self, option_name='system', message=None, ctx=None, **kwargs): extra = kwargs.pop('extra', []) extra += ['{}: --system is intended to be used for Pipfile installation, not installation of specific packages. Aborting.'.format('[bold red]Warnin...
class SystemUsageError(PipenvOptionsError): def __init__(self, option_name='system', message=None, ctx=None, **kwargs): pass
2
0
13
0
13
0
2
0
1
1
0
0
1
0
1
20
14
0
14
3
12
0
7
3
5
2
7
1
2
14,324
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.UninstallError
class UninstallError(PipenvException): def __init__(self, package, command, return_values, return_code, **kwargs): extra = ['{} {}'.format('[cyan]Attempting to run command: [/cyan]', f'[bold yellow]$ {command!r}[/bold yellow]')] extra.extend([f'[cyan]{line.strip()}[/cyan]' for line in return_values...
class UninstallError(PipenvException): def __init__(self, package, command, return_values, return_code, **kwargs): pass
2
0
19
0
19
0
2
0
1
3
0
0
1
2
1
17
20
0
20
6
18
0
10
6
8
2
5
1
2
14,325
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.VirtualenvActivationException
class VirtualenvActivationException(VirtualenvException): def __init__(self, message=None, **kwargs): if not message: message = 'activate_this.py not found. Your environment is most certainly not activated. Continuing anyway...' self.message = message VirtualenvException.__init_...
class VirtualenvActivationException(VirtualenvException): def __init__(self, message=None, **kwargs): pass
2
0
8
0
8
0
2
0
1
0
0
0
1
1
1
18
9
0
9
3
7
0
6
3
4
2
6
1
2
14,326
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.VirtualenvCreationException
class VirtualenvCreationException(VirtualenvException): def __init__(self, message=None, **kwargs): if not message: message = 'Failed to create virtual environment.' self.message = message extra = kwargs.pop('extra', None) if extra is not None and isinstance(extra, str):...
class VirtualenvCreationException(VirtualenvException): def __init__(self, message=None, **kwargs): pass
2
0
11
0
11
0
4
0
1
1
0
0
1
2
1
18
12
0
12
5
10
0
12
5
10
4
6
2
4
14,327
pypa/pipenv
pypa_pipenv/pipenv/exceptions.py
pipenv.exceptions.VirtualenvException
class VirtualenvException(PipenvException): def __init__(self, message=None, **kwargs): if not message: message = 'There was an unexpected error while activating your virtualenv. Continuing anyway...' PipenvException.__init__(self, message, **kwargs)
class VirtualenvException(PipenvException): def __init__(self, message=None, **kwargs): pass
2
0
7
0
7
0
2
0
1
0
0
2
1
0
1
17
8
0
8
2
6
0
5
2
3
2
5
1
2
14,328
pypa/pipenv
pypa_pipenv/pipenv/installers.py
pipenv.installers.Asdf
class Asdf(Installer): def _find_installer(self): return self._find_python_installer_by_name_and_env('asdf', 'ASDF_DIR') def iter_installable_versions(self): """Iterate through CPython versions available for asdf to install.""" for name in self._run('list-all', 'python').stdout.splitli...
class Asdf(Installer): def _find_installer(self): pass def iter_installable_versions(self): '''Iterate through CPython versions available for asdf to install.''' pass def install(self, version): '''Install the given version with asdf. The version must be a ``Versio...
4
2
8
0
6
2
2
0.39
1
3
1
0
3
0
3
31
27
2
18
7
14
7
13
7
9
3
4
2
5
14,329
pypa/pipenv
pypa_pipenv/pipenv/installers.py
pipenv.installers.Installer
from abc import ABCMeta, abstractmethod import operator from pipenv.utils.shell import find_windows_executable import os from pipenv.utils.processes import subprocess_run class Installer(metaclass=ABCMeta): def __init__(self, project): self.cmd = self._find_installer() self.project = project ...
class Installer(metaclass=ABCMeta): def __init__(self, project): pass def __str__(self): pass @abstractmethod def _find_installer(self): pass @staticmethod def _find_python_installer_by_name_and_env(name, env_var): ''' Given a python installer (pyenv or...
13
4
12
1
7
4
2
0.55
1
8
3
2
7
2
8
28
106
13
60
22
47
33
37
18
28
3
3
2
14
14,330
pypa/pipenv
pypa_pipenv/pipenv/installers.py
pipenv.installers.InstallerError
class InstallerError(RuntimeError): def __init__(self, desc, c): super().__init__(desc) self.out = c.stdout self.err = c.stderr
class InstallerError(RuntimeError): def __init__(self, desc, c): pass
2
0
4
0
4
0
1
0
1
1
0
0
1
2
1
12
5
0
5
4
3
0
5
4
3
1
4
0
1
14,331
pypa/pipenv
pypa_pipenv/pipenv/installers.py
pipenv.installers.InstallerNotFound
class InstallerNotFound(RuntimeError): pass
class InstallerNotFound(RuntimeError): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
11
2
0
2
1
1
0
2
1
1
0
4
0
0
14,332
pypa/pipenv
pypa_pipenv/pipenv/installers.py
pipenv.installers.Pyenv
import sys import os class Pyenv(Installer): WIN = sys.platform.startswith('win') or (sys.platform == 'cli' and os.name == 'nt') def _find_installer(self): return self._find_python_installer_by_name_and_env('pyenv', 'PYENV_ROOT') def _run(self, *args, **kwargs): if Pyenv.WIN: ...
class Pyenv(Installer): def _find_installer(self): pass def _run(self, *args, **kwargs): pass def iter_installable_versions(self): '''Iterate through CPython versions available for Pipenv to install.''' pass def install(self, version): '''Install the given ve...
5
2
7
0
5
2
2
0.4
1
4
1
0
4
0
4
32
32
4
20
9
15
8
20
9
15
3
4
2
8
14,333
pypa/pipenv
pypa_pipenv/pipenv/installers.py
pipenv.installers.Version
from typing import Optional import re from dataclasses import dataclass, field @dataclass class Version: major: int minor: int patch: Optional[int] = field(default=None) def __str__(self): parts = [self.major, self.minor] if self.patch is not None: parts.append(self.patch) ...
@dataclass class Version: def __str__(self): pass @classmethod def parse(cls, name: str): '''Parse an X.Y.Z, X.Y, or pre-release version string into a version tuple.''' pass @property def cmpkey(self): '''Make the version a comparable tuple. Some old Python v...
8
3
7
1
5
2
2
0.28
0
3
0
0
3
0
4
4
38
6
25
13
18
7
23
11
18
3
0
1
7
14,334
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/__pip-runner__.py
pipenv.patched.pip.__pip-runner__.PipImportRedirectingFinder
from importlib.machinery import PathFinder class PipImportRedirectingFinder: @classmethod def find_spec(self, fullname, path=None, target=None): if fullname != 'pip': return None spec = PathFinder.find_spec(fullname, [PIP_SOURCES_ROOT], target) assert spec, (PIP_SOURCES_ROO...
class PipImportRedirectingFinder: @classmethod def find_spec(self, fullname, path=None, target=None): pass
3
0
7
1
6
1
2
0.13
0
1
0
0
0
0
1
1
9
1
8
4
5
1
7
3
5
2
0
1
2
14,335
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/build_env.py
pipenv.patched.pip._internal.build_env.BuildEnvironment
from types import TracebackType from pipenv.patched.pip._internal.utils.packaging import get_requirement from pipenv.patched.pip._internal.utils.temp_dir import TempDirectory, tempdir_kinds import sys from pipenv.patched.pip._internal.utils.subprocess import call_subprocess from typing import TYPE_CHECKING, Iterable, L...
class BuildEnvironment: '''Creates and manages an isolated environment to install build deps''' def __init__(self) -> None: pass def __enter__(self) -> None: pass def __exit__(self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackT...
8
2
33
2
29
3
5
0.09
0
9
3
1
5
5
6
6
208
17
175
59
146
16
81
35
74
10
0
3
28
14,336
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/build_env.py
pipenv.patched.pip._internal.build_env.NoOpBuildEnvironment
from typing import TYPE_CHECKING, Iterable, List, Optional, Set, Tuple, Type, Union from types import TracebackType class NoOpBuildEnvironment(BuildEnvironment): """A no-op drop-in replacement for BuildEnvironment""" def __init__(self) -> None: pass def __enter__(self) -> None: pass ...
class NoOpBuildEnvironment(BuildEnvironment): '''A no-op drop-in replacement for BuildEnvironment''' def __init__(self) -> None: pass def __enter__(self) -> None: pass def __exit__(self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[Trace...
6
1
4
0
4
0
1
0.04
1
3
0
0
5
0
5
11
29
5
23
18
5
1
11
6
5
1
1
0
5
14,337
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/build_env.py
pipenv.patched.pip._internal.build_env._Prefix
from pipenv.patched.pip._internal.locations import get_platlib, get_purelib, get_scheme class _Prefix: def __init__(self, path: str) -> None: self.path = path self.setup = False scheme = get_scheme('', prefix=path) self.bin_dir = scheme.scripts self.lib_dirs = _dedup(scheme...
class _Prefix: def __init__(self, path: str) -> None: pass
2
0
6
0
6
0
1
0
0
1
0
0
1
4
1
1
7
0
7
7
5
0
7
7
5
1
0
0
1
14,338
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cache.py
pipenv.patched.pip._internal.cache.Cache
from pipenv.patched.pip._internal.models.link import Link from typing import Any, Dict, List, Optional import os from pipenv.patched.pip._vendor.packaging.tags import Tag, interpreter_name, interpreter_version class Cache: """An abstract class - provides cache directories for data from links :param cache_dir:...
class Cache: '''An abstract class - provides cache directories for data from links :param cache_dir: The root of the cache. ''' def __init__(self, cache_dir: str) -> None: pass def _get_cache_path_parts(self, link: Link) -> List[str]: '''Get parts of part that must be os.path.join...
6
4
12
1
6
4
2
0.7
0
6
2
2
5
1
5
5
68
12
33
17
22
23
28
12
22
3
0
1
9
14,339
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cache.py
pipenv.patched.pip._internal.cache.CacheEntry
from typing import Any, Dict, List, Optional from pipenv.patched.pip._internal.models.direct_url import DirectUrl from pipenv.patched.pip._internal.models.link import Link from pathlib import Path class CacheEntry: def __init__(self, link: Link, persistent: bool): self.link = link self.persistent ...
class CacheEntry: def __init__(self, link: Link, persistent: bool): pass
2
0
21
0
21
0
3
0
0
5
2
0
1
3
1
1
22
0
22
11
16
0
11
6
9
3
0
2
3
14,340
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cache.py
pipenv.patched.pip._internal.cache.EphemWheelCache
from pipenv.patched.pip._internal.utils.temp_dir import TempDirectory, tempdir_kinds class EphemWheelCache(SimpleWheelCache): """A SimpleWheelCache that creates it's own temporary cache directory""" def __init__(self) -> None: self._temp_dir = TempDirectory(kind=tempdir_kinds.EPHEM_WHEEL_CACHE, global...
class EphemWheelCache(SimpleWheelCache): '''A SimpleWheelCache that creates it's own temporary cache directory''' def __init__(self) -> None: pass
2
1
7
1
6
0
1
0.14
1
2
1
0
1
1
1
9
10
2
7
3
5
1
4
3
2
1
2
0
1
14,341
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cache.py
pipenv.patched.pip._internal.cache.SimpleWheelCache
from pipenv.patched.pip._vendor.packaging.tags import Tag, interpreter_name, interpreter_version from pipenv.patched.pip._vendor.packaging.utils import canonicalize_name from typing import Any, Dict, List, Optional import os from pipenv.patched.pip._internal.utils.urls import path_to_url from pipenv.patched.pip._intern...
class SimpleWheelCache(Cache): '''A cache of wheels for future installs.''' def __init__(self, cache_dir: str) -> None: pass def get_path_for_link(self, link: Link) -> str: '''Return a directory to store cached wheels for link Because there are M wheels for any one sdist, we provi...
4
2
21
2
14
4
3
0.32
1
6
4
1
3
0
3
8
68
10
44
15
35
14
27
10
23
7
1
2
9
14,342
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cache.py
pipenv.patched.pip._internal.cache.WheelCache
from pipenv.patched.pip._internal.models.direct_url import DirectUrl from pathlib import Path from pipenv.patched.pip._vendor.packaging.tags import Tag, interpreter_name, interpreter_version from pipenv.patched.pip._internal.models.link import Link from typing import Any, Dict, List, Optional class WheelCache(Cache): ...
class WheelCache(Cache): '''Wraps EphemWheelCache and SimpleWheelCache into a single Cache This Cache allows for gracefully degradation, using the ephem wheel cache when a certain link is not found in the simple wheel cache first. ''' def __init__(self, cache_dir: str) -> None: pass d...
8
2
12
0
10
1
2
0.16
1
10
6
0
5
2
6
11
83
9
64
25
46
10
33
13
26
4
1
3
12
14,343
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cli/base_command.py
pipenv.patched.pip._internal.cli.base_command.Command
from pipenv.patched.pip._internal.cli.status_codes import ERROR, PREVIOUS_BUILD_DIR_ERROR, UNKNOWN_ERROR, VIRTUALENV_NOT_FOUND from pipenv.patched.pip._internal.cli import cmdoptions from pipenv.patched.pip._vendor.rich import reconfigure from pipenv.patched.pip._internal.utils.virtualenv import running_under_virtualen...
class Command(CommandContextMixIn): def __init__(self, name: str, summary: str, isolated: bool=False) -> None: pass def add_options(self) -> None: pass def handle_pip_version_check(self, options: Values) -> None: ''' This is a no-op so that commands by default do not do t...
10
1
20
3
15
3
3
0.2
1
19
9
13
8
7
8
11
188
33
129
26
119
26
94
24
84
10
1
2
26
14,344
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cli/cmdoptions.py
pipenv.patched.pip._internal.cli.cmdoptions.PipOption
from optparse import SUPPRESS_HELP, Option, OptionGroup, OptionParser, Values class PipOption(Option): TYPES = Option.TYPES + ('path', 'package_name') TYPE_CHECKER = Option.TYPE_CHECKER.copy() TYPE_CHECKER['package_name'] = _package_name_option_check TYPE_CHECKER['path'] = _path_option_check
class PipOption(Option): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
18
5
0
5
3
4
0
5
3
4
0
1
0
0
14,345
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cli/command_context.py
pipenv.patched.pip._internal.cli.command_context.CommandContextMixIn
from typing import ContextManager, Generator, TypeVar from contextlib import ExitStack, contextmanager class CommandContextMixIn: def __init__(self) -> None: super().__init__() self._in_main_context = False self._main_context = ExitStack() @contextmanager def main_context(self) ->...
class CommandContextMixIn: def __init__(self) -> None: pass @contextmanager def main_context(self) -> Generator[None, None, None]: pass def enter_context(self, context_provider: ContextManager[_T]) -> _T: pass
5
0
6
1
5
0
1
0
0
2
0
2
3
2
3
3
21
4
17
7
12
0
15
6
11
1
0
2
3
14,346
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cli/index_command.py
pipenv.patched.pip._internal.cli.index_command.IndexGroupCommand
from pipenv.patched.pip._internal.cli.base_command import Command from optparse import Values class IndexGroupCommand(Command, SessionCommandMixin): """ Abstract base class for commands with the index_group options. This also corresponds to the commands that permit the pip version check. """ def ...
class IndexGroupCommand(Command, SessionCommandMixin): ''' Abstract base class for commands with the index_group options. This also corresponds to the commands that permit the pip version check. ''' def handle_pip_version_check(self, options: Values) -> None: ''' Do the pip version...
2
2
24
3
15
6
3
0.63
2
2
0
3
1
0
1
16
31
5
16
3
14
10
12
3
10
3
2
2
3
14,347
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cli/index_command.py
pipenv.patched.pip._internal.cli.index_command.SessionCommandMixin
from typing import TYPE_CHECKING, List, Optional import os from optparse import Values from pipenv.patched.pip._internal.cli.command_context import CommandContextMixIn class SessionCommandMixin(CommandContextMixIn): """ A class mixin for command classes needing _build_session(). """ def __init__(self)...
class SessionCommandMixin(CommandContextMixIn): ''' A class mixin for command classes needing _build_session(). ''' def __init__(self) -> None: pass @classmethod def _get_index_urls(cls, options: Values) -> Optional[List[str]]: '''Return a list of index urls from user-provi...
6
3
18
2
13
3
4
0.25
1
5
1
3
3
1
4
7
82
13
55
19
43
14
39
13
33
9
1
2
16
14,348
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cli/parser.py
pipenv.patched.pip._internal.cli.parser.ConfigOptionParser
from pipenv.patched.pip._internal.utils.misc import redact_auth_from_url, strtobool from contextlib import suppress from typing import Any, Dict, Generator, List, NoReturn, Optional, Tuple from pipenv.patched.pip._internal.configuration import Configuration, ConfigurationError import optparse from pipenv.patched.pip._i...
class ConfigOptionParser(CustomOptionParser): '''Custom option parser which updates its defaults by checking the configuration files and environmental variables''' def __init__(self, *args: Any, name: str, isolated: bool=False, **kwargs: Any) -> None: pass def check_default(self, option: ...
7
3
22
2
17
3
4
0.2
1
12
1
0
6
3
6
61
141
18
103
34
88
21
77
24
70
10
3
3
25
14,349
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cli/parser.py
pipenv.patched.pip._internal.cli.parser.CustomOptionParser
import optparse from typing import Any, Dict, Generator, List, NoReturn, Optional, Tuple class CustomOptionParser(optparse.OptionParser): def insert_option_group(self, idx: int, *args: Any, **kwargs: Any) -> optparse.OptionGroup: """Insert an OptionGroup at a given position.""" group = self.add_op...
class CustomOptionParser(optparse.OptionParser): def insert_option_group(self, idx: int, *args: Any, **kwargs: Any) -> optparse.OptionGroup: '''Insert an OptionGroup at a given position.''' pass @property def option_list_all(self) -> List[optparse.Option]: '''Get a list of all opti...
4
2
9
2
6
1
2
0.14
1
4
0
1
2
0
2
55
20
4
14
9
8
2
11
6
8
2
2
1
3
14,350
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cli/parser.py
pipenv.patched.pip._internal.cli.parser.PrettyHelpFormatter
from typing import Any, Dict, Generator, List, NoReturn, Optional, Tuple import textwrap import shutil import optparse class PrettyHelpFormatter(optparse.IndentedHelpFormatter): """A prettier/less verbose help formatter for optparse.""" def __init__(self, *args: Any, **kwargs: Any) -> None: kwargs['ma...
class PrettyHelpFormatter(optparse.IndentedHelpFormatter): '''A prettier/less verbose help formatter for optparse.''' def __init__(self, *args: Any, **kwargs: Any) -> None: pass def format_option_strings(self, option: optparse.Option) -> str: pass def _format_option_strings(self, opt...
9
3
9
1
6
2
2
0.33
1
4
0
1
8
0
8
26
80
12
51
16
40
17
46
14
37
5
2
2
16
14,351
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cli/parser.py
pipenv.patched.pip._internal.cli.parser.UpdatingDefaultsHelpFormatter
import optparse from pipenv.patched.pip._internal.utils.misc import redact_auth_from_url, strtobool class UpdatingDefaultsHelpFormatter(PrettyHelpFormatter): """Custom help formatter for use in ConfigOptionParser. This is updates the defaults before expanding them, allowing them to show up correctly in th...
class UpdatingDefaultsHelpFormatter(PrettyHelpFormatter): '''Custom help formatter for use in ConfigOptionParser. This is updates the defaults before expanding them, allowing them to show up correctly in the help listing. Also redact auth from url type options ''' def expand_default(self, opti...
2
1
21
4
16
1
6
0.35
1
5
1
0
1
0
1
27
30
7
17
5
15
6
17
5
15
6
3
2
6
14,352
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cli/req_command.py
pipenv.patched.pip._internal.cli.req_command.RequirementCommand
from pipenv.patched.pip._internal.req.req_dependency_group import parse_dependency_groups from pipenv.patched.pip._internal.cli.index_command import IndexGroupCommand from optparse import Values from pipenv.patched.pip._internal.utils.temp_dir import TempDirectory, TempDirectoryTypeRegistry, tempdir_kinds from pipenv.p...
class RequirementCommand(IndexGroupCommand): def __init__(self, *args: Any, **kw: Any) -> None: pass @staticmethod def determine_resolver_variant(options: Values) -> str: '''Determines which resolver should be used, based on the given options.''' pass @classmethod def make_...
12
6
34
2
29
3
3
0.12
1
22
14
3
3
0
7
23
252
20
208
65
159
24
63
26
53
11
3
2
23
14,353
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cli/spinners.py
pipenv.patched.pip._internal.cli.spinners.InteractiveSpinner
from typing import IO, Generator, Optional import sys import itertools from pipenv.patched.pip._internal.utils.logging import get_indentation class InteractiveSpinner(SpinnerInterface): def __init__(self, message: str, file: Optional[IO[str]]=None, spin_chars: str='-\\|/', min_update_interval_seconds: float=0.125...
class InteractiveSpinner(SpinnerInterface): def __init__(self, message: str, file: Optional[IO[str]]=None, spin_chars: str='-\\|/', min_update_interval_seconds: float=0.125): pass def _write(self, status: str) -> None: pass def spin(self) -> None: pass def finish(self, final...
5
0
11
1
9
1
2
0.11
1
5
1
0
4
6
4
6
47
5
38
18
27
4
32
12
27
3
1
1
8
14,354
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cli/spinners.py
pipenv.patched.pip._internal.cli.spinners.NonInteractiveSpinner
class NonInteractiveSpinner(SpinnerInterface): def __init__(self, message: str, min_update_interval_seconds: float=60.0) -> None: self._message = message self._finished = False self._rate_limiter = RateLimiter(min_update_interval_seconds) self._update('started') def _update(sel...
class NonInteractiveSpinner(SpinnerInterface): def __init__(self, message: str, min_update_interval_seconds: float=60.0) -> None: pass def _update(self, status: str) -> None: pass def spin(self) -> None: pass def finish(self, final_status: str) -> None: pass
5
0
5
0
5
0
2
0
1
3
1
0
4
3
4
6
24
3
21
8
16
0
21
8
16
3
1
1
7
14,355
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cli/spinners.py
pipenv.patched.pip._internal.cli.spinners.RateLimiter
import time class RateLimiter: def __init__(self, min_update_interval_seconds: float) -> None: self._min_update_interval_seconds = min_update_interval_seconds self._last_update: float = 0 def ready(self) -> bool: now = time.time() delta = now - self._last_update return...
class RateLimiter: def __init__(self, min_update_interval_seconds: float) -> None: pass def ready(self) -> bool: pass def reset(self) -> None: pass
4
0
3
0
3
0
1
0
0
2
0
0
3
2
3
3
12
2
10
8
6
0
10
8
6
1
0
0
3
14,356
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/cli/spinners.py
pipenv.patched.pip._internal.cli.spinners.SpinnerInterface
class SpinnerInterface: def spin(self) -> None: raise NotImplementedError() def finish(self, final_status: str) -> None: raise NotImplementedError()
class SpinnerInterface: def spin(self) -> None: pass def finish(self, final_status: str) -> None: pass
3
0
2
0
2
0
1
0
0
2
0
2
2
0
2
2
6
1
5
3
2
0
5
3
2
1
0
0
2
14,357
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/cache.py
pipenv.patched.pip._internal.commands.cache.CacheCommand
from pipenv.patched.pip._internal.utils.misc import format_size import os from pipenv.patched.pip._internal.exceptions import CommandError, PipError from typing import Any, List import textwrap from pipenv.patched.pip._internal.cli.base_command import Command from pipenv.patched.pip._internal.cli.status_codes import ER...
class CacheCommand(Command): ''' Inspect and manage pip's wheel cache. Subcommands: - dir: Show the cache directory. - info: Show information about the cache. - list: List filenames of packages stored in the cache. - remove: Remove one or more package from the cache. - purge: Remove all...
13
1
15
2
11
2
3
0.22
1
6
2
0
12
0
12
23
211
38
143
38
130
31
91
37
78
6
2
1
30
14,358
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/check.py
pipenv.patched.pip._internal.commands.check.CheckCommand
from pipenv.patched.pip._internal.utils.compatibility_tags import get_supported from pipenv.patched.pip._internal.cli.status_codes import ERROR, SUCCESS from typing import List from pipenv.patched.pip._internal.metadata import get_default_environment from optparse import Values from pipenv.patched.pip._internal.cli.bas...
class CheckCommand(Command): '''Verify installed packages have compatible dependencies.''' def run(self, options: Values, args: List[str]) -> int: pass
2
1
42
2
40
0
7
0.02
1
4
0
0
1
0
1
12
49
4
44
12
42
1
21
12
19
7
2
2
7
14,359
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/completion.py
pipenv.patched.pip._internal.commands.completion.CompletionCommand
from pipenv.patched.pip._internal.cli.base_command import Command from optparse import Values from pipenv.patched.pip._internal.cli.status_codes import SUCCESS import sys import textwrap from pipenv.patched.pip._internal.utils.misc import get_prog from typing import List class CompletionCommand(Command): """A help...
class CompletionCommand(Command): '''A helper command to be used for command completion.''' def add_options(self) -> None: pass def run(self, options: Values, args: List[str]) -> int: '''Prints the completion code of the given shell''' pass
3
2
25
1
24
1
2
0.04
1
3
0
0
2
0
2
13
56
4
50
7
47
2
17
7
14
2
2
1
3
14,360
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/configuration.py
pipenv.patched.pip._internal.commands.configuration.ConfigurationCommand
from optparse import Values from pipenv.patched.pip._internal.exceptions import PipError import subprocess from pipenv.patched.pip._internal.utils.misc import get_prog, write_output import os from typing import Any, List, Optional from pipenv.patched.pip._internal.configuration import Configuration, Kind, get_configura...
class ConfigurationCommand(Command): ''' Manage local and global configuration. Subcommands: - list: List the active configuration (or from the file specified) - edit: Edit the configuration file in an editor - get: Get the value associated with command.option - set: Set the command.option=...
15
5
15
1
12
1
3
0.19
1
10
2
0
14
1
14
25
259
40
184
39
169
35
107
36
92
6
2
4
38
14,361
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/debug.py
pipenv.patched.pip._internal.commands.debug.DebugCommand
from typing import Any, Dict, List, Optional from pipenv.patched.pip._internal.cli import cmdoptions import pipenv.patched.pip._vendor from pipenv.patched.pip._internal.utils.misc import get_pip_version from pipenv.patched.pip._vendor.certifi import where from optparse import Values from pipenv.patched.pip._internal.cl...
class DebugCommand(Command): ''' Display debug information. ''' def add_options(self) -> None: pass def run(self, options: Values, args: List[str]) -> int: pass
3
1
17
2
15
0
1
0.09
1
3
0
0
2
0
2
13
44
7
34
5
31
3
25
5
22
1
2
0
2
14,362
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/download.py
pipenv.patched.pip._internal.commands.download.DownloadCommand
from pipenv.patched.pip._internal.cli import cmdoptions from pipenv.patched.pip._internal.cli.status_codes import SUCCESS from typing import List from optparse import Values from pipenv.patched.pip._internal.cli.cmdoptions import make_target_python from pipenv.patched.pip._internal.utils.temp_dir import TempDirectory f...
class DownloadCommand(RequirementCommand): ''' Download packages from: - PyPI (and other indexes) using requirement specifiers. - VCS project urls. - Local project directories. - Local or remote source archives. pip also supports downloading from "requirements files", which provide an e...
4
1
54
10
43
1
3
0.12
1
4
1
0
2
0
2
25
129
24
94
17
90
11
51
16
48
4
4
2
5
14,363
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/freeze.py
pipenv.patched.pip._internal.commands.freeze.FreezeCommand
from pipenv.patched.pip._internal.operations.freeze import freeze from pipenv.patched.pip._internal.cli.base_command import Command import sys from pipenv.patched.pip._internal.cli import cmdoptions from optparse import Values from pipenv.patched.pip._internal.utils.compat import stdlib_pkgs from pipenv.patched.pip._in...
class FreezeCommand(Command): ''' Output installed packages in requirements format. packages are listed in a case-insensitive sorted order. ''' def add_options(self) -> None: pass def run(self, options: Values, args: List[str]) -> int: pass
3
1
36
2
34
0
3
0.05
1
4
0
0
2
0
2
13
85
8
73
8
70
4
23
8
20
4
2
1
5
14,364
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/hash.py
pipenv.patched.pip._internal.commands.hash.HashCommand
from pipenv.patched.pip._internal.cli.base_command import Command from pipenv.patched.pip._internal.cli.status_codes import ERROR, SUCCESS from pipenv.patched.pip._internal.utils.misc import read_chunks, write_output import sys from optparse import Values from typing import List from pipenv.patched.pip._internal.utils....
class HashCommand(Command): ''' Compute a hash of a local package archive. These can be used with --hash in a requirements file to do repeatable installs. ''' def add_options(self) -> None: pass def run(self, options: Values, args: List[str]) -> int: pass
3
1
12
1
12
0
2
0.19
1
3
0
0
2
0
2
13
36
5
26
7
23
5
14
7
11
3
2
1
4
14,365
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/help.py
pipenv.patched.pip._internal.commands.help.HelpCommand
from pipenv.patched.pip._internal.cli.base_command import Command from pipenv.patched.pip._internal.exceptions import CommandError from optparse import Values from pipenv.patched.pip._internal.cli.status_codes import SUCCESS from typing import List class HelpCommand(Command): """Show help for commands""" usage...
class HelpCommand(Command): '''Show help for commands''' def run(self, options: Values, args: List[str]) -> int: pass
2
1
26
6
19
2
4
0.13
1
5
1
0
1
0
1
12
33
8
23
13
16
3
18
9
15
4
2
2
4
14,366
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/index.py
pipenv.patched.pip._internal.commands.index.IndexCommand
from pipenv.patched.pip._internal.commands.search import get_installed_distribution, print_dist_installation_info from pipenv.patched.pip._internal.index.package_finder import PackageFinder import json from pipenv.patched.pip._internal.models.target_python import TargetPython from pipenv.patched.pip._internal.utils.mis...
class IndexCommand(IndexGroupCommand): ''' Inspect information available from package indexes. ''' def add_options(self) -> None: pass def run(self, options: Values, args: List[str]) -> int: pass def _build_package_finder(self, options: Values, session: PipSession, target_pyt...
5
2
26
4
20
2
2
0.12
1
15
9
0
4
0
4
20
118
22
86
26
75
10
47
18
42
4
3
2
9
14,367
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/inspect.py
pipenv.patched.pip._internal.commands.inspect.InspectCommand
from pipenv.patched.pip._internal.utils.compat import stdlib_pkgs from optparse import Values from pipenv.patched.pip import __version__ from typing import Any, Dict, List from pipenv.patched.pip._vendor.packaging.markers import default_environment from pipenv.patched.pip._internal.cli.status_codes import SUCCESS from ...
class InspectCommand(Command): ''' Inspect the content of a Python environment and produce a report in JSON format. ''' def add_options(self) -> None: pass def run(self, options: Values, args: List[str]) -> int: pass def _dist_to_dict(self, dist: BaseDistribution) -> Dict[str...
4
1
21
0
19
2
2
0.15
1
6
1
0
3
0
3
14
74
4
61
12
57
9
28
12
24
5
2
2
7
14,368
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/install.py
pipenv.patched.pip._internal.commands.install.InstallCommand
from pipenv.patched.pip._internal.models.installation_report import InstallationReport from pipenv.patched.pip._internal.operations.check import ConflictDetails, check_install_conflicts from pipenv.patched.pip._internal.utils.temp_dir import TempDirectory from pipenv.patched.pip._internal.locations import get_scheme fr...
class InstallCommand(RequirementCommand): ''' Install packages from: - PyPI (and other indexes) using requirement specifiers. - VCS project urls. - Local project directories. - Local or remote source archives. pip also supports installing from "requirements files", which provide an easy...
7
1
113
12
95
6
9
0.08
1
14
6
0
5
0
5
28
588
67
485
73
471
38
200
64
193
24
4
4
47
14,369
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/list.py
pipenv.patched.pip._internal.commands.list.ListCommand
from pipenv.patched.pip._vendor.packaging.utils import canonicalize_name from typing import TYPE_CHECKING, Generator, List, Optional, Sequence, Tuple, cast from pipenv.patched.pip._internal.cli import cmdoptions from optparse import Values from pipenv.patched.pip._internal.cli.index_command import IndexGroupCommand fro...
class ListCommand(IndexGroupCommand): ''' List installed packages, including editables. Packages are listed in a case-insensitive sorted order. ''' def add_options(self) -> None: pass def handle_pip_version_check(self, options: Values) -> None: pass def _build_package_fin...
12
2
25
2
22
1
3
0.09
1
11
4
0
10
0
10
26
273
34
220
51
190
19
91
33
77
7
3
3
31
14,370
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/search.py
pipenv.patched.pip._internal.commands.search.SearchCommand
from pipenv.patched.pip._internal.models.index import PyPI from pipenv.patched.pip._internal.exceptions import CommandError from pipenv.patched.pip._internal.cli.status_codes import NO_MATCHES_FOUND, SUCCESS from pipenv.patched.pip._internal.cli.req_command import SessionCommandMixin from optparse import Values import ...
class SearchCommand(Command, SessionCommandMixin): '''Search for PyPI packages whose name or summary contains <query>.''' def add_options(self) -> None: pass def run(self, options: Values, args: List[str]) -> int: pass def search(self, query: List[str], options: Values) -> List[Dict[...
4
1
14
2
12
0
2
0.02
2
8
2
0
3
0
3
18
51
9
41
17
37
1
31
16
27
4
2
1
7
14,371
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/search.py
pipenv.patched.pip._internal.commands.search.TransformedHit
from typing import Dict, List, Optional, TypedDict class TransformedHit(TypedDict): name: str summary: str versions: List[str]
class TransformedHit(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
14,372
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/show.py
pipenv.patched.pip._internal.commands.show.ShowCommand
from typing import Generator, Iterable, Iterator, List, NamedTuple, Optional from optparse import Values from pipenv.patched.pip._internal.cli.status_codes import ERROR, SUCCESS from pipenv.patched.pip._internal.cli.base_command import Command class ShowCommand(Command): """ Show information about one or more ...
class ShowCommand(Command): ''' Show information about one or more installed packages. The output is in RFC-compliant mail header format. ''' def add_options(self) -> None: pass def run(self, options: Values, args: List[str]) -> int: pass
3
1
12
1
11
0
2
0.16
1
3
0
0
2
0
2
13
35
6
25
7
22
4
15
7
12
3
2
1
4
14,373
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/show.py
pipenv.patched.pip._internal.commands.show._PackageInfo
from typing import Generator, Iterable, Iterator, List, NamedTuple, Optional class _PackageInfo(NamedTuple): name: str version: str location: str editable_project_location: Optional[str] requires: List[str] required_by: List[str] installer: str metadata_version: str classifiers: Lis...
class _PackageInfo(NamedTuple): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
18
0
18
1
17
0
18
1
17
0
1
0
0
14,374
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/uninstall.py
pipenv.patched.pip._internal.commands.uninstall.UninstallCommand
from pipenv.patched.pip._internal.req.constructors import install_req_from_line, install_req_from_parsed_requirement from pipenv.patched.pip._internal.cli.base_command import Command from pipenv.patched.pip._internal.utils.misc import check_externally_managed, protect_pip_from_modification_on_windows, warn_if_run_as_ro...
class UninstallCommand(Command, SessionCommandMixin): ''' Uninstall packages. pip is able to uninstall most installed packages. Known exceptions are: - Pure distutils packages installed with ``python setup.py install``, which leave behind no metadata to determine what files were installed. - ...
3
1
37
2
35
0
6
0.1
2
4
1
0
2
0
2
17
89
9
73
11
70
7
33
11
30
11
2
3
12
14,375
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/commands/wheel.py
pipenv.patched.pip._internal.commands.wheel.WheelCommand
from pipenv.patched.pip._internal.operations.build.build_tracker import get_build_tracker from pipenv.patched.pip._internal.cli import cmdoptions from optparse import Values from pipenv.patched.pip._internal.utils.temp_dir import TempDirectory from pipenv.patched.pip._internal.cli.req_command import RequirementCommand,...
class WheelCommand(RequirementCommand): ''' Build Wheel archives for your requirements and dependencies. Wheel is a built-package format, and offers the advantage of not recompiling your software during every install. For more details, see the wheel docs: https://wheel.readthedocs.io/en/latest/ ...
4
1
69
10
58
1
4
0.08
1
8
4
0
2
0
2
25
159
26
123
19
119
10
59
17
56
7
4
2
8
14,376
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/configuration.py
pipenv.patched.pip._internal.configuration.Configuration
import locale from pipenv.patched.pip._internal.utils.misc import ensure_dir, enum from typing import Any, Dict, Iterable, List, NewType, Optional, Tuple import os import configparser from pipenv.patched.pip._internal.exceptions import ConfigurationError, ConfigurationFileCouldNotBeLoaded class Configuration: """H...
class Configuration: '''Handles management of configuration. Provides an interface to accessing and managing configuration files. This class converts provides an API that takes "section.key-name" style keys and stores the value associated with it as "key-name" under the section "section". This ...
23
15
12
1
8
2
2
0.37
0
12
0
0
21
5
21
21
297
55
177
61
152
65
146
55
124
5
0
3
51
14,377
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/distributions/base.py
pipenv.patched.pip._internal.distributions.base.AbstractDistribution
from pipenv.patched.pip._internal.req import InstallRequirement from typing import TYPE_CHECKING, Optional import abc from pipenv.patched.pip._internal.metadata.base import BaseDistribution class AbstractDistribution(metaclass=abc.ABCMeta): """A base class for handling installable artifacts. The requirements ...
class AbstractDistribution(metaclass=abc.ABCMeta): '''A base class for handling installable artifacts. The requirements for anything installable are as follows: - we must be able to determine the requirement name (or we can't correctly handle the non-upgrade case). - for packages with setup re...
8
2
5
0
4
1
1
0.83
1
6
2
3
4
1
4
24
43
10
18
14
5
15
10
6
5
1
3
0
4
14,378
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/distributions/installed.py
pipenv.patched.pip._internal.distributions.installed.InstalledDistribution
from pipenv.patched.pip._internal.index.package_finder import PackageFinder from pipenv.patched.pip._internal.distributions.base import AbstractDistribution from typing import Optional from pipenv.patched.pip._internal.metadata import BaseDistribution class InstalledDistribution(AbstractDistribution): """Represent...
class InstalledDistribution(AbstractDistribution): '''Represents an installed package. This does not need any preparation as the required information has already been computed. ''' @property def build_tracker_id(self) -> Optional[str]: pass def get_metadata_distribution(self) -> Ba...
5
1
4
0
4
0
1
0.29
1
4
2
0
3
0
3
27
22
4
14
10
4
4
8
4
4
1
4
0
3
14,379
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/distributions/sdist.py
pipenv.patched.pip._internal.distributions.sdist.SourceDistribution
from typing import TYPE_CHECKING, Iterable, Optional, Set, Tuple from pipenv.patched.pip._internal.distributions.base import AbstractDistribution from pipenv.patched.pip._internal.exceptions import InstallationError from pipenv.patched.pip._internal.metadata import BaseDistribution from pipenv.patched.pip._internal.bui...
class SourceDistribution(AbstractDistribution): '''Represents a source distribution. The preparation step for these needs metadata for the packages to be generated, either using PEP 517 or using the legacy `setup.py egg_info`. ''' @property def build_tracker_id(self) -> Optional[str]: '...
11
2
14
0
12
2
2
0.21
1
6
3
0
9
1
9
33
143
12
108
35
90
23
64
26
54
5
4
2
17
14,380
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/distributions/wheel.py
pipenv.patched.pip._internal.distributions.wheel.WheelDistribution
from typing import TYPE_CHECKING, Optional from pipenv.patched.pip._internal.metadata import BaseDistribution, FilesystemWheel, get_wheel_distribution from pipenv.patched.pip._internal.distributions.base import AbstractDistribution from pipenv.patched.pip._vendor.packaging.utils import canonicalize_name class WheelDis...
class WheelDistribution(AbstractDistribution): '''Represents a wheel distribution. This does not need any preparation as wheels can be directly unpacked. ''' @property def build_tracker_id(self) -> Optional[str]: pass def get_metadata_distribution(self) -> BaseDistribution: '''...
5
2
6
0
5
1
1
0.44
1
4
2
0
3
0
3
27
27
4
16
11
6
7
10
5
6
1
4
0
3
14,381
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.ConfigurationFileCouldNotBeLoaded
import configparser from typing import TYPE_CHECKING, Dict, Iterator, List, Literal, Optional, Union class ConfigurationFileCouldNotBeLoaded(ConfigurationError): """When there are errors while loading a configuration file""" def __init__(self, reason: str='could not be loaded', fname: Optional[str]=None, erro...
class ConfigurationFileCouldNotBeLoaded(ConfigurationError): '''When there are errors while loading a configuration file''' def __init__(self, reason: str='could not be loaded', fname: Optional[str]=None, error: Optional[configparser.Error]=None) -> None: pass def __str__(self) -> str: pa...
3
1
9
0
9
0
2
0.06
1
3
0
0
2
3
2
12
21
2
18
12
10
1
12
7
9
2
5
1
3
14,382
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.DiagnosticPipError
from typing import TYPE_CHECKING, Dict, Iterator, List, Literal, Optional, Union from pipenv.patched.pip._vendor.rich.text import Text from pipenv.patched.pip._vendor.rich.console import Console, ConsoleOptions, RenderResult class DiagnosticPipError(PipError): """An error, that presents diagnostic information to t...
class DiagnosticPipError(PipError): '''An error, that presents diagnostic information to the user. This contains a bunch of logic, to enable pretty presentation of our error messages. Each error gets a unique reference. Each error can also include additional context, a hint and/or a note -- which are p...
4
1
33
3
29
1
4
0.1
1
5
3
7
3
6
3
13
113
16
88
25
70
9
39
11
35
9
4
2
12
14,383
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.ExternallyManagedEnvironment
import contextlib import configparser from typing import TYPE_CHECKING, Dict, Iterator, List, Literal, Optional, Union import locale from pipenv.patched.pip._vendor.rich.text import Text import pathlib class ExternallyManagedEnvironment(DiagnosticPipError): """The current environment is externally managed. Th...
class ExternallyManagedEnvironment(DiagnosticPipError): '''The current environment is externally managed. This is raised when the current environment is externally managed, as defined by `PEP 668`_. The ``EXTERNALLY-MANAGED`` configuration is checked and displayed when the error is bubbled up to the us...
6
1
18
0
16
2
4
0.21
1
11
1
0
1
0
3
16
71
7
53
21
43
11
37
16
32
5
5
3
11
14,384
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.HashError
from typing import TYPE_CHECKING, Dict, Iterator, List, Literal, Optional, Union class HashError(InstallationError): """ A failure to verify a package against known-good hashes :cvar order: An int sorting hash exception classes by difficulty of recovery (lower being harder), so the user doesn't bo...
class HashError(InstallationError): ''' A failure to verify a package against known-good hashes :cvar order: An int sorting hash exception classes by difficulty of recovery (lower being harder), so the user doesn't bother fretting about unpinned packages when he has deeper issues, like VCS ...
4
3
7
2
2
3
1
2.3
1
1
0
5
3
0
3
13
44
11
10
7
6
23
10
7
6
2
5
0
4
14,385
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.HashErrors
from typing import TYPE_CHECKING, Dict, Iterator, List, Literal, Optional, Union from itertools import chain, groupby, repeat class HashErrors(InstallationError): """Multiple HashError instances rolled into one for reporting""" def __init__(self) -> None: self.errors: List[HashError] = [] def app...
class HashErrors(InstallationError): '''Multiple HashError instances rolled into one for reporting''' def __init__(self) -> None: pass def append(self, error: 'HashError') -> None: pass def __str__(self) -> str: pass def __bool__(self) -> bool: pass
5
1
4
0
4
0
2
0.06
1
4
1
0
4
1
4
14
21
4
16
8
11
1
16
8
11
3
5
1
6
14,386
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.HashMismatch
from itertools import chain, groupby, repeat from typing import TYPE_CHECKING, Dict, Iterator, List, Literal, Optional, Union class HashMismatch(HashError): """ Distribution file hash values don't match. :ivar package_name: The name of the package that triggered the hash mismatch. Feel free to wri...
class HashMismatch(HashError): ''' Distribution file hash values don't match. :ivar package_name: The name of the package that triggered the hash mismatch. Feel free to write to this after the exception is raise to improve its error message. ''' def __init__(self, allowed: Dict[str...
5
3
10
1
5
4
1
0.88
1
3
0
0
3
2
3
16
56
11
24
12
19
21
17
12
12
2
6
1
5
14,387
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.HashMissing
class HashMissing(HashError): """A hash was needed for a requirement but is absent.""" order = 2 head = 'Hashes are required in --require-hashes mode, but they are missing from some requirements. Here is a list of those requirements along with the hashes their downloaded archives actually had. Add lines lik...
class HashMissing(HashError): '''A hash was needed for a requirement but is absent.''' def __init__(self, gotten_hash: str) -> None: ''' :param gotten_hash: The hash of the (possibly malicious) archive we just downloaded ''' pass def body(self) -> str: p...
3
2
13
1
7
5
2
0.44
1
1
0
0
2
1
2
15
40
4
25
8
21
11
11
8
7
3
6
1
4
14,388
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.InstallationSubprocessError
from pipenv.patched.pip._vendor.rich.text import Text from typing import TYPE_CHECKING, Dict, Iterator, List, Literal, Optional, Union from pipenv.patched.pip._vendor.rich.markup import escape class InstallationSubprocessError(DiagnosticPipError, InstallationError): """A subprocess call failed.""" reference = ...
class InstallationSubprocessError(DiagnosticPipError, InstallationError): '''A subprocess call failed.''' def __init__(self, *, command_description: str, exit_code: int, output_lines: Optional[List[str]]) -> None: pass def __str__(self) -> str: pass
3
1
17
1
16
0
2
0.03
2
4
1
1
2
2
2
15
39
5
33
13
24
1
11
7
8
2
5
1
3
14,389
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.InvalidInstalledPackage
from pipenv.patched.pip._vendor.packaging.version import InvalidVersion from typing import TYPE_CHECKING, Dict, Iterator, List, Literal, Optional, Union from pipenv.patched.pip._vendor.packaging.requirements import InvalidRequirement from pipenv.patched.pip._vendor.rich.text import Text class InvalidInstalledPackage(D...
class InvalidInstalledPackage(DiagnosticPipError): def __init__(self, *, dist: 'BaseDistribution', invalid_exc: Union[InvalidRequirement, InvalidVersion]) -> None: pass
2
0
25
2
23
0
3
0
1
4
3
0
1
0
1
14
28
3
25
10
18
0
8
5
6
3
5
1
3
14,390
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.InvalidPyProjectBuildRequires
from pipenv.patched.pip._vendor.rich.text import Text from pipenv.patched.pip._vendor.rich.markup import escape class InvalidPyProjectBuildRequires(DiagnosticPipError): """Raised when pyproject.toml an invalid `build-system.requires`.""" reference = 'invalid-pyproject-build-system-requires' def __init__(s...
class InvalidPyProjectBuildRequires(DiagnosticPipError): '''Raised when pyproject.toml an invalid `build-system.requires`.''' def __init__(self, *, package: str, reason: str) -> None: pass
2
1
10
0
10
0
1
0.08
1
3
1
0
1
0
1
14
15
2
12
3
10
1
4
3
2
1
5
0
1
14,391
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.InvalidSchemeCombination
class InvalidSchemeCombination(InstallationError): def __str__(self) -> str: before = ', '.join((str(a) for a in self.args[:-1])) return f'Cannot set {before} and {self.args[-1]} together'
class InvalidSchemeCombination(InstallationError): def __str__(self) -> str: pass
2
0
3
0
3
0
1
0
1
1
0
0
1
0
1
11
4
0
4
3
2
0
4
3
2
1
5
0
1
14,392
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.InvalidWheel
class InvalidWheel(InstallationError): """Invalid (e.g. corrupt) wheel.""" def __init__(self, location: str, name: str): self.location = location self.name = name def __str__(self) -> str: return f"Wheel '{self.name}' located at {self.location} is invalid."
class InvalidWheel(InstallationError): '''Invalid (e.g. corrupt) wheel.''' def __init__(self, location: str, name: str): pass def __str__(self) -> str: pass
3
1
3
0
3
0
1
0.17
1
1
0
0
2
2
2
12
9
2
6
5
3
1
6
5
3
1
5
0
2
14,393
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.LegacyDistutilsInstall
from pipenv.patched.pip._vendor.rich.text import Text class LegacyDistutilsInstall(DiagnosticPipError): reference = 'uninstall-distutils-installed-package' def __init__(self, *, distribution: 'BaseDistribution') -> None: super().__init__(message=Text(f'Cannot uninstall {distribution}'), context='It is...
class LegacyDistutilsInstall(DiagnosticPipError): def __init__(self, *, distribution: 'BaseDistribution') -> None: pass
2
0
10
0
10
0
1
0
1
2
1
0
1
0
1
14
13
1
12
3
10
0
4
3
2
1
5
0
1
14,394
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.MetadataGenerationFailed
from pipenv.patched.pip._vendor.rich.markup import escape class MetadataGenerationFailed(InstallationSubprocessError, InstallationError): reference = 'metadata-generation-failed' def __init__(self, *, package_details: str) -> None: super(InstallationSubprocessError, self).__init__(message='Encountered...
class MetadataGenerationFailed(InstallationSubprocessError, InstallationError): def __init__(self, *, package_details: str) -> None: pass def __str__(self) -> str: pass
3
0
7
0
7
0
1
0
2
2
0
0
2
0
2
17
17
2
15
8
8
0
6
4
3
1
6
0
2
14,395
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.MetadataInconsistent
class MetadataInconsistent(InstallationError): """Built metadata contains inconsistent information. This is raised when the metadata contains values (e.g. name and version) that do not match the information previously obtained from sdist filename, user-supplied ``#egg=`` value, or an install requiremen...
class MetadataInconsistent(InstallationError): '''Built metadata contains inconsistent information. This is raised when the metadata contains values (e.g. name and version) that do not match the information previously obtained from sdist filename, user-supplied ``#egg=`` value, or an install requirement...
3
1
6
0
6
0
1
0.38
1
1
0
0
2
4
2
12
21
3
13
9
8
5
8
7
5
1
5
0
2
14,396
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.MetadataInvalid
class MetadataInvalid(InstallationError): """Metadata is invalid.""" def __init__(self, ireq: 'InstallRequirement', error: str) -> None: self.ireq = ireq self.error = error def __str__(self) -> str: return f'Requested {self.ireq} has invalid metadata: {self.error}'
class MetadataInvalid(InstallationError): '''Metadata is invalid.''' def __init__(self, ireq: 'InstallRequirement', error: str) -> None: pass def __str__(self) -> str: pass
3
1
3
0
3
0
1
0.17
1
1
0
0
2
2
2
12
9
2
6
5
3
1
6
5
3
1
5
0
2
14,397
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.MissingPyProjectBuildRequires
from pipenv.patched.pip._vendor.rich.markup import escape from pipenv.patched.pip._vendor.rich.text import Text class MissingPyProjectBuildRequires(DiagnosticPipError): """Raised when pyproject.toml has `build-system`, but no `build-system.requires`.""" reference = 'missing-pyproject-build-system-requires' ...
class MissingPyProjectBuildRequires(DiagnosticPipError): '''Raised when pyproject.toml has `build-system`, but no `build-system.requires`.''' def __init__(self, *, package: str) -> None: pass
2
1
10
0
10
0
1
0.08
1
3
1
0
1
0
1
14
15
2
12
3
10
1
4
3
2
1
5
0
1
14,398
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.NetworkConnectionError
from typing import TYPE_CHECKING, Dict, Iterator, List, Literal, Optional, Union class NetworkConnectionError(PipError): """HTTP connection error""" def __init__(self, error_msg: str, response: Optional['Response']=None, request: Optional['Request']=None) -> None: """ Initialize NetworkConnect...
class NetworkConnectionError(PipError): '''HTTP connection error''' def __init__(self, error_msg: str, response: Optional['Response']=None, request: Optional['Request']=None) -> None: ''' Initialize NetworkConnectionError with `request` and `response` objects. ''' pass...
3
2
11
0
9
2
2
0.26
1
2
0
0
2
3
2
12
26
2
19
11
11
5
10
6
7
2
4
1
3
14,399
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_internal/exceptions.py
pipenv.patched.pip._internal.exceptions.NoneMetadataError
class NoneMetadataError(PipError): """Raised when accessing a Distribution's "METADATA" or "PKG-INFO". This signifies an inconsistency, when the Distribution claims to have the metadata file (if not, raise ``FileNotFoundError`` instead), but is not actually able to produce its content. This may be due ...
class NoneMetadataError(PipError): '''Raised when accessing a Distribution's "METADATA" or "PKG-INFO". This signifies an inconsistency, when the Distribution claims to have the metadata file (if not, raise ``FileNotFoundError`` instead), but is not actually able to produce its content. This may be due t...
3
2
8
0
5
4
1
1.3
1
1
0
0
2
2
2
12
26
3
10
9
3
13
6
5
3
1
4
0
2