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
Release history Release notifications | RSS feed
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)
callchain-0.2.4.tar.gz
(26.8 kB
view details)
callchain-0.2.4.tar.bz2
(20.7 kB
view details)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31324ce6f5e97aaed5ab9ed8442e79d1723da13a167c1d2f8041e17cb506886e |
|
MD5 | 1ca0ef72547dfcc14820947c8b76d955 |
|
BLAKE2b-256 | 7c9f7b98ff94728606090fbb7a6f863431c60b396e79861b7fc0f77a299d136d |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fa19b1fd97a2e78b0d5dd360c83af052b601dc70462d5d0a55db9d6552f3212 |
|
MD5 | d708b79ddedb876da4dad44b090fdb76 |
|
BLAKE2b-256 | 96ff54d9b62464b74310f01313cc6ef4ebc47b73849cdd7f40830164e987b07a |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b58c0ae8386483c07e15d58be93a19b8715a462de7a6f32b57dad57863a5000 |
|
MD5 | 6eff77a944cf51845fb2804b2b5c6a31 |
|
BLAKE2b-256 | 12b487e6efc65692124a342de7231b42b910dca56d18f94396ef8b0ce6fe5b01 |