Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

        def import_pillow_string(full_class_str, instantiate=True):
    mod_path, pillow_class_name = full_class_str.rsplit('.', 1)
    try:
        mod = importlib.import_module(mod_path)
        pillowtop_class = getattr(mod, pillow_class_name)
        return pillowtop_class() if instantiate else pillowtop_class
    except (AttributeError, ImportError):
        raise ValueError("Could not find pillowtop class '%s'" % full_class_str)
        


src/p/i/pillowtop-0.1.5/pillowtop/management/commands/run_ptop.py   pillowtop(Download)
import sys
from django.conf import settings
from pillowtop.utils import import_pillow_string
from django.core.management.base import NoArgsCommand
 
            else:
                pillow_idx = abbreviated_pillows.index(pillow_name)
                start_pillow(import_pillow_string(all_pillows[pillow_idx]))
            sys.exit()
        else:
            print "\nNo command set, please see --help for runtime instructions"
            sys.exit()
 
        start_pillows(pillows=[import_pillow_string(x) for x in pillows_to_run])

src/c/o/commcare-hq-HEAD/corehq/apps/hqadmin/management/commands/migrate_ctable_data.py   commcare-hq(Download)
from ctable.models import SqlExtractMapping
from dimagi.utils.decorators.memoized import memoized
from pillowtop.utils import import_pillow_string
from scripts.sh_verbose import ShVerbose
import os
    def get_fluff_tables(self):
        fluff_pillows = [import_pillow_string(x) for x in settings.PILLOWTOPS['fluff']]
        tables = set()
        for pillow in fluff_pillows:
            if pillow.save_direct_to_sql: