Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)
Load a set of ``setuptools``-style entry points.

This is a convenience wrapper around ``pkg_resources.iter_entry_points()``.

:param group: The group of entry points to be loaded.

:returns: A dictionary whose keys are the entry point names, and values are
   the loaded entry points.

        def load_entry_points(group):
    """
    Load a set of ``setuptools``-style entry points.

    This is a convenience wrapper around ``pkg_resources.iter_entry_points()``.

    :param group: The group of entry points to be loaded.

    :returns: A dictionary whose keys are the entry point names, and values are
       the loaded entry points.
    """
    entry_points = {}
    for entry_point in iter_entry_points(group):
        entry_points[entry_point.name] = entry_point.load()
    return entry_points
        


src/r/a/rattail-0.3.25/rattail/batches/__init__.py   rattail(Download)
from .exceptions import *
from .providers import *
from ..util import load_entry_points
 
 
def get_providers():
    return load_entry_points('rattail.batches.providers')
 
 
def iter_providers():

src/r/a/rattail-0.3.25/rattail/sil/columns.py   rattail(Download)
from ..core import Object
from .exceptions import SILColumnNotFound
from ..util import load_entry_points
 
 
    if supported_columns is None:
        supported_columns = {}
        providers = load_entry_points('rattail.sil.column_providers')
        for provider in providers.itervalues():
            supported_columns.update(provider())

src/r/a/rattail-0.3.25/rattail/commands.py   rattail(Download)
 
from ._version import __version__
from .util import load_entry_points
from .db import Session, configure_session_factory
from .db import model
    def __init__(self):
        self.subcommands = load_entry_points('{0}.commands'.format(self.name))
 
    def __unicode__(self):
        return unicode(self.name)