Skip to main content

callables and components joined in one big happy chain

Project description

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/kwarterthieves/callchain/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for callchain, version 0.2.5
Filename, size File type Python version Upload date Hashes
Filename, size callchain-0.2.5.tar.bz2 (23.0 kB) File type Source Python version None Upload date Hashes View
Filename, size callchain-0.2.5.tar.gz (30.5 kB) File type Source Python version None Upload date Hashes View
Filename, size callchain-0.2.5.zip (57.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page