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.map()
>>> chainqueue.value()
{'a': 1, 'b': 2, 'c': 3}

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

Project details


Download files

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

Source Distributions

callchain-0.2.6.zip (57.8 kB view details)

Uploaded Source

callchain-0.2.6.tar.gz (30.5 kB view details)

Uploaded Source

callchain-0.2.6.tar.bz2 (23.0 kB view details)

Uploaded Source

File details

Details for the file callchain-0.2.6.zip.

File metadata

  • Download URL: callchain-0.2.6.zip
  • Upload date:
  • Size: 57.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for callchain-0.2.6.zip
Algorithm Hash digest
SHA256 5b088fb915512c178ec121ad2472fad9ffd085fe064b8f770d1f121fcde6944b
MD5 7cf9dc9e2bf227c0b7bdb28dc9fef016
BLAKE2b-256 d34a156b76726aa68cd50e95a8e1c6fc1396594479638d0d7cfbc54b4bedfef5

See more details on using hashes here.

Provenance

File details

Details for the file callchain-0.2.6.tar.gz.

File metadata

  • Download URL: callchain-0.2.6.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for callchain-0.2.6.tar.gz
Algorithm Hash digest
SHA256 dcf282727fa25c7b4295f26ba1cb00b044f2552db8dbc0857d4cf06cd6833c7b
MD5 72abf18fa8d8d9f81a6676af52d951e7
BLAKE2b-256 376114794c1a8f81e69095c19ddbdece17373034029ac8341586e71cb2330697

See more details on using hashes here.

Provenance

File details

Details for the file callchain-0.2.6.tar.bz2.

File metadata

  • Download URL: callchain-0.2.6.tar.bz2
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for callchain-0.2.6.tar.bz2
Algorithm Hash digest
SHA256 fbb7c4025ee555e5d67525f8d560ee9eda38d391e9c82682c35c0f77308e0934
MD5 31fb4f8c15597f7dfcff95fdc62f0241
BLAKE2b-256 9fcabd3ba3cf0b53ee3ade648572988d8321b8093fbce3ed5a6e28ead50b955c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page