Skip to main content

callables and components joined in one big happy chain

Project description

Lets arbitrary callables, components, and event listeners be stringed 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.value()
{'a': 1, 'b': 2, 'c': 3}

Mirrored at

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
callchain-0.2.6.tar.bz2 (23.0 kB) Copy SHA256 hash SHA256 Source None
callchain-0.2.6.tar.gz (30.5 kB) Copy SHA256 hash SHA256 Source None (57.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page