pipenv の API リファレンス
pipenv (pypa/pipenv) の公開 API 265 件 —— クラス 79、関数 110、メソッド 76。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: pypa/pipenv
| 種別 | 件数 |
|---|---|
| クラス | 79 |
| 関数 | 110 |
| メソッド | 76 |
API 一覧
func
pipenv.cli.command.cli()Main argparse-based entry point for pipenv.
class
pipenv.cmdparse.ScriptParse a script line (in Pipfile's [scripts] section).
method
pipenv.cmdparse.Script.cmdify()Encode into a cmd-executable string.
method
pipenv.cmdparse.Script.extend(extra_args)Append *extra_args* to the script.
method
pipenv.environment.Environment.find_egg(egg_dist:importlib_metadata.Distribution) -> strFind an egg by name in the given environment
method
pipenv.environment.Environment.python() -> strPath to the environment python
method
pipenv.environment.Environment.script_basedir() -> strPath to the environment scripts dir
class
pipenv.environments.SettingControl various settings of pipenv via environment variables.
func
pipenv.exceptions.unstyle(text:str) -> strRemove all styles from the given text.
method
pipenv.installers.Version.cmpkey()Make the version a comparable tuple.
class
pipenv.patched.pip._internal.build_env.NoOpBuildEnvironmentA no-op drop-in replacement for BuildEnvironment
method
pipenv.patched.pip._internal.cache.Cache.get(link:Link, package_name:str | None, supported_tags:list[Tag]) -> LinkReturns a link to a cached item if it exists, otherwise returns the passed link.
method
pipenv.patched.pip._internal.cache.Cache.get_path_for_link(link:Link) -> strReturn a directory to store cached items in for link.
class
pipenv.patched.pip._internal.cache.SimpleWheelCacheA cache of wheels for future installs.
func
pipenv.patched.pip._internal.cli.cmdoptions.check_build_constraints(options:Values) -> NoneFunction for validating build constraints options.
func
pipenv.patched.pip._internal.cli.cmdoptions.raise_option_error(parser:OptionParser, option:Option, msg:str) -> NoneRaise an option parsing error using parser.error().
method
pipenv.patched.pip._internal.cli.index_command.SessionCommandMixin.get_default_session(options:Values) -> PipSessionGet a default-managed session.
class
pipenv.patched.pip._internal.cli.parser.PrettyHelpFormatterA prettier/less verbose help formatter for optparse.
method
pipenv.patched.pip._internal.cli.parser.PrettyHelpFormatter.format_option(option:optparse.Option) -> strOverridden method with Rich support.
class
pipenv.patched.pip._internal.cli.parser.UpdatingDefaultsHelpFormatterCustom help formatter for use in ConfigOptionParser.
class
pipenv.patched.pip._internal.commands.cache.CacheCommandInspect and manage pip's wheel cache.
class
pipenv.patched.pip._internal.commands.check.CheckCommandVerify installed packages have compatible dependencies.
class
pipenv.patched.pip._internal.commands.completion.CompletionCommandA helper command to be used for command completion.
method
pipenv.patched.pip._internal.commands.completion.CompletionCommand.run(options:Values, args:list[str]) -> intPrints the completion code of the given shell
class
pipenv.patched.pip._internal.commands.configuration.ConfigurationCommandManage local and global configuration.
method
pipenv.patched.pip._internal.commands.configuration.ConfigurationCommand.print_config_file_values(variant:Kind, fname:str) -> NoneGet key-value pairs from the file of a variant
func
pipenv.patched.pip._internal.commands.create_command(name:str, **kwargs:Any) -> CommandCreate an instance of the Command class with the given name.
class
pipenv.patched.pip._internal.commands.debug.DebugCommandDisplay debug information.
class
pipenv.patched.pip._internal.commands.freeze.FreezeCommandOutput installed packages in requirements format.
func
pipenv.patched.pip._internal.commands.get_similar_commands(name:str) -> str | NoneCommand name auto-correct.
class
pipenv.patched.pip._internal.commands.hash.HashCommandCompute a hash of a local package archive.
class
pipenv.patched.pip._internal.commands.help.HelpCommandShow help for commands
class
pipenv.patched.pip._internal.commands.index.IndexCommandInspect information available from package indexes.
class
pipenv.patched.pip._internal.commands.list.ListCommandList installed packages, including editables.
func
pipenv.patched.pip._internal.commands.search.transform_hits(hits:list[dict[str, str]]) -> list[TransformedHit]The list from pypi is really a list of versions.
class
pipenv.patched.pip._internal.commands.show.ShowCommandShow information about one or more installed packages.
func
pipenv.patched.pip._internal.commands.show.search_packages_info(query:list[str]) -> Generator[_PackageInfo, None, None]Gather details from installed distributions.
class
pipenv.patched.pip._internal.commands.uninstall.UninstallCommandUninstall packages.
class
pipenv.patched.pip._internal.configuration.ConfigurationHandles management of configuration.
method
pipenv.patched.pip._internal.configuration.Configuration.get_value(key:str) -> AnyGet a value from the configuration.
method
pipenv.patched.pip._internal.configuration.Configuration.get_values_in_config(variant:Kind) -> dict[str, Any]Get values present in a config file
method
pipenv.patched.pip._internal.configuration.Configuration.save() -> NoneSave the current in-memory state.
method
pipenv.patched.pip._internal.configuration.Configuration.set_value(key:str, value:Any) -> NoneModify a value in the configuration.
method
pipenv.patched.pip._internal.configuration.Configuration.unset_value(key:str) -> NoneUnset a value in the configuration.
class
pipenv.patched.pip._internal.distributions.base.AbstractDistributionA base class for handling installable artifacts.
class
pipenv.patched.pip._internal.distributions.installed.InstalledDistributionRepresents an installed package.
class
pipenv.patched.pip._internal.distributions.sdist.SourceDistributionRepresents a source distribution.
class
pipenv.patched.pip._internal.distributions.wheel.WheelDistributionRepresents a wheel distribution.
class
pipenv.patched.pip._internal.exceptions.BadCommandRaised when virtualenv or a command is not found
class
pipenv.patched.pip._internal.exceptions.BuildDependencyInstallErrorRaised when build dependencies cannot be installed.
class
pipenv.patched.pip._internal.exceptions.CommandErrorRaised when there is an error in command-line arguments
class
pipenv.patched.pip._internal.exceptions.ConfigurationErrorGeneral exception in configuration
class
pipenv.patched.pip._internal.exceptions.ExternallyManagedEnvironmentThe current environment is externally managed.
class
pipenv.patched.pip._internal.exceptions.FailedToPrepareCandidateRaised when we fail to prepare a candidate (i.e.
class
pipenv.patched.pip._internal.exceptions.HashMismatchDistribution file hash values don't match.
class
pipenv.patched.pip._internal.exceptions.HashMissingA hash was needed for a requirement but is absent.
class
pipenv.patched.pip._internal.exceptions.InstallationErrorGeneral exception during installation
class
pipenv.patched.pip._internal.exceptions.InstallationSubprocessErrorA subprocess call failed.
class
pipenv.patched.pip._internal.exceptions.InvalidWheelInvalid (e.g.
class
pipenv.patched.pip._internal.exceptions.InvalidWheelFilenameInvalid wheel filename.
class
pipenv.patched.pip._internal.exceptions.MetadataInconsistentBuilt metadata contains inconsistent information.
class
pipenv.patched.pip._internal.exceptions.MetadataInvalidMetadata is invalid.
class
pipenv.patched.pip._internal.exceptions.NetworkConnectionErrorHTTP connection error
class
pipenv.patched.pip._internal.exceptions.PipErrorThe base pip error.
class
pipenv.patched.pip._internal.exceptions.UnsupportedWheelUnsupported wheel.
class
pipenv.patched.pip._internal.index.collector.IndexContentRepresents one response (or page), along with its URL.
class
pipenv.patched.pip._internal.index.package_finder.PackageFinderThis finds packages.
func
pipenv.patched.pip._internal.locations.base.change_root(new_root:str, pathname:str) -> strReturn 'pathname' with 'new_root' prepended.
func
pipenv.patched.pip._internal.locations.get_platlib() -> strReturn the default platform-shared lib location.
func
pipenv.patched.pip._internal.locations.get_purelib() -> strReturn the default pure-Python lib location.
func
pipenv.patched.pip._internal.metadata._json.msg_to_json(msg:Message) -> dict[str, Any]Convert a Message object into a JSON-compatible dictionary.
method
pipenv.patched.pip._internal.metadata.base.BaseDistribution.direct_url() -> DirectUrl | NoneObtain a DirectUrl from this distribution.
method
pipenv.patched.pip._internal.metadata.base.BaseDistribution.from_directory(directory:str) -> BaseDistributionLoad the distribution from a metadata directory.
method
pipenv.patched.pip._internal.metadata.base.BaseDistribution.from_wheel(wheel:Wheel, name:str) -> BaseDistributionLoad the distribution from a given wheel.
method
pipenv.patched.pip._internal.metadata.base.BaseDistribution.installed_location() -> str | NoneThe distribution's "installed" location.
method
pipenv.patched.pip._internal.metadata.base.BaseDistribution.is_file(path:InfoPath) -> boolCheck whether an entry in the info directory is a file.
method
pipenv.patched.pip._internal.metadata.base.BaseDistribution.iter_dependencies(extras:Collection[str]=()) -> Iterable[Requirement]Dependencies of this distribution.
method
pipenv.patched.pip._internal.metadata.base.BaseDistribution.iter_provided_extras() -> Iterable[NormalizedName]Extras provided by this distribution.
method
pipenv.patched.pip._internal.metadata.base.BaseDistribution.iter_raw_dependencies() -> Iterable[str]Raw Requires-Dist metadata.
method
pipenv.patched.pip._internal.metadata.base.BaseDistribution.location() -> str | NoneWhere the distribution is loaded from.
method
pipenv.patched.pip._internal.metadata.base.BaseDistribution.metadata() -> email.message.MessageMetadata of distribution parsed from e.g.
method
pipenv.patched.pip._internal.metadata.base.BaseDistribution.raw_name() -> strValue of "Name:" in distribution metadata.
method
pipenv.patched.pip._internal.metadata.base.BaseDistribution.read_text(path:InfoPath) -> strRead a file in the info directory.
class
pipenv.patched.pip._internal.metadata.base.BaseEnvironmentAn environment containing distributions to introspect.
class
pipenv.patched.pip._internal.metadata.importlib._compat.BasePathA protocol that various path objects conform.
func
pipenv.patched.pip._internal.metadata.importlib._compat.get_dist_canonical_name(dist:importlib.metadata.Distribution) -> NormalizedNameGet the distribution's normalized name.
class
pipenv.patched.pip._internal.models.candidate.InstallationCandidateRepresents a potential "candidate" for installation.
class
pipenv.patched.pip._internal.models.link.LinkRepresents a parsed link from a Package Index's simple URL
method
pipenv.patched.pip._internal.models.link.Link.netloc() -> strThis can contain auth information.
class
pipenv.patched.pip._internal.models.link.LinkHashLinks to content may have embedded hash values.
method
pipenv.patched.pip._internal.models.link.LinkHash.is_hash_allowed(hashes:Hashes | None) -> boolReturn True if the current hash is allowed by `hashes`.
class
pipenv.patched.pip._internal.models.wheel.WheelA wheel file
class
pipenv.patched.pip._internal.network.auth.KeyRingBaseProviderKeyring base provider interface
class
pipenv.patched.pip._internal.network.auth.KeyRingNullProviderKeyring null provider
class
pipenv.patched.pip._internal.network.lazy_wheel.LazyZipOverHTTPFile-like object mapped to a ZIP file over HTTP.
method
pipenv.patched.pip._internal.network.lazy_wheel.LazyZipOverHTTP.close() -> NoneClose the file.
method
pipenv.patched.pip._internal.network.lazy_wheel.LazyZipOverHTTP.closed() -> boolWhether the file is closed.
method
pipenv.patched.pip._internal.network.lazy_wheel.LazyZipOverHTTP.mode() -> strOpening mode, which is always rb.
method
pipenv.patched.pip._internal.network.lazy_wheel.LazyZipOverHTTP.name() -> strPath to the underlying file.
method
pipenv.patched.pip._internal.network.lazy_wheel.LazyZipOverHTTP.read(size:int=-1) -> bytesRead up to size bytes from the object and return them.
method
pipenv.patched.pip._internal.network.lazy_wheel.LazyZipOverHTTP.tell() -> intReturn the current position.
method
pipenv.patched.pip._internal.network.lazy_wheel.LazyZipOverHTTP.truncate(size:int | None=None) -> intResize the stream to the given size in bytes.
method
pipenv.patched.pip._internal.network.lazy_wheel.LazyZipOverHTTP.writable() -> boolReturn False.
func
pipenv.patched.pip._internal.network.session.looks_like_ci() -> boolReturn whether it looks like pip is running under CI.
func
pipenv.patched.pip._internal.network.session.user_agent() -> strReturn a string representing the user agent.
func
pipenv.patched.pip._internal.operations.install.wheel.pyc_output_path(path:str) -> strReturn the path the pyc file would have been written to.
class
pipenv.patched.pip._internal.operations.prepare.RequirementPreparerPrepares a Requirement
method
pipenv.patched.pip._internal.operations.prepare.RequirementPreparer.prepare_editable_requirement(req:InstallRequirement) -> BaseDistributionPrepare an editable requirement.
func
pipenv.patched.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
pipenv.patched.pip._internal.pyproject.load_pyproject_toml(pyproject_toml:str, setup_py:str, req_name:str) -> BuildSystemDetailsLoad the pyproject.toml file.
func
pipenv.patched.pip._internal.req.constructors.check_first_requirement_in_file(filename:str) -> NoneCheck if file is parsable as a requirements file.
func
pipenv.patched.pip._internal.req.req_file.break_args_options(line:str) -> tuple[str, str]Break up the line into an args and options string.
func
pipenv.patched.pip._internal.req.req_file.build_parser() -> optparse.OptionParserReturn a parser for parsing requirement lines
func
pipenv.patched.pip._internal.req.req_file.ignore_comments(lines_enum:ReqFileLines) -> ReqFileLinesStrips comments and filter empty lines.
method
pipenv.patched.pip._internal.resolution.legacy.resolver.Resolver.get_installation_order(req_set:RequirementSet) -> list[InstallRequirement]Create the installation order.
method
pipenv.patched.pip._internal.resolution.resolvelib.base.Candidate.project_name() -> NormalizedNameThe "project name" of the candidate.
method
pipenv.patched.pip._internal.resolution.resolvelib.base.Requirement.project_name() -> NormalizedNameThe "project name" of a requirement.
func
pipenv.patched.pip._internal.resolution.resolvelib.candidates.as_base_candidate(candidate:Candidate) -> BaseCandidate | NoneThe runtime version of BaseCandidate.
method
pipenv.patched.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
pipenv.patched.pip._internal.resolution.resolvelib.provider.PipProviderPip's provider implementation for resolvelib.
class
pipenv.patched.pip._internal.resolution.resolvelib.requirements.UnsatisfiableRequirementA requirement that cannot be satisfied.
func
pipenv.patched.pip._internal.utils._jaraco_text.drop_comment(line)Drop comments.
func
pipenv.patched.pip._internal.utils._log.getLogger(name:str) -> VerboseLoggerlogging.getLogger, but ensures our VerboseLogger class is returned
func
pipenv.patched.pip._internal.utils._log.init_logging() -> NoneRegister our VerboseLogger and VERBOSE log level.
func
pipenv.patched.pip._internal.utils.compat.get_path_uid(path:str) -> intReturn path's uid.
func
pipenv.patched.pip._internal.utils.datetime.parse_iso_datetime(isodate:str) -> datetime.datetimeConvert an ISO format string to a datetime.
func
pipenv.patched.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
pipenv.patched.pip._internal.utils.filetypes.is_archive_file(name:str) -> boolReturn True if `name` is a considered as an archive file.
func
pipenv.patched.pip._internal.utils.logging.capture_logging() -> Generator[StringIO, None, None]Capture all pip logs in a buffer temporarily.
func
pipenv.patched.pip._internal.utils.misc.ask(message:str, options:Iterable[str]) -> strAsk the message interactively, with the given possible responses
func
pipenv.patched.pip._internal.utils.misc.ask_input(message:str) -> strAsk for input interactively.
func
pipenv.patched.pip._internal.utils.misc.ask_password(message:str) -> strAsk for a password interactively.
func
pipenv.patched.pip._internal.utils.misc.build_netloc(host:str, port:int | None) -> strBuild a netloc from a host-port pair
func
pipenv.patched.pip._internal.utils.misc.build_url_from_netloc(netloc:str, scheme:str='https') -> strBuild a full URL from a netloc.
func
pipenv.patched.pip._internal.utils.misc.ensure_dir(path:str) -> Noneos.path.makedirs without EEXIST.
func
pipenv.patched.pip._internal.utils.misc.hash_file(path:str, blocksize:int=1 << 20) -> tuple[Any, int]Return (hash, length) for path using hashlib.sha256()
func
pipenv.patched.pip._internal.utils.misc.is_console_interactive() -> boolIs this console interactive?
func
pipenv.patched.pip._internal.utils.misc.is_installable_dir(path:str) -> boolIs path is a directory containing pyproject.toml or setup.py?
func
pipenv.patched.pip._internal.utils.misc.pairwise(iterable:Iterable[Any]) -> Iterator[tuple[Any, Any]]Return paired elements.
func
pipenv.patched.pip._internal.utils.misc.parse_netloc(netloc:str) -> tuple[str | None, int | None]Return the host-port pair from a netloc.
func
pipenv.patched.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
pipenv.patched.pip._internal.utils.misc.redact_auth_from_requirement(req:Requirement) -> strReplace the password in a given requirement url with ****.
func
pipenv.patched.pip._internal.utils.misc.redact_auth_from_url(url:str) -> strReplace the password in a given url with ****.
func
pipenv.patched.pip._internal.utils.misc.redact_netloc(netloc:str) -> strReplace the sensitive data in a netloc with "****", if it exists.
func
pipenv.patched.pip._internal.utils.misc.remove_auth_from_url(url:str) -> strReturn a copy of url with 'username:password@' removed.
func
pipenv.patched.pip._internal.utils.misc.renames(old:str, new:str) -> NoneLike os.renames(), but handles renaming across devices.
func
pipenv.patched.pip._internal.utils.misc.split_auth_from_netloc(netloc:str) -> NetlocTupleParse out and remove the auth information from a netloc.
func
pipenv.patched.pip._internal.utils.misc.splitext(path:str) -> tuple[str, str]Like os.path.splitext, but take off .tar too
func
pipenv.patched.pip._internal.utils.misc.strtobool(val:str) -> intConvert a string representation of truth to true (1) or false (0).
func
pipenv.patched.pip._internal.utils.misc.warn_if_run_as_root() -> NoneOutput a warning for sudo users on Unix.
func
pipenv.patched.pip._internal.utils.packaging.get_requirement(req_string:str) -> RequirementConstruct a packaging.Requirement object with caching
func
pipenv.patched.pip._internal.utils.subprocess.format_command_args(args:list[str] | CommandArgs) -> strFormat command arguments for display.
func
pipenv.patched.pip._internal.utils.subprocess.make_command(*args:str | HiddenText | CommandArgs) -> CommandArgsCreate a CommandArgs object.
func
pipenv.patched.pip._internal.utils.subprocess.reveal_command_args(args:list[str] | CommandArgs) -> list[str]Return the arguments in their raw, unredacted form.
func
pipenv.patched.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
pipenv.patched.pip._internal.utils.temp_dir.TempDirectoryTypeRegistryManages temp directory behavior
func
pipenv.patched.pip._internal.utils.unpacking.unpack_file(filename:str, location:str, content_type:str | None=None) -> NoneUnpack ``filename`` into ``location``.
func
pipenv.patched.pip._internal.utils.urls.path_to_url(path:str) -> strConvert a path to a file: URL.
func
pipenv.patched.pip._internal.utils.urls.url_to_path(url:str) -> strConvert a file: URL to a path.
func
pipenv.patched.pip._internal.utils.wheel.wheel_dist_info_dir(source:ZipFile, name:str) -> strReturns the name of the contained .dist-info directory.
func
pipenv.patched.pip._internal.utils.wheel.wheel_version(wheel_data:Message) -> tuple[int, ...]Given WHEEL metadata, return the parsed Wheel-Version.
method
pipenv.patched.pip._internal.vcs.git.Git.get_remote_url(location:str) -> strReturn URL of the first remote encountered.
func
pipenv.patched.pip._internal.vcs.versioncontrol.is_url(name:str) -> boolReturn true if the name looks like a URL.
func
pipenv.patched.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
pipenv.patched.pip._internal.wheel_builder.build(requirements:Iterable[InstallRequirement], wheel_cache:WheelCache, verify:bool) -> BuildResultBuild wheels.
func
pipenv.patched.pip.main(args:list[str] | None=None) -> intThis is an internal API only meant for use by pip's own console scripts.
class
pipenv.project.Projectdocstring for Project
method
pipenv.project.Project.all_packages()Returns a list of all packages.
method
pipenv.project.Project.dev_packages()Returns a list of dev-packages.
method
pipenv.project.Project.packages()Returns a list of packages.
method
pipenv.project.Project.parsed_pipfile() -> tomlkit.toml_document.TOMLDocument | TPipfileParse Pipfile into a TOMLFile
method
pipenv.project.Project.path_to(p:str) -> PathReturns the absolute path to a given relative path.
method
pipenv.project.Project.pylock_output_path() -> strReturns the path where pylock.toml should be written.
method
pipenv.project.Project.register_proper_name(name:str) -> NoneRegisters a proper name to the database.
method
pipenv.project.Project.settings() -> SettingsThe ``Settings`` subsystem (Initiative D, T_D.3).
method
pipenv.project.Project.sources() -> SourcesThe ``Sources`` subsystem (Initiative D, T_D.2).
method
pipenv.project.Project.venv_locator() -> VenvLocatorThe ``VenvLocator`` subsystem (Initiative D, T_D.4).
method
pipenv.project.Project.write_lockfile(content)Write out the lockfile.
method
pipenv.project.Project.write_toml(data, path=None)Writes the given data structure out as TOML.
func
pipenv.resolver.main.main(argv=None) -> intConsole-script entry point.
class
pipenv.resolver.schema.ConflictRecordOne row of pip's 'The conflict is caused by' table.
class
pipenv.resolver.schema.DiagnosticsSide-channel info: warnings, timing, source-substitution log.
class
pipenv.resolver.schema.LockedRequirementThe canonical lockfile-entry shape (design §3.3).
method
pipenv.resolver.schema.LockedRequirement.from_lockfile_dict(data:Mapping[str, Any]) -> LockedRequirementInverse of :meth:`to_lockfile_dict`.
method
pipenv.resolver.schema.LockedRequirement.to_json_dict() -> dictReturn a deterministic JSON-ready dict.
class
pipenv.resolver.schema.PackageSpecsTyped replacement for the legacy constraints-tempfile format.
class
pipenv.resolver.schema.RequestMetadataCaller-side context for the resolver request.
class
pipenv.resolver.schema.ResolutionErrorThe dependency set has no satisfying solution.
class
pipenv.resolver.schema.ResolverOptionsBoolean / verbosity options that today are argv flags.
class
pipenv.resolver.schema.ResolverRequestThe single input to a pipenv-resolver subprocess invocation.
class
pipenv.resolver.schema.ResolverSuccessResolution completed; lockfile entries follow.
class
pipenv.resolver.schema.SourceOne Pipfile ``[[source]]`` block, post-mirror-substitution.
class
pipenv.resolver.schema.VCSPinVCS pin: backend + URL + ref + optional subdirectory.
func
pipenv.routines.audit.install_pip_audit(project, system=False)Install pip-audit.
func
pipenv.routines.clean.ensure_lockfile(project, pypi_mirror=None)Ensures that a lockfile exists.
class
pipenv.routines.context.ExecutionOptionsHow to run a routine: passthrough flags, output, paths.
class
pipenv.routines.context.InstallPolicyFlags governing install / lock behaviour.
class
pipenv.routines.context.PackageSelectionWhich packages a routine should act on.
class
pipenv.routines.context.RoutineContextTop-level routine context.
class
pipenv.routines.context.TargetEnvWhich Python and where to install.
func
pipenv.routines.install.do_install(project, ctx:RoutineContext) -> NoneInstall user-requested packages and/or apply the Pipfile.
func
pipenv.routines.install.do_install_dependencies(project, ctx:RoutineContext, requirements_dir)Executes the installation functionality.
func
pipenv.routines.install.handle_lockfile(project, ctx:RoutineContext)Handle the lockfile, updating if necessary.
func
pipenv.routines.install.handle_missing_lockfile(project, ctx:RoutineContext)Handle a missing lockfile by creating one.
func
pipenv.routines.install.handle_outdated_lockfile(project, ctx:RoutineContext, *old_hash, *new_hash)Handle an outdated lockfile.
func
pipenv.routines.lock.do_lock(project, ctx:RoutineContext)Executes the freeze functionality.
func
pipenv.routines.scan.run_safety_scan(cmd, quiet)Run safety scan with the given command.
func
pipenv.routines.uninstall.do_uninstall(project:Project, ctx:RoutineContext)Uninstall packages from the project.
func
pipenv.routines.update.do_update(project, ctx:RoutineContext)Update the virtualenv.
func
pipenv.routines.update.get_reverse_dependencies(project) -> Dict[str, Set[Tuple[str, str]]]Get reverse dependencies using pipdeptree.
func
pipenv.utils.dependencies.as_pipfile(dep:InstallRequirement) -> Dict[str, Any]Create a pipfile entry for the given InstallRequirement.
func
pipenv.utils.dependencies.expand_env_variables(line) -> AnyStrExpand the env vars in a line following pip's standard.
func
pipenv.utils.dependencies.handle_non_vcs_requirement(name:str, _pipfile:Dict[str, Any], extras_str:str) -> strHelper function to handle non-VCS requirements.
func
pipenv.utils.dependencies.parse_metadata_file(content:str)Parse a METADATA file to get the package name.
func
pipenv.utils.dependencies.parse_pkginfo_file(content:str)Parse a PKG-INFO file to get the package name.
func
pipenv.utils.dependencies.pep440_version(version)Normalize version to PEP 440 standards
func
pipenv.utils.display.format_help(help)Formats the help string.
func
pipenv.utils.environment.load_dot_env(project, as_dict=False, quiet=False)Loads .env file into sys.environ.
func
pipenv.utils.fileutils.create_tracked_tempdir(*args:Any, **kwargs:Any) -> PathCreate a tracked temporary directory.
func
pipenv.utils.fileutils.is_file_url(url:Any) -> boolReturns true if the given url is a file url.
func
pipenv.utils.fileutils.normalize_path(path:str) -> strReturn a case-normalized absolute variable-expanded path.
func
pipenv.utils.fileutils.open_file(link, session:Optional[PipSession]=None, stream:bool=False)Open local or remote file for reading.
func
pipenv.utils.fileutils.url_to_path(url:str) -> PathConvert a valid file url to a local filesystem path.
func
pipenv.utils.funktools.chunked(n:int, iterable:Iterable) -> IterableSplit an iterable into lists of length *n*.
func
pipenv.utils.funktools.handle_remove_readonly(func, path, exc)Error handler for shutil.rmtree.
func
pipenv.utils.funktools.is_readonly_path(fn:os.PathLike) -> boolCheck if a provided path exists and is readonly.
func
pipenv.utils.funktools.set_write_bit(fn:str) -> NoneSet read-write permissions for the current user on the target path.
func
pipenv.utils.funktools.take(n:int, iterable:Iterable) -> IterableTake n elements from the supplied iterable without consuming it.
func
pipenv.utils.funktools.unnest(elem:Iterable) -> AnyFlatten an arbitrarily nested iterable.
func
pipenv.utils.internet.get_requests_session(max_retries=1, verify_ssl=True, cache_dir=USER_CACHE_DIR, source=None)Load requests lazily.
func
pipenv.utils.internet.is_valid_url(url)Checks if a given string is an url
func
pipenv.utils.locking.atomic_open_for_write(target, binary=False, newline=None, encoding=None) -> NoneAtomically open `target` for writing.
class
pipenv.utils.pylock.PylockErrorBase exception for pylock.toml related errors.
class
pipenv.utils.pylock.PylockFileRepresents a pylock.toml file as specified in PEP 751.
method
pipenv.utils.pylock.PylockFile.created_by() -> strGet the created-by value.
method
pipenv.utils.pylock.PylockFile.default_groups() -> List[str]Get the default-groups list.
method
pipenv.utils.pylock.PylockFile.dependency_groups() -> List[str]Get the dependency-groups list.
method
pipenv.utils.pylock.PylockFile.environments() -> List[str]Get the environments list.
method
pipenv.utils.pylock.PylockFile.extras() -> List[str]Get the extras list.
method
pipenv.utils.pylock.PylockFile.from_lockfile(lockfile_path:Union[str, Path], pylock_path:Union[str, Path]=None, dev_groups:Optional[List[str]]=None) -> 'PylockFile'Create a PylockFile from a Pipfile.lock file.
method
pipenv.utils.pylock.PylockFile.from_path(path:Union[str, Path]) -> 'PylockFile'Load a pylock.toml file from the given path.
method
pipenv.utils.pylock.PylockFile.lock_version() -> strGet the lock-version.
method
pipenv.utils.pylock.PylockFile.packages() -> List[Dict[str, Any]]Get the packages list.
method
pipenv.utils.pylock.PylockFile.requires_python() -> Optional[str]Get the requires-python value.
method
pipenv.utils.pylock.PylockFile.tool() -> Dict[str, Any]Get the tool table.
method
pipenv.utils.pylock.PylockFile.write() -> NoneWrite the pylock.toml file to disk.
class
pipenv.utils.pylock.PylockFormatErrorRaised when the pylock.toml file format is invalid.
class
pipenv.utils.pylock.PylockVersionErrorRaised when the lock-version is not supported.
func
pipenv.utils.pylock.find_pylock_file(directory:Union[str, Path]=None) -> Optional[Path]Find a pylock.toml file in the given directory.
func
pipenv.utils.requirements.redact_auth_from_url(url:str) -> strReplace the password in a given url with ****.
func
pipenv.utils.requirementslib.get_http_url(link:Link, download:Downloader, download_dir:Optional[str]=None, hashes:Optional[Hashes]=None) -> FileDownload a file from an HTTP URL.
method
pipenv.utils.resolver.Resolver.constraints()Get all applicable constraints.
func
pipenv.utils.resolver.read_stdout()Read all stdout data in chunks.
class
pipenv.utils.settings.Settings``[pipenv]`` configuration subsystem of :class:`Project`.
method
pipenv.utils.settings.Settings.update(d:dict[str, Any]) -> NonePersist new keys from ``d`` into the ``[pipenv]`` table.
method
pipenv.utils.settings.Settings.use_pylock() -> boolReturns True if pylock.toml should be generated.
func
pipenv.utils.shell.handle_remove_readonly(func, path, exc)Error handler for shutil.rmtree.
func
pipenv.utils.shell.system_which(command, path=None)Emulates the system's which.
class
pipenv.utils.sources.SourceNotFoundRaised by :meth:`Sources.get_source` when no source matches.
class
pipenv.utils.sources.SourcesIndexes / [[source]] subsystem of :class:`Project`.
method
pipenv.utils.sources.Sources.all()The active source list.
method
pipenv.utils.sources.Sources.find_source(source)Given a source, find it.
func
pipenv.utils.toml.convert_toml_outline_tables(parsed:TOMLDocument, project) -> TOMLDocumentConverts all outline tables to inline tables.
func
pipenv.utils.virtualenv.do_create_virtualenv(project, python=None, site_packages=None, pypi_mirror=None)Creates a virtualenv.
func
pipenv.utils.virtualenv.do_where(project, virtualenv=False, bare=True)Executes the where functionality.
この情報について
掲載しているシグネチャは pypa/pipenv の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。