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.

Source Distributions

callchain-0.2.4.zip (55.5 kB view details)

Uploaded Source

callchain-0.2.4.tar.gz (26.8 kB view details)

Uploaded Source

callchain-0.2.4.tar.bz2 (20.7 kB view details)

Uploaded Source

File details

Details for the file callchain-0.2.4.zip.

File metadata

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

File hashes

Hashes for callchain-0.2.4.zip
Algorithm Hash digest
SHA256 31324ce6f5e97aaed5ab9ed8442e79d1723da13a167c1d2f8041e17cb506886e
MD5 1ca0ef72547dfcc14820947c8b76d955
BLAKE2b-256 7c9f7b98ff94728606090fbb7a6f863431c60b396e79861b7fc0f77a299d136d

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for callchain-0.2.4.tar.gz
Algorithm Hash digest
SHA256 6fa19b1fd97a2e78b0d5dd360c83af052b601dc70462d5d0a55db9d6552f3212
MD5 d708b79ddedb876da4dad44b090fdb76
BLAKE2b-256 96ff54d9b62464b74310f01313cc6ef4ebc47b73849cdd7f40830164e987b07a

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for callchain-0.2.4.tar.bz2
Algorithm Hash digest
SHA256 6b58c0ae8386483c07e15d58be93a19b8715a462de7a6f32b57dad57863a5000
MD5 6eff77a944cf51845fb2804b2b5c6a31
BLAKE2b-256 12b487e6efc65692124a342de7231b42b910dca56d18f94396ef8b0ce6fe5b01

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