Metadata-Version: 2.1
Name: pip-shims
Version: 0.3.3.dev0
Summary: Compatibility shims for pip versions 8 thru current.
Home-page: https://github.com/sarugaku/pip-shims
Author: Dan Ryan
Author-email: dan@danryan.co
License: ISC License
Keywords: pip,compatibility,shims,api,pip-shims,pipenv,pip-compat
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Python: >=2.6,!=3.0,!=3.1,!=3.2,!=3.3
Requires-Dist: pip
Requires-Dist: wheel
Requires-Dist: setuptools
Requires-Dist: six
Requires-Dist: importlib ; python_version < "2.7"
Provides-Extra: dev
Requires-Dist: pre-commit ; extra == 'dev'
Requires-Dist: isort ; extra == 'dev'
Requires-Dist: flake8 ; extra == 'dev'
Requires-Dist: rope ; extra == 'dev'
Requires-Dist: invoke ; extra == 'dev'
Requires-Dist: parver ; extra == 'dev'
Requires-Dist: towncrier ; extra == 'dev'
Requires-Dist: wheel ; extra == 'dev'
Requires-Dist: mypy ; (python_version >= "3.5") and extra == 'dev'
Requires-Dist: flake8-bugbear ; (python_version >= "3.5") and extra == 'dev'
Requires-Dist: black ; (python_version >= "3.6") and extra == 'dev'
Provides-Extra: tests
Requires-Dist: pytest-timeout ; extra == 'tests'
Requires-Dist: pytest (<4.0,>=3.6.0) ; extra == 'tests'
Requires-Dist: pytest-xdist (<1.28) ; extra == 'tests'
Requires-Dist: pytest-cov ; extra == 'tests'
Requires-Dist: twine ; extra == 'tests'
Requires-Dist: readme-renderer[md] ; extra == 'tests'

===============================================================================
pip-shims: Shims for importing packages from pip's internals.
===============================================================================

.. image:: https://img.shields.io/pypi/v/pip-shims.svg
    :target: https://pypi.python.org/pypi/pip-shims

.. image:: https://img.shields.io/pypi/l/pip-shims.svg
    :target: https://pypi.python.org/pypi/pip-shims

.. image:: https://travis-ci.com/sarugaku/pip-shims.svg?branch=master
    :target: https://travis-ci.com/sarugaku/pip-shims

.. image:: https://img.shields.io/pypi/pyversions/pip-shims.svg
    :target: https://pypi.python.org/pypi/pip-shims

.. image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg
    :target: https://saythanks.io/to/techalchemy

.. image:: https://readthedocs.org/projects/pip-shims/badge/?version=latest
    :target: https://pip-shims.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status


Warning
********

.. warning::
   The authors of `pip`_ **do not condone** the use of this package. Relying on pip's
   internals is a **dangerous** idea for your software as they are broken intentionally
   and regularly.  This package may not always be completely updated up PyPI, so relying
   on it may break your code! User beware!

.. _pip: https://github.com/pypa/pip


Installation
*************

Install from `PyPI`_:

  ::

    $ pipenv install --pre pip-shims

Install from `Github`_:

  ::

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


.. _PyPI: https://www.pypi.org/project/pip-shims
.. _Github: https://github.com/sarugaku/pip-shims


.. _`Summary`:

Summary
********

**pip-shims** is a set of compatibilty access shims to the `pip`_ internal API. **pip-shims**
provides compatibility with pip versions 8.0 through the current release (18.x).  The shims
are provided using a lazy import strategy by hacking a module by overloading a class instance's *getattr* method.
This library exists due to my constant writing of the same set of import shims across
many different libraries, including `pipenv`_, `pip-tools`_, `requirementslib`_, and
`passa`_.

.. _passa: https://github.com/sarugaku/passa
.. _pip: https://github.com/pypa/pip
.. _pipenv: https://github.com/pypa/pipenv
.. _pip-tools: https://github.com/jazzband/pip-tools
.. _requirementslib: https://github.com/sarugaku/requirementslib


.. _`Usage`:

Usage
******

Importing a shim
/////////////////

You can use **pip-shims** to expose elements of **pip**'s internal API by importing them:

  ::

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


Available Shims
****************

**pip-shims** provides the following compatibility shims:

================== =========================== ===================================
Import Path        Import Name                 Former Path
================== =========================== ===================================
req.constructors   _strip_extras               req.req_install
cli                cmdoptions                  cmdoptions
cli.base_command   Command                     basecommand
cli.parser         ConfigOptionParser          baseparser
commands.freeze    DEV_PKGS
exceptions         DistributionNotFound
utils.hashes       FAVORITE_HASH
models             FormatControl               index
utils.misc         get_installed_distributions utils
utils.compat       stdlib_pkgs                 compat
cli.cmdoptions     index_group                 cmdoptions
req.req_install    InstallRequirement
req.constructors   install_req_from_line       req.req_install.InstallRequirement
req.constructors   install_req_from_editable   req.req_install.InstallRequirement
req.req_uninstall  UninstallPathSet
download           is_archive_file
download           is_file_url
utils.misc         is_installable_dir          utils
index              Link
operations.prepare make_abstract_dist          req.req_set
cli.cmdoptions     make_option_group           cmdoptions
index              PackageFinder
req.req_file       parse_requirements
index              parse_version
download           path_to_url
__version__        pip_version
exceptions         PipError
exceptions         InstallationError
exceptions         UninstallationError
exceptions         DistributionNotFound
exceptions         RequirementsFileParseError
exceptions         BestVersionAlreadyInstalled
exceptions         BadCommand
exceptions         CommandError
exceptions         PreviousBuildDirError
operations.prepare RequirementPreparer
operations.freeze  FrozenRequirement           <`__init__`>
req.req_set        RequirementSet
req.req_tracker    RequirementTracker
resolve            Resolver
download           SafeFileCache
download           url_to_path
download           unpack_url
locations          USER_CACHE_DIR
vcs                VcsSupport
wheel              Wheel
wheel              WheelBuilder
cache              WheelCache                  wheel
================== =========================== ===================================


