Source

callchain / callchain / root / apps.py

Full commit
# -*- coding: utf-8 -*-
'''root chain appconf'''


class thingchain:
    class chainlet:
        prefix = 'callchain.chainlet'
        dumps = 'dumps.Dumps'
        loads = 'loads.Loads'
        logger = 'core.loglet'
    settings = 'callchain.settings.Settings'
    queue = 'twoq.twoq'
    port = 'twoq.port'


class chain(thingchain):
    collect = 'collectlet'
    combine = 'combinelet'
    delay = 'delaylet'
    filter = 'filterlet'
    map = 'maplet'
    math = 'mathlet'
    order = 'orderlet'
    random = 'randomlet'
    reduce = 'reducelet'
    repeat = 'repeatlet'
    set = 'setlet'
    slice = 'slicelet'
    truth = 'truthlet'


class events:
    key = 'callchain.keys.event.EEvent'
    # 1. before event
    before = 'callchain.keys.event.EBefore'
    # 2. work event
    work = 'callchain.keys.event.EWork'
    # 3. change event
    change = 'callchain.keys.event.EChange'
    # 4. any event
    any = 'callchain.keys.event.EAny'
    # 5. after event
    after = 'callchain.keys.event.EAfter'
    # 6. problem event
    problem = 'callchain.keys.event.EProblem'
    # 7. event that runs irrespective
    anyway = 'callchain.keys.event.EAnyway'


class thingevent(thingchain):
    E = 'callchain.chainlet.registry.EventRegistry'


class lookups:
    _choice = 'random.choice'
    _clsname = 'stuf.utils.clsname'
    _contains = 'operator.contains'
    _counter = 'twoq.support.Counter'
    _deek = 'collections.deque'
    _filterfalse = 'twoq.support.filterfalse'
    _fsum = 'math.fsum'
    _groupby = 'itertools.groupby'
    _ichain = 'itertools.chain.from_iterable'
    _ifilter = 'twoq.support.ifilter'
    _imap = 'twoq.support.imap'
    _ireduce = 'functools.reduce'
    _islice = 'itertools.islice'
    _items = 'twoq.support.items'
    _iterz = 'builtins.iter'
    _join = 'itertools.chain'
    _len = 'builtins.len'
    _list = 'builtins.list'
    _max = 'builtins.max'
    _methodcaller = 'operator.methodcaller'
    _min = 'builtins.min'
    _next = 'builtins.next'
    _partial = 'functools.partial'
    _range = 'support.range'
    _repeat = 'itertools.repeat'
    _reversed = 'builtins.reversed'
    _sample = 'random.sample'
    _shuffle = 'random.shuffle'
    _sleep = 'time.sleep'
    _sorted = 'builtins.sorted'
    _split = 'itertools.tee'
    _starmap = 'itertools.starmap'
    _sum = 'builtins.sum'
    _truediv = 'operator.truediv'
    _zip = 'six.moves.zip'