通过电流的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 ArrayList对象转换为实际值   web服务如何在JAVA类uisng JAXBElement中解组SOAP UI值   包含无值参数的java HttpClient表单URL   运行简单Camel Restlet演示项目的java问题?   带有自定义图标的java简单SWT警报消息?   java Netbeans 6.8:LibImport可以工作,但编译时“包不存在”   java如何获得绘画完成的通知?   java Hazelcast客户端模式群集故障后如何恢复?   Neo4J中Shapefile的java批插入   为什么ThreadPoolExecutor在Eclipse和从命令行运行Java程序时表现不同?   java在Android中计算两个坐标之间的距离时得到了荒谬的值   java在CardLayout中显示卡本身的下一张卡