Skip to main content

txdlo is a Python package that provides a class called DeferredListObserver.

As you might guess, DeferredListObserver lets you observe callback and errback events from a list of Twisted deferreds. You can add observers that will be passed information about deferreds firing. You can add deferreds to the observed list at any time, which is very useful if you’re dynamically creating deferreds that you want to monitor.

The class can be used to easily build functions or classes that provide deferreds that fire when arbitrary combinations of events from the observed deferreds have occurred.

For example you can write functions or classes that support deferreds that

  • Implement Twisted’s DeferredList or simple variants of it, or that let you separate the various behaviors of DeferredList into simpler functions.

  • Provide a deferred that fires when N of the observed deferreds have fired.

  • Provide a deferred that ignores errors until one of the observed deferred succeeds, only firing with an error if all the observed deferreds fail.

  • Or (a more involved example), suppose you have 3 methods that can return you a user’s avatar: a fast local cache, a filesystem, and a slow network call to Gravatar. You want to write a deferred-returning function that launches all three lookups at once and fires its deferred with the first answer. But if the cache and/or filesystems fails first, you don’t want to trigger an error, you instead want to take the result from Gravatar and add it to the cache and/or filesystem, as well firing the returned deferred with the result (wherever it comes from). Only if all three lookups fail do you want to errback the deferred you returned.

The source for txdlo lives at https://github.com/terrycojones/txdlo.

Metadata

Release files for txdlo 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for txdlo 0.1.8
File Size Uploaded Provenance
txdlo-0.1.8.tar.gz 5.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for txdlo 0.1.8
File Interpreter ABI Platform
txdlo-0.1.8-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 10.9 kB

Release files / txdlo-0.1.8.tar.gz

Download URL txdlo-0.1.8.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0b09f1bfbea2cac268f9e5f55d0714286e41ec7719b94210665f8e5878f23b4e
BLAKE2b-256 checksum
How to use checksums
fbd4d0bc9e1780c7a4df00e5ca0ce1df56fd2dfa9386153b40ecbccbaa3903dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / txdlo-0.1.8-py2.py3-none-any.whl

Download URL txdlo-0.1.8-py2.py3-none-any.whl
Size 5.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
dd8a4a3ee3f8c894f8fb9b18871e595ed250ea68ea8734a1ff1c29d9da150739
BLAKE2b-256 checksum
How to use checksums
4566daee1fbb4d770643a4dc8a077112d62a7c83703e89c4f6f6703e13074041
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for txdlo 0.1.8

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page