pip API reference
203 public APIs from pip (pypa/pip) — 62 classes, 82 functions, 59 methods. Signatures extracted by static analysis of the actual source.
Repository: pypa/pip
| Kind | Count |
|---|---|
| Classes | 62 |
| Functions | 82 |
| Methods | 59 |
API list
class
src.pip._internal.build_env.noop.NoOpBuildEnvironmentA no-op drop-in replacement for BuildEnvironment
class
src.pip._internal.build_env.venv.VenvBuildEnvironmentA venv-based build environment.
class
src.pip._internal.build_env.virtual.VirtualBuildEnvironmentLegacy build environment implementation.
method
src.pip._internal.cache.Cache.get_path_for_link(link:Link) -> strReturn a directory to store cached items in for link.
class
src.pip._internal.cache.SimpleWheelCacheA cache of wheels for future installs.
func
src.pip._internal.cli.cmdoptions.check_build_constraints(options:Values) -> NoneFunction for validating build constraints options.
func
src.pip._internal.cli.cmdoptions.raise_option_error(parser:OptionParser, option:Option, msg:str) -> NoneRaise an option parsing error using parser.error().
method
src.pip._internal.cli.index_command.SessionCommandMixin.get_default_session(options:Values) -> PipSessionGet a default-managed session.
func
src.pip._internal.cli.main_parser.create_main_parser() -> ConfigOptionParserCreates and returns the main parser for pip's CLI
class
src.pip._internal.cli.parser.PrettyHelpFormatterA prettier/less verbose help formatter for optparse.
method
src.pip._internal.cli.parser.PrettyHelpFormatter.expand_default(option:optparse.Option) -> strOverridden HelpFormatter.expand_default() which colorizes flags.
method
src.pip._internal.cli.parser.PrettyHelpFormatter.format_option(option:optparse.Option) -> strOverridden method with Rich support.
class
src.pip._internal.cli.parser.UpdatingDefaultsHelpFormatterCustom help formatter for use in ConfigOptionParser.
class
src.pip._internal.commands.cache.CacheCommandInspect and manage pip's wheel cache.
class
src.pip._internal.commands.check.CheckCommandVerify installed packages have compatible dependencies.
class
src.pip._internal.commands.completion.CompletionCommandA helper command to be used for command completion.
method
src.pip._internal.commands.completion.CompletionCommand.run(options:Values, args:list[str]) -> intPrints the completion code of the given shell
class
src.pip._internal.commands.configuration.ConfigurationCommandManage local and global configuration.
method
src.pip._internal.commands.configuration.ConfigurationCommand.print_config_file_values(variant:Kind, fname:str) -> NoneGet key-value pairs from the file of a variant
func
src.pip._internal.commands.create_command(name:str, **kwargs:Any) -> CommandCreate an instance of the Command class with the given name.
class
src.pip._internal.commands.debug.DebugCommandDisplay debug information.
class
src.pip._internal.commands.freeze.FreezeCommandOutput installed packages in requirements format.
func
src.pip._internal.commands.get_similar_commands(name:str) -> str | NoneCommand name auto-correct.
class
src.pip._internal.commands.hash.HashCommandCompute a hash of a local package archive.
class
src.pip._internal.commands.help.HelpCommandShow help for commands
class
src.pip._internal.commands.index.IndexCommandInspect information available from package indexes.
class
src.pip._internal.commands.list.ListCommandList installed packages, including editables.
func
src.pip._internal.commands.search.transform_hits(hits:list[dict[str, str]]) -> list[TransformedHit]The list from pypi is really a list of versions.
class
src.pip._internal.commands.show.ShowCommandShow information about one or more installed packages.
func
src.pip._internal.commands.show.search_packages_info(query:list[str], include_files:bool) -> Generator[_PackageInfo, None, None]Gather details from installed distributions.
class
src.pip._internal.commands.uninstall.UninstallCommandUninstall packages.
class
src.pip._internal.configuration.ConfigurationHandles management of configuration.
method
src.pip._internal.configuration.Configuration.get_value(key:str) -> AnyGet a value from the configuration.
method
src.pip._internal.configuration.Configuration.get_values_in_config(variant:Kind) -> dict[str, Any]Get values present in a config file
method
src.pip._internal.configuration.Configuration.save() -> NoneSave the current in-memory state.
method
src.pip._internal.configuration.Configuration.set_value(key:str, value:Any) -> NoneModify a value in the configuration.
method
src.pip._internal.configuration.Configuration.unset_value(key:str) -> NoneUnset a value in the configuration.
class
src.pip._internal.distributions.base.AbstractDistributionA base class for handling installable artifacts.
class
src.pip._internal.distributions.installed.InstalledDistributionRepresents an installed package.
class
src.pip._internal.distributions.sdist.SourceDistributionRepresents a source distribution.
method
src.pip._internal.distributions.sdist.SourceDistribution.build_tracker_id() -> str | NoneIdentify this requirement uniquely by its link.
class
src.pip._internal.distributions.wheel.WheelDistributionRepresents a wheel distribution.
class
src.pip._internal.exceptions.BadCommandRaised when virtualenv or a command is not found
class
src.pip._internal.exceptions.BuildDependencyInstallErrorRaised when build dependencies cannot be installed.
class
src.pip._internal.exceptions.CommandErrorRaised when there is an error in command-line arguments
class
src.pip._internal.exceptions.ConfigurationErrorGeneral exception in configuration
class
src.pip._internal.exceptions.DiagnosticPipErrorAn error, that presents diagnostic information to the user.
class
src.pip._internal.exceptions.ExternallyManagedEnvironmentThe current environment is externally managed.
class
src.pip._internal.exceptions.FailedToPrepareCandidateRaised when we fail to prepare a candidate (i.e.
class
src.pip._internal.exceptions.HashErrorsMultiple HashError instances rolled into one for reporting
class
src.pip._internal.exceptions.HashMismatchDistribution file hash values don't match.
class
src.pip._internal.exceptions.HashMissingA hash was needed for a requirement but is absent.
class
src.pip._internal.exceptions.InstallationErrorGeneral exception during installation
class
src.pip._internal.exceptions.InstallationSubprocessErrorA subprocess call failed.
class
src.pip._internal.exceptions.InvalidWheelInvalid (e.g.
class
src.pip._internal.exceptions.InvalidWheelFilenameInvalid wheel filename.
class
src.pip._internal.exceptions.MetadataInconsistentBuilt metadata contains inconsistent information.
class
src.pip._internal.exceptions.MetadataInvalidMetadata is invalid.
class
src.pip._internal.exceptions.NetworkConnectionErrorHTTP connection error
class
src.pip._internal.exceptions.PipErrorThe base pip error.
class
src.pip._internal.exceptions.PreviousBuildDirErrorRaised when there's a previous conflicting build directory
class
src.pip._internal.exceptions.UnsupportedWheelUnsupported wheel.
class
src.pip._internal.exceptions.VenvCreationErrorRaised when a virtual environment can't be created.
class
src.pip._internal.exceptions.VenvImportErrorRaised when 'venv' can't be imported.
class
src.pip._internal.index.collector.IndexContentRepresents one response (or page), along with its URL.
method
src.pip._internal.index.package_finder.LinkEvaluator.evaluate_link(link:Link) -> tuple[LinkType, str]Determine whether a link is a candidate for installation.
class
src.pip._internal.index.package_finder.PackageFinderThis finds packages.
method
src.pip._internal.index.package_finder.PackageFinder.create(link_collector:LinkCollector, selection_prefs:SelectionPreferences, target_python:TargetPython | None=None, uploaded_prior_to:datetime.datetime | None=None) -> PackageFinderCreate a PackageFinder.
func
src.pip._internal.locations.base.change_root(new_root:str, pathname:str) -> strReturn 'pathname' with 'new_root' prepended.
func
src.pip._internal.locations.get_platlib() -> strReturn the default platform-shared lib location.
func
src.pip._internal.locations.get_purelib() -> strReturn the default pure-Python lib location.
func
src.pip._internal.metadata._json.msg_to_json(msg:Message) -> dict[str, Any]Convert a Message object into a JSON-compatible dictionary.
method
src.pip._internal.metadata.base.BaseDistribution.direct_url() -> DirectUrl | NoneObtain a DirectUrl from this distribution.
method
src.pip._internal.metadata.base.BaseDistribution.from_directory(directory:str) -> BaseDistributionLoad the distribution from a metadata directory.
method
src.pip._internal.metadata.base.BaseDistribution.from_wheel(wheel:Wheel, name:str) -> BaseDistributionLoad the distribution from a given wheel.
method
src.pip._internal.metadata.base.BaseDistribution.installed_as_egg() -> boolWhether this distribution is installed as an egg.
method
src.pip._internal.metadata.base.BaseDistribution.installed_location() -> str | NoneThe distribution's "installed" location.
method
src.pip._internal.metadata.base.BaseDistribution.is_file(path:InfoPath) -> boolCheck whether an entry in the info directory is a file.
method
src.pip._internal.metadata.base.BaseDistribution.iter_dependencies(extras:Collection[str]=()) -> Iterable[Requirement]Dependencies of this distribution.
method
src.pip._internal.metadata.base.BaseDistribution.iter_distutils_script_names() -> Iterator[str]Find distutils 'scripts' entries metadata.
method
src.pip._internal.metadata.base.BaseDistribution.iter_provided_extras() -> Iterable[NormalizedName]Extras provided by this distribution.
method
src.pip._internal.metadata.base.BaseDistribution.iter_raw_dependencies() -> Iterable[str]Raw Requires-Dist metadata.
method
src.pip._internal.metadata.base.BaseDistribution.location() -> str | NoneWhere the distribution is loaded from.
method
src.pip._internal.metadata.base.BaseDistribution.metadata() -> email.message.MessageMetadata of distribution parsed from e.g.
method
src.pip._internal.metadata.base.BaseDistribution.raw_name() -> strValue of "Name:" in distribution metadata.
method
src.pip._internal.metadata.base.BaseDistribution.read_text(path:InfoPath) -> strRead a file in the info directory.
class
src.pip._internal.metadata.base.BaseEnvironmentAn environment containing distributions to introspect.
func
src.pip._internal.metadata.get_environment(paths:list[str] | None) -> BaseEnvironmentGet a representation of the environment specified by ``paths``.
class
src.pip._internal.metadata.importlib._compat.BasePathA protocol that various path objects conform.
func
src.pip._internal.metadata.importlib._compat.get_dist_canonical_name(dist:importlib.metadata.Distribution) -> NormalizedNameGet the distribution's normalized name.
class
src.pip._internal.models.candidate.InstallationCandidateRepresents a potential "candidate" for installation.
class
src.pip._internal.models.link.LinkRepresents a parsed link from a Package Index's simple URL
method
src.pip._internal.models.link.Link.is_hash_allowed(hashes:Hashes | None) -> boolReturn True if the link has a hash and it is allowed by `hashes`.
method
src.pip._internal.models.link.Link.netloc() -> strThis can contain auth information.
class
src.pip._internal.models.link.LinkHashLinks to content may have embedded hash values.
method
src.pip._internal.models.link.LinkHash.is_hash_allowed(hashes:Hashes | None) -> boolReturn True if the current hash is allowed by `hashes`.
func
src.pip._internal.models.link.as_path_component(name:str) -> PathComponentLike ``_to_path_component`` but reject the empty result.
func
src.pip._internal.models.link.join_within_directory(directory:str, component:PathComponent) -> strJoin a single path ``component`` onto ``directory``.
method
src.pip._internal.models.release_control.ReleaseControl.allows_prereleases(canonical_name:NormalizedName) -> bool | NoneDetermine if pre-releases are allowed for a package.
method
src.pip._internal.models.release_control.ReleaseControl.handle_mutual_excludes(value:str, target:set[str], other:set[str], attr_name:str) -> NoneParse and apply release control option value.
class
src.pip._internal.models.wheel.WheelA wheel file
method
src.pip._internal.models.wheel.Wheel.get_formatted_file_tags() -> list[str]Return the wheel's tags as a sorted list of strings.
method
src.pip._internal.models.wheel.Wheel.supported(tags:Iterable[Tag]) -> boolReturn whether the wheel is compatible with one of the given tags.
class
src.pip._internal.network.auth.KeyRingBaseProviderKeyring base provider interface
class
src.pip._internal.network.auth.KeyRingNullProviderKeyring null provider
class
src.pip._internal.network.auth.KeyRingPythonProviderKeyring interface which uses locally imported `keyring`
func
src.pip._internal.network.download.sanitize_content_filename(filename:str) -> strSanitize the "filename" value from a Content-Disposition header.
class
src.pip._internal.network.lazy_wheel.LazyZipOverHTTPFile-like object mapped to a ZIP file over HTTP.
method
src.pip._internal.network.lazy_wheel.LazyZipOverHTTP.close() -> NoneClose the file.
method
src.pip._internal.network.lazy_wheel.LazyZipOverHTTP.closed() -> boolWhether the file is closed.
method
src.pip._internal.network.lazy_wheel.LazyZipOverHTTP.mode() -> strOpening mode, which is always rb.
method
src.pip._internal.network.lazy_wheel.LazyZipOverHTTP.name() -> strPath to the underlying file.
method
src.pip._internal.network.lazy_wheel.LazyZipOverHTTP.read(size:int=-1) -> bytesRead up to size bytes from the object and return them.
method
src.pip._internal.network.lazy_wheel.LazyZipOverHTTP.readable() -> boolReturn whether the file is readable, which is True.
method
src.pip._internal.network.lazy_wheel.LazyZipOverHTTP.seek(offset:int, whence:int=0) -> intChange stream position and return the new absolute position.
method
src.pip._internal.network.lazy_wheel.LazyZipOverHTTP.tell() -> intReturn the current position.
method
src.pip._internal.network.lazy_wheel.LazyZipOverHTTP.truncate(size:int | None=None) -> intResize the stream to the given size in bytes.
method
src.pip._internal.network.lazy_wheel.LazyZipOverHTTP.writable() -> boolReturn False.
func
src.pip._internal.network.lazy_wheel.dist_from_wheel_url(name:NormalizedName, url:str, session:PipSession) -> BaseDistributionReturn a distribution object from the given wheel URL.
func
src.pip._internal.network.session.user_agent() -> strReturn a string representing the user agent.
func
src.pip._internal.network.utils.response_chunks(response:Response, chunk_size:int=DOWNLOAD_CHUNK_SIZE) -> Generator[bytes, None, None]Given a requests Response, provide the data chunks.
func
src.pip._internal.operations.install.wheel.pyc_output_path(path:str) -> strReturn the path the pyc file would have been written to.
func
src.pip._internal.operations.install.wheel.record_installed(srcfile:RecordPath, destfile:str, modified:bool=False) -> NoneMap archive RECORD paths to installation RECORD paths.
class
src.pip._internal.operations.prepare.RequirementPreparerPrepares a Requirement
method
src.pip._internal.operations.prepare.RequirementPreparer.prepare_editable_requirement(req:InstallRequirement) -> BaseDistributionPrepare an editable requirement.
method
src.pip._internal.operations.prepare.RequirementPreparer.prepare_installed_requirement(req:InstallRequirement, skip_reason:str) -> BaseDistributionPrepare an already-installed requirement.
func
src.pip._internal.operations.prepare.get_file_url(link:Link, download_dir:str | None=None, hashes:Hashes | None=None) -> FileGet file and optionally check its hash.
func
src.pip._internal.pyproject.load_pyproject_toml(pyproject_toml:str, setup_py:str, req_name:str) -> BuildSystemDetailsLoad the pyproject.toml file.
func
src.pip._internal.req.constructors.check_first_requirement_in_file(filename:str) -> NoneCheck if file is parsable as a requirements file.
func
src.pip._internal.req.req_file.break_args_options(line:str) -> tuple[str, str]Break up the line into an args and options string.
func
src.pip._internal.req.req_file.build_parser() -> optparse.OptionParserReturn a parser for parsing requirement lines
func
src.pip._internal.req.req_file.ignore_comments(lines_enum:ReqFileLines) -> ReqFileLinesStrips comments and filter empty lines.
func
src.pip._internal.req.req_uninstall.compress_for_rename(paths:Iterable[str]) -> set[str]Returns a set containing the paths that need to be renamed.
method
src.pip._internal.resolution.legacy.resolver.Resolver.get_installation_order(req_set:RequirementSet) -> list[InstallRequirement]Create the installation order.
method
src.pip._internal.resolution.resolvelib.base.Candidate.name() -> strThe name identifying this candidate in the resolver.
method
src.pip._internal.resolution.resolvelib.base.Candidate.project_name() -> NormalizedNameThe "project name" of the candidate.
method
src.pip._internal.resolution.resolvelib.base.Requirement.project_name() -> NormalizedNameThe "project name" of a requirement.
func
src.pip._internal.resolution.resolvelib.candidates.as_base_candidate(candidate:Candidate) -> BaseCandidate | NoneThe runtime version of BaseCandidate.
method
src.pip._internal.resolution.resolvelib.factory.Factory.get_wheel_cache_entry(link:Link, name:str | None) -> CacheEntry | NoneLook up the link in the wheel cache.
class
src.pip._internal.resolution.resolvelib.provider.PipProviderPip's provider implementation for resolvelib.
method
src.pip._internal.resolution.resolvelib.provider.PipProvider.constraints() -> dict[str, Constraint]Public view of user-specified constraints.
class
src.pip._internal.resolution.resolvelib.requirements.UnsatisfiableRequirementA requirement that cannot be satisfied.
func
src.pip._internal.utils._jaraco_text.drop_comment(line)Drop comments.
func
src.pip._internal.utils._log.getLogger(name:str) -> VerboseLoggerlogging.getLogger, but ensures our VerboseLogger class is returned
func
src.pip._internal.utils._log.init_logging() -> NoneRegister our VerboseLogger and VERBOSE log level.
func
src.pip._internal.utils.compat.get_locale_encoding() -> strReturn the locale encoding.
func
src.pip._internal.utils.compat.get_path_uid(path:str) -> intReturn path's uid.
func
src.pip._internal.utils.datetime.parse_iso_datetime(isodate:str) -> datetime.datetimeConvert an ISO format string to a datetime.
func
src.pip._internal.utils.direct_url_helpers.direct_url_as_pep440_direct_reference(direct_url:DirectUrl, name:str) -> strConvert a DirectUrl to a pip requirement string.
func
src.pip._internal.utils.filesystem.subdirs_without_files(path:str) -> Generator[Path]Yields every subdirectory of +path+ that has no files under it.
func
src.pip._internal.utils.filetypes.is_archive_file(name:str) -> boolReturn True if `name` is a considered as an archive file.
func
src.pip._internal.utils.logging.capture_logging() -> Generator[StringIO, None, None]Capture all pip logs in a buffer temporarily.
func
src.pip._internal.utils.misc.ask(message:str, options:Iterable[str]) -> strAsk the message interactively, with the given possible responses
func
src.pip._internal.utils.misc.ask_input(message:str) -> strAsk for input interactively.
func
src.pip._internal.utils.misc.ask_password(message:str) -> strAsk for a password interactively.
func
src.pip._internal.utils.misc.build_netloc(host:str, port:int | None) -> strBuild a netloc from a host-port pair
func
src.pip._internal.utils.misc.build_url_from_netloc(netloc:str, scheme:str='https') -> strBuild a full URL from a netloc.
func
src.pip._internal.utils.misc.ensure_dir(path:str) -> Noneos.path.makedirs without EEXIST.
func
src.pip._internal.utils.misc.hash_file(path:str, blocksize:int=1 << 20) -> tuple[Any, int]Return (hash, length) for path using hashlib.sha256()
func
src.pip._internal.utils.misc.is_console_interactive() -> boolIs this console interactive?
func
src.pip._internal.utils.misc.is_installable_dir(path:str) -> boolIs path is a directory containing pyproject.toml or setup.py?
func
src.pip._internal.utils.misc.looks_like_ci() -> boolReturn whether it looks like pip is running under CI.
func
src.pip._internal.utils.misc.normalize_path(path:str, resolve_symlinks:bool=True) -> strConvert a path to its canonical, case-normalized, absolute version.
func
src.pip._internal.utils.misc.pairwise(iterable:Iterable[Any]) -> Iterator[tuple[Any, Any]]Return paired elements.
func
src.pip._internal.utils.misc.parse_netloc(netloc:str) -> tuple[str | None, int | None]Return the host-port pair from a netloc.
func
src.pip._internal.utils.misc.read_chunks(file:BinaryIO, size:int=FILE_CHUNK_SIZE) -> Generator[bytes, None, None]Yield pieces of data from a file-like object until EOF.
func
src.pip._internal.utils.misc.redact_auth_from_requirement(req:Requirement) -> strReplace the password in a given requirement url with ****.
func
src.pip._internal.utils.misc.redact_auth_from_url(url:str) -> strReplace the password in a given url with ****.
func
src.pip._internal.utils.misc.redact_netloc(netloc:str) -> strReplace the sensitive data in a netloc with "****", if it exists.
func
src.pip._internal.utils.misc.remove_auth_from_url(url:str) -> strReturn a copy of url with 'username:password@' removed.
func
src.pip._internal.utils.misc.renames(old:str, new:str) -> NoneLike os.renames(), but handles renaming across devices.
func
src.pip._internal.utils.misc.split_auth_from_netloc(netloc:str) -> NetlocTupleParse out and remove the auth information from a netloc.
func
src.pip._internal.utils.misc.splitext(path:str) -> tuple[str, str]Like os.path.splitext, but take off .tar too
func
src.pip._internal.utils.misc.strtobool(val:str) -> intConvert a string representation of truth to true (1) or false (0).
func
src.pip._internal.utils.misc.tabulate(rows:Iterable[Iterable[Any]]) -> tuple[list[str], list[int]]Return a list of formatted rows and a list of column sizes.
func
src.pip._internal.utils.misc.warn_if_run_as_root() -> NoneOutput a warning for sudo users on Unix.
func
src.pip._internal.utils.packaging.get_requirement(req_string:str) -> RequirementConstruct a packaging.Requirement object with caching
func
src.pip._internal.utils.retry.retry(wait:float, stop_after_delay:float) -> Callable[[Callable[P, T]], Callable[P, T]]Decorator to automatically retry a function on error.
func
src.pip._internal.utils.subprocess.format_command_args(args:list[str] | CommandArgs) -> strFormat command arguments for display.
func
src.pip._internal.utils.subprocess.make_command(*args:str | HiddenText | CommandArgs) -> CommandArgsCreate a CommandArgs object.
func
src.pip._internal.utils.subprocess.reveal_command_args(args:list[str] | CommandArgs) -> list[str]Return the arguments in their raw, unredacted form.
func
src.pip._internal.utils.subprocess.runner_with_spinner_message(message:str) -> Callable[..., None]Provide a subprocess_runner that shows a spinner message.
class
src.pip._internal.utils.temp_dir.TempDirectoryHelper class that owns and cleans up a temporary directory.
method
src.pip._internal.utils.temp_dir.TempDirectory.cleanup() -> NoneRemove the temporary directory created and reset state
func
src.pip._internal.utils.temp_dir.TempDirectory.onerror(func:Callable[..., Any], path:Path, exc_val:BaseException) -> NoneLog a warning for a `rmtree` error and continue
class
src.pip._internal.utils.temp_dir.TempDirectoryTypeRegistryManages temp directory behavior
func
src.pip._internal.utils.unpacking.unpack_file(filename:str, location:str, content_type:str | None=None) -> NoneUnpack ``filename`` into ``location``.
func
src.pip._internal.utils.unpacking.untar_file(filename:str, location:str) -> NoneUntar the file (with path `filename`) to the destination `location`.
func
src.pip._internal.utils.urls.path_to_url(path:str) -> strConvert a path to a file: URL.
func
src.pip._internal.utils.urls.url_to_path(url:str) -> strConvert a file: URL to a path.
func
src.pip._internal.utils.virtualenv.running_under_virtualenv() -> boolChecks if sys.base_prefix and sys.prefix match.
func
src.pip._internal.utils.wheel.wheel_dist_info_dir(source:ZipFile, name:str) -> strReturns the name of the contained .dist-info directory.
func
src.pip._internal.utils.wheel.wheel_metadata(source:ZipFile, dist_info_dir:str) -> MessageReturn the WHEEL metadata of an extracted wheel, if possible.
func
src.pip._internal.utils.wheel.wheel_version(wheel_data:Message) -> tuple[int, ...]Given WHEEL metadata, return the parsed Wheel-Version.
method
src.pip._internal.vcs.git.Git.get_current_branch(location:str) -> str | NoneReturn the current branch, or None if HEAD isn't at a branch (e.g.
method
src.pip._internal.vcs.git.Git.get_remote_url(location:str) -> strReturn URL of the first remote encountered.
method
src.pip._internal.vcs.git.Git.get_subdirectory(location:str) -> str | NoneReturn the path to Python project root, relative to the repo root.
method
src.pip._internal.vcs.git.Git.has_commit(location:str, rev:str) -> boolCheck if rev is a commit that is available in the local repository.
method
src.pip._internal.vcs.git.Git.is_commit_id_equal(dest:str, name:str | None) -> boolReturn whether the current commit hash equals the given name.
func
src.pip._internal.vcs.versioncontrol.is_url(name:str) -> boolReturn true if the name looks like a URL.
func
src.pip._internal.vcs.versioncontrol.make_vcs_requirement_url(repo_url:str, rev:str, project_name:str, subdir:str | None=None) -> strReturn the URL for a VCS requirement.
func
src.pip._internal.wheel_builder.build(requirements:Iterable[InstallRequirement], wheel_cache:WheelCache, verify:bool, allow_editables:bool) -> BuildResultBuild wheels.
func
src.pip.main(args:list[str] | None=None) -> intThis is an internal API only meant for use by pip's own console scripts.
About this data
These signatures were extracted from the public source of pypa/pip
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.