通过电流的PIP版本8的兼容性垫片。

pip-shims的Python项目详细描述


https://img.shields.io/pypi/v/pip-shims.svghttps://img.shields.io/pypi/l/pip-shims.svghttps://travis-ci.com/sarugaku/pip-shims.svg?branch=masterhttps://img.shields.io/pypi/pyversions/pip-shims.svghttps://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svgDocumentation Status

警告

警告

pip的作者不允许使用此包。依靠皮普 对于您的软件来说,内部构件是一个危险的概念,因为它们是故意破坏的 定期的。这个包可能并不总是完全更新pypi,所以依赖 可能会破坏你的密码!用户小心!

安装

PyPI:安装

$ pipenv install --pre pip-shims

Github

安装
$ pipenv install -e git+https://github.com/sarugaku/pip-shims.git#egg=pip-shims

摘要

pip垫片是一组对pip内部api的兼容访问垫片。pip垫片 在当前版本(18.x)中提供与PIP8.0的兼容性。垫片 通过重载类实例的getattr方法来攻击模块,使用延迟导入策略提供。 由于我不断地编写同一组导入垫片,因此存在此库。 许多不同的库,包括pipenvpip-toolsrequirementslib,和 passa

用法

导入垫片

您可以使用pip垫片通过导入它们来公开pip的内部api的元素:

from pip_shims import Wheel
mywheel = Wheel('/path/to/my/wheel.whl')

可用垫片

pip垫片提供以下兼容性垫片:

Import PathImport NameFormer Path
req.constructors_strip_extrasreq.req_install
clicmdoptionscmdoptions
cli.base_commandCommandbasecommand
cli.parserConfigOptionParserbaseparser
commands.freezeDEV_PKGS
exceptionsDistributionNotFound
utils.hashesFAVORITE_HASH
modelsFormatControlindex
utils.miscget_installed_distributionsutils
utils.compatstdlib_pkgscompat
cli.cmdoptionsindex_groupcmdoptions
req.req_installInstallRequirement
req.constructorsinstall_req_from_linereq.req_install.InstallRequirement
req.constructorsinstall_req_from_editablereq.req_install.InstallRequirement
req.req_uninstallUninstallPathSet
distributionsmake_distribution_for_install_requirementoperations.prepare.make_abstract_dist
distributions.baseAbstractDistribution
distributions.sourceSourceDistribution
distributions.installedInstalledDistribution
distributions.wheelWheelDistribution
downloadis_archive_file
downloadis_file_url
utils.miscis_installable_dirutils
indexLink
operations.preparemake_abstract_distreq.req_set
cli.cmdoptionsmake_option_groupcmdoptions
indexCandidateEvaluator
indexPackageFinder
req.req_fileparse_requirements
indexparse_version
downloadpath_to_url
__version__pip_version
exceptionsPipError
exceptionsInstallationError
exceptionsUninstallationError
exceptionsDistributionNotFound
exceptionsRequirementsFileParseError
exceptionsBestVersionAlreadyInstalled
exceptionsBadCommand
exceptionsCommandError
exceptionsPreviousBuildDirError
operations.prepareRequirementPreparer
operations.freezeFrozenRequirement<__init__>
req.req_setRequirementSet
req.req_trackerRequirementTracker
resolveResolver
downloadSafeFileCache
downloadurl_to_path
downloadunpack_url
locationsUSER_CACHE_DIR
vcs.versioncontrolVcsSupportvcs.VcsSupport
wheelWheel
wheelWheelBuilder
cacheWheelCachewheel

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java GridBagLayout不填充区域   java Memozied Fibonacci未运行与常规Fibonacci解决方案   Java Web启动未启动问题   Java中异常和if-then的区别   java从命令提示符运行批处理文件获取错误   socket在Java中验证SSL证书的公共名称   如何在JAVA中检查字符串数组中的相等字   用java语言将音频文件转换成文本文件的语音识别   java为什么foo(1,2,3)没有传递给varargs方法foo(对象…)作为整数[]   java通过蓝牙将奇怪的数据从Arduino传输到Android   java ContainerRequestFilter获取空entitystream   java如何从安卓 studio中删除不兼容类型错误   基本Java错误   在Spring引导中使用REST API时发生java错误   javascript通过从SQL查询派生的URL打开页面