Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
pip._vendor.distlib.database.Distribution Class Reference
Inheritance diagram for pip._vendor.distlib.database.Distribution:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.distlib.database.Distribution:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, metadata)
 
 source_url (self)
 
 name_and_version (self)
 
 provides (self)
 
 run_requires (self)
 
 meta_requires (self)
 
 build_requires (self)
 
 test_requires (self)
 
 dev_requires (self)
 
 matches_requirement (self, req)
 
 __repr__ (self)
 
 __eq__ (self, other)
 
 __hash__ (self)
 

Public Attributes

 metadata
 
 name
 
 key
 
 version
 
 locator
 
 digest
 
 extras
 
 context
 
 download_urls
 
 digests
 
 source_url
 

Static Public Attributes

bool build_time_dependency = False
 
bool requested = False
 
 download_url = source_url
 

Protected Member Functions

 _get_requirements (self, req_attr)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

pip._vendor.distlib.database.Distribution.__init__ (   self,
  metadata 
)
Initialise an instance.
:param metadata: The instance of :class:`Metadata` describing this
distribution.

Reimplemented in pip._vendor.distlib.database.BaseInstalledDistribution, pip._vendor.distlib.database.EggInfoDistribution, and pip._vendor.distlib.database.InstalledDistribution.

Member Function Documentation

◆ __eq__()

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.

Reimplemented in pip._vendor.distlib.database.InstalledDistribution, and pip._vendor.distlib.database.EggInfoDistribution.

◆ __hash__()

pip._vendor.distlib.database.Distribution.__hash__ (   self)
Compute hash in a way which matches the equality test.

◆ __repr__()

pip._vendor.distlib.database.Distribution.__repr__ (   self)
Return a textual representation of this instance,

Reimplemented in pip._vendor.distlib.database.InstalledDistribution, and pip._vendor.distlib.database.EggInfoDistribution.

◆ matches_requirement()

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.

◆ name_and_version()

pip._vendor.distlib.database.Distribution.name_and_version (   self)
A utility property which displays the name and version in parentheses.

◆ provides()

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.

◆ source_url()

pip._vendor.distlib.database.Distribution.source_url (   self)
The source archive download URL for this distribution.

The documentation for this class was generated from the following file: