callchain /

Filename Size Date modified Message
callchain
docs
351 B
- text environment
329 B
Added tag 0.2.5 for changeset c37934110fe1
1.5 KB
- update
133 B
- fix paths
628 B
fix github URL
1.9 KB
- update fab file
128 B
- fix
28 B
- bump
1.7 KB
- bump
277 B
- tweak tox.ini

callchain strings arbitrary callables, components, and event listeners into one lazily evaluated processing chain.

Some highly contrived examples:

chain style:

>>> from callchain import aachainq as chainq
>>> chainqueue = chainq()
>>> chainqueue(('a', 1), ('b', 2), ('c', 3)).reup().wrap(dict).map().value()
{'a': 1, 'b': 2, 'c': 3}

Object-oriented style:

>>> chainqueue(('a', 1), ('b', 2), ('c', 3))
>>> chainqueue.reup()
>>> chainqueue.wrap(dict)
>>> chainqueue.map()
>>> chainqueue.value()
{'a': 1, 'b': 2, 'c': 3}

Mirrored at https://github.com/lcrees/callchain/