txdpce provides a Twisted Python class, DeferredParallelCommandExecutor. It allows you to register competing functions that compute a result. The execute method of the class calls them all one after another and returns a Deferred that will fire with the first success. The deferreds corresponding to the incomplete function calls are cancelled. If all functions fail, the deferred errs with a list of the failures.
The point is that you might have a couple of ways of getting a result (out of a cache, off the network) and you want to try them all, taking the answer from the first one that figures it out.
Metadata
Release files for txdpce 0.1.2
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 | |
|---|---|---|---|---|
| txdpce-0.1.2.tar.gz | 3.8 kB | Without provenance | Details |
Release files / txdpce-0.1.2.tar.gz
| Download URL | txdpce-0.1.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47b864f18ae07a94b86e26cb4b0b2e934ef61268e00b4843a901a2644f68a687
|
|
BLAKE2b-256 checksum How to use checksums |
ae8bc548bc69324900c6ce442b15c500419603200c72d76e326c1838e905a6fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for txdpce 0.1.2
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.