通过电流的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和Javascript之间共享常量   c#无法使用Gson反序列化字节[]   如果字符串是实十进制数字,则在Java中仅显示十进制数字   与Android Studio的java FireBase同步失败   web应用程序的Java Oracle数据库更改通知问题   数组中缺少整数的java嵌套循环   zos在z/os上以TOD格式(一天中的时间)转换Java时间戳   java JAXB未根据注释生成XML(JDK 1.7)   java使用Twitter4j和Geolocation查找在该地区发布推文的用户,但如何获取用户ID?   在Libgdx中实现简单运动模糊的java意外结果   java在Android数据库中插入另一个EditText值?   java标准偏差数组(我的算法错误)   java如何修复M1 Mac的Ant javascript标记?   java遍历树标记值的长度   java理解Springboot中的Cron,自动发送电子邮件   java如何将“Data.Json”文件从资产保存到内部存储器,然后将其用于读/写   java代码在编写FirstDuplicate方法时会遇到时间限制问题   java将HTML转换为PDF并将其添加到段落中   javascript css()未设置正文标记的背景属性