Descriptors

Descriptor

class DescriptorRegistry(config, interface=<class 'zoo.core.plugin.plugin.Plugin'>, variableName=None)

Bases: zoo.core.plugin.pluginmanager.PluginManager

generateCache()
descriptorForPackages(*packageNames)
descriptorFromDict(info)
descriptorFromPath(location, descriptorInfo)

Returns the matching Descriptor object for the given path.

Parameters
  • location (str) – The location of the package, can be any of the paths supported by our descriptors. i.e a .git path, physical path etc

  • descriptorInfo (dict) – Descriptor dic see Descriptor for more info.

Returns

Return type

Descriptor

Raise

NotImplementedError

class Descriptor(config, descriptorDict, manager=None)

Bases: zoo.core.plugin.plugin.Plugin

LOCAL_PATH = 'path'
ZOOTOOLS = 'zootools'
requiredkeys = ()
isDescriptorOfType(descriptorType)
property package

Returns the zoo package instance attached to this descriptor or None

Returns

The zoo package for the descriptor

Return type

zoo.core.packageresolver.package.Package or None

serialize()
resolve(*args, **kwargs)
install(**arguments)
uninstall(remove=False)
class GitDescriptor(config, descriptorDict)

Bases: zoo.core.descriptors.descriptor.Descriptor

id = 'git'
requiredkeys = ('type', 'version', 'path')
resolve(*args, **kwargs)
install(**arguments)
class ZooDescriptor(config, descriptorDict)

Bases: zoo.core.descriptors.descriptor.Descriptor

Zoo distributable descriptor

id = 'zootools'
requiredKeys = ('version', 'name', 'type')
resolve(*args, **kwargs)
install(**arguments)
class PathDescriptor(config, descriptorDict)

Bases: zoo.core.descriptors.descriptor.Descriptor

id = 'path'
requiredkeys = ('name', 'type', 'path')
property path
resolve()
installed()
install(**arguments)