|
Orbits
1
|
Public Member Functions | |
| def | __init__ |
| def | source_url |
| def | name_and_version |
| def | provides |
| def | run_requires |
| def | meta_requires |
| def | build_requires |
| def | test_requires |
| def | dev_requires |
| def | matches_requirement |
| def | __repr__ |
| def | __eq__ |
| def | __hash__ |
Public Attributes | |
| metadata | |
| name | |
| key | |
| version | |
| locator | |
| digest | |
| extras | |
| context | |
| source_url | |
Static Public Attributes | |
| build_time_dependency = False | |
| requested = False | |
| download_url = source_url | |
Private Member Functions | |
| def | _get_requirements |
A base class for distributions, whether installed or from indexes. Either way, it must have some metadata, so that's all that's needed for construction.
| def pip._vendor.distlib.database.Distribution.__init__ | ( | self, | |
| metadata | |||
| ) |
Initialise an instance. :param metadata: The instance of :class:`Metadata` describing this distribution.
| def pip._vendor.distlib.database.Distribution.__eq__ | ( | self, | |
| other | |||
| ) |
See if this distribution is the same as another.
:param other: The distribution to compare with. To be equal to one
another. distributions must have the same type, name,
version and source_url.
:return: True if it is the same, else False.
| def pip._vendor.distlib.database.Distribution.__hash__ | ( | self | ) |
Compute hash in a way which matches the equality test.
| def pip._vendor.distlib.database.Distribution.__repr__ | ( | self | ) |
Return a textual representation of this instance,
|
private |
| def pip._vendor.distlib.database.Distribution.build_requires | ( | self | ) |
| def pip._vendor.distlib.database.Distribution.dev_requires | ( | self | ) |
| def pip._vendor.distlib.database.Distribution.matches_requirement | ( | self, | |
| req | |||
| ) |
Say if this instance matches (fulfills) a requirement. :param req: The requirement to match. :rtype req: str :return: True if it matches, else False.
| def pip._vendor.distlib.database.Distribution.meta_requires | ( | self | ) |
| def pip._vendor.distlib.database.Distribution.name_and_version | ( | self | ) |
A utility property which displays the name and version in parentheses.
| def pip._vendor.distlib.database.Distribution.provides | ( | self | ) |
A set of distribution names and versions provided by this distribution. :return: A set of "name (version)" strings.
| def pip._vendor.distlib.database.Distribution.run_requires | ( | self | ) |
| def pip._vendor.distlib.database.Distribution.source_url | ( | self | ) |
The source archive download URL for this distribution.
| def pip._vendor.distlib.database.Distribution.test_requires | ( | self | ) |
|
static |
| pip._vendor.distlib.database.Distribution.context |
| pip._vendor.distlib.database.Distribution.digest |
|
static |
| pip._vendor.distlib.database.Distribution.extras |
| pip._vendor.distlib.database.Distribution.key |
| pip._vendor.distlib.database.Distribution.locator |
| pip._vendor.distlib.database.Distribution.metadata |
| pip._vendor.distlib.database.Distribution.name |
|
static |
| pip._vendor.distlib.database.Distribution.source_url |
| pip._vendor.distlib.database.Distribution.version |
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.