• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(368)  |  Call(291)  |  Derive(0)  |  Import(77)
Yield entry point objects from `group` matching `name`

If `name` is None, yields all entry points in `group` from all
distributions in the working set, otherwise only ones matching
both `group` and `name` are yielded (in distribution order).

src/c/h/changingsong-HEAD/trunk/samples/plugin_sys/pyutilib/pyutilib/component/core/__init__.py   changingsong(Download)
    # Load modules associated with Plugins that are defined in
    # EGG files.
    #
    for entrypoint in pkg_resources.iter_entry_points('pyutilib.component'):
        plugin_class = entrypoint.load()
        #print "Loading plugins... (%s)" % entrypoint
except ImportError:

src/c/h/changingsong-HEAD/samples/plugin_sys/pyutilib/pyutilib/component/core/__init__.py   changingsong(Download)
    # Load modules associated with Plugins that are defined in
    # EGG files.
    #
    for entrypoint in pkg_resources.iter_entry_points('pyutilib.component'):
        plugin_class = entrypoint.load()
        #print "Loading plugins... (%s)" % entrypoint
except ImportError:

src/m/i/MidgardPyMVC-HEAD/midgardmvc/lib/componentloader.py   MidgardPyMVC(Download)
from pkg_resources import iter_entry_points
import os
import logging
log = logging.getLogger(__name__)
 
from pkg_resources import resource_string, resource_filename
from midgardmvc.components.base import load_config
def load_all(global_conf):
    global _project_root, _components
 
    _project_root = global_conf["here"]
 
    for entry_point in iter_entry_points(group='midgardmvc.component', name=None):
        log.debug("Loading component: %s" % entry_point.name)
def load(name):
    global _components
 
    if not _components.has_key(name):
        for entry_point in iter_entry_points(group='midgardmvc.component', name=name):
            log.debug("Loading component: %s" % entry_point.name)
            _components[entry_point.name] = _load_instance(entry_point)

src/c/o/collective.hostout-1.0a3/collective/hostout/hostout.py   collective.hostout(Download)
def findfabfiles():
    from pkg_resources import iter_entry_points
 
    fabfiles = []
    for ep in iter_entry_points(
	group='fabric',
	# Use None to get all entry point names

src/a/u/AuthKit-0.4.5/authkit/authenticate/__init__.py   AuthKit(Download)
 
from paste.util.import_string import eval_import
from multi import MultiHandler, status_checker
from pkg_resources import iter_entry_points, load_entry_point
from paste.deploy.converters import asbool
 
import paste.httpexceptions
def get_methods():
    """Get a dictionary of the available method entry points."""
    available_methods = {}
    for method_handler in iter_entry_points(group='authkit.method', name=None):
        available_methods[method_handler.name] = method_handler
    return available_methods
 

src/c/k/ckan-1.1/ckan/config/plugins.py   ckan(Download)
import logging
from pkg_resources import iter_entry_points
 
log = logging.getLogger(__name__)
 
# Entry point group. 
GROUP_NAME = "ckan.plugins"
def load_all(config):
    plugins = config.get('ckan.plugins', '')
    log.info("Loading plugins: %s" % plugins)
    for plugin in plugins.split():
        for entry_point in iter_entry_points(group=GROUP_NAME, name=plugin):
            load(plugin, entry_point, config)
            break

src/d/a/DatabasePipe-2.2.1/databasepipe/helper/plugin.py   DatabasePipe(Download)
from bn import AttributeDict
from pkg_resources import iter_entry_points
 
available_plugins = {}
insert_record = {}
update_config = {}
engine_name = {}
def load_available_plugins(plugins=[]):
    dist_plugins = {}
    if not plugins:
        for ep in iter_entry_points(
            group='database.engine',
            # Use None to get all entry point names
            name=None,

src/z/o/Zope2-2.12.12/src/Zope2/Startup/zopectl.py   Zope2(Download)
    def __getattr__(self, name):
        """Getter to check if an unknown command is implement by an entry point."""
        if not name.startswith("do_"):
            raise AttributeError(name)
        data=list(pkg_resources.iter_entry_points("zopectl.command", name=name[3:]))
        if not data:
            raise AttributeError(name)

src/z/a/zamboni-lib-HEAD/lib/python/setuptools/dist.py   zamboni-lib(Download)
            assert_string_list(self,'dependency_links',self.dependency_links)
        if attrs and 'setup_requires' in attrs:
            self.fetch_build_eggs(attrs.pop('setup_requires'))
        for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
            if not hasattr(self,ep.name):
                setattr(self,ep.name,None)
        _Distribution.__init__(self,attrs)
    def finalize_options(self):
        _Distribution.finalize_options(self)
        if self.features:
            self._set_global_opts_from_features()
 
        for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
            value = getattr(self,ep.name,None)
    def get_command_class(self, command):
        """Pluggable version of get_command_class()"""
        if command in self.cmdclass:
            return self.cmdclass[command]
 
        for ep in pkg_resources.iter_entry_points('distutils.commands',command):
            ep.require(installer=self.fetch_build_egg)
            self.cmdclass[command] = cmdclass = ep.load()
            return cmdclass
        else:
            return _Distribution.get_command_class(self, command)
 
    def print_commands(self):
        for ep in pkg_resources.iter_entry_points('distutils.commands'):

src/r/e/reporter-lib-HEAD/packages/setuptools/setuptools/dist.py   reporter-lib(Download)
            assert_string_list(self,'dependency_links',self.dependency_links)
        if attrs and 'setup_requires' in attrs:
            self.fetch_build_eggs(attrs.pop('setup_requires'))
        for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
            if not hasattr(self,ep.name):
                setattr(self,ep.name,None)
        _Distribution.__init__(self,attrs)
    def finalize_options(self):
        _Distribution.finalize_options(self)
        if self.features:
            self._set_global_opts_from_features()
 
        for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
            value = getattr(self,ep.name,None)
    def get_command_class(self, command):
        """Pluggable version of get_command_class()"""
        if command in self.cmdclass:
            return self.cmdclass[command]
 
        for ep in pkg_resources.iter_entry_points('distutils.commands',command):
            ep.require(installer=self.fetch_build_egg)
            self.cmdclass[command] = cmdclass = ep.load()
            return cmdclass
        else:
            return _Distribution.get_command_class(self, command)
 
    def print_commands(self):
        for ep in pkg_resources.iter_entry_points('distutils.commands'):

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next