Package zeroinstall :: Package injector :: Module model :: Class Implementation
[frames] | no frames]

Class Implementation

source code

object --+
         |
        Implementation

An Implementation is a package which implements an Interface.

Instance Methods
 
__init__(self, feed, id)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
Stability
get_stability(self) source code
str
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
int
__cmp__(self, other)
Newer versions come first
source code
int
__hash__(self)
hash(x)
source code
bool
__eq__(self, other) source code
 
__le__(self, other) source code
str
get_version(self)
Return the version as a string.
source code
bool
is_available(self, stores)
Is this Implementation available locally? (a local implementation, an installed distribution package, or a cached ZeroInstallImplementation)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables
  arch = property(lambda self: _join_arch(self.os, self.machine))
  os = None
Create a new digest.
  digests = None
Create a new digest.
  main = property(_get_main, _set_main)
Instance Variables
str | None local_path = None
the directory containing this local implementation, or None if it isn't local (id isn't a path)
bool requires_root_install = False
whether the user will need admin rights to use this
[Binding] bindings
how to tell this component where it itself is located (since 0.31)
{str: Command} commands
ways to execute as a program
[RetrievalMethod] download_sources
list of methods of getting this implementation
[ZeroInstallFeed] feed
the feed owning this implementation (since 0.32)
  id
a unique identifier for this Implementation
str langs
natural languages supported by this package
{"[URI ]localName": str} metadata
extra metadata from the feed
  released
release date
[Dependency] requires
interfaces this package depends on
[insecure | buggy | developer | testing | stable | packaged] upstream_stability
the stability reported by the packager
  user_stability
the stability as set by the user
  version
a parsed version number
Properties

Inherited from object: __class__

Method Details

__init__(self, feed, id)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Returns: str
Overrides: object.__str__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__cmp__(self, other)
(Comparison operator)

source code 

Newer versions come first

Parameters:
Returns: int

__hash__(self)
(Hashing function)

source code 

hash(x)

Returns: int
Overrides: object.__hash__

__eq__(self, other)
(Equality operator)

source code 
Parameters:
Returns: bool

get_version(self)

source code 

Return the version as a string.

Returns: str

See Also: format_version

is_available(self, stores)

source code 

Is this Implementation available locally? (a local implementation, an installed distribution package, or a cached ZeroInstallImplementation)

Returns: bool

Since: 0.53