Skip to main content
Files added late

2 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.

Successor of the so useful deferred library on Google AppEngine (GAE).

It should fix some issues. It should work async.

Usage

By example:

from google.appengine.ext import ndb
import deferred2 as deferred


def work(message):
    pass


@ndb.tasklet
def defer_one_task():
    yield deferred.defer_async(work, 'to be done')


@ndb.tasklet
def defer_multiple_tasks():
    yield deferred.defer_multi_async(
        deferred.task(work, 'Hello'),
        deferred.task(work, 'world!'))


@ndb.tasklet
def defer_deferring():
    # this one enqueues one task right now, which will then add all the
    # other tasks
    yield deferred.one_shot_async(
        deferred.task(work, 'Hello'),
        deferred.task(work, 'world!'))

You see, it pretty much looks and works as before.

Changes

  • transactional’s new default is auto (instead of False), t.i. if your inside a transaction it will be set to True, otherwise it will be False

  • You can set _urlsuffix which can be a str or a sequence of strs; which will get appended to the url. Pure cosmetics.

  • In case you set a name that is too long or contains invalid characters, a hash of the name will be used instead.

Metadata

Release files for deferred2 0.0.1

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

Files added late

2 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for deferred2 0.0.1
File Size Uploaded
deferred2-0.0.1.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deferred2 0.0.1
File Interpreter ABI Platform
deferred2-0.0.1-py2-none-any.whl Python 2 none any Details

Total release size: 11.9 kB

Release files / deferred2-0.0.1.tar.gz

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL deferred2-0.0.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9a7c402d2b3c4de5aa4bea1a95a7bf5d0b774c4260c70f00ac81bf30606c0cfb
BLAKE2b-256 checksum
How to use checksums
e9cce620bb21d1840fa867fa0bf268e4d306805cb4be850ad6b7e8d706ae7948
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / deferred2-0.0.1-py2-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL deferred2-0.0.1-py2-none-any.whl
Size 6.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
7bcdf5f00ecc7e62b191d8ea6fa57b329e1b13d7ee0300211f6f20ca5d911cce
BLAKE2b-256 checksum
How to use checksums
585e00be0555f1809426dd5d4c144737080392c486afc41f4729fe87b91f83d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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