Latest release 20191007.1: Pipeline functionality extracted from cs.later: asynchronous pipelines mediated with a cs.later.Later.
Function pipelines mediated by queues and a Later.
Class Pipeline
MRO: cs.resources.MultiOpenMixin
A Pipeline encapsulates the chain of PushQueues created by
a call to Later.pipeline.
Method Pipeline.__init__(self, name, L, actions, outQ)
Initialise the Pipeline from name, Later instance L,
list of filter functions actions and output queue outQ.
Each action is either a 2-tuple of (sig, functor) or an object with a .sig attribute and a .functor method returning a callable.
Function pipeline(later, actions, inputs=None, outQ=None, name=None)
Construct a function pipeline to be mediated by this Later queue.
Return: input, output
where input`` is a closeable queue on which more data items can be put and output` is an iterable from which result can be collected.
Parameters:
actions: an iterable of filter functions accepting single items from the iterableinputs, returning an iterable output.inputs: the initial iterable inputs; this may be None. If missing or None, it is expected that the caller will be supplying input items viainput.put().outQ: the optional output queue; if None, an IterableQueue() will be allocated.name: name for the PushQueue implementing this pipeline.
If inputs is None or open is true, the returned input requires
a call to input.close() when no further inputs are to be supplied.
Example use with presupplied Later L:
input, output = L.pipeline(
[
ls,
filter_ls,
( FUNC_MANY_TO_MANY, lambda items: sorted(list(items)) ),
],
('.', '..', '../..'),
)
for item in output:
print(item)
Release Log
Release 20191007.1: Pipeline functionality extracted from cs.later: asynchronous pipelines mediated with a cs.later.Later.
Metadata
Release files for cs.pipeline 20191007.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cs.pipeline-20191007.1.tar.gz | 5.0 kB | Without provenance | Details for cs.pipeline-20191007.1.tar.gz |
Release files / cs.pipeline-20191007.1.tar.gz
| Download URL | cs.pipeline-20191007.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
192d6b0eede7623bdd7c32653461df45a5c88da5883d35409461b41f113b5ac5
|
|
BLAKE2b-256 checksum How to use checksums |
3f5f781bdbe5f455480b6e73ba844447a626ddf73681bd448e1e0c2129a5e769
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4
|
Security for cs.pipeline 20191007.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.