{"id":20905054,"url":"https://github.com/kaste/deferred2","last_synced_at":"2026-04-20T21:31:38.993Z","repository":{"id":62567515,"uuid":"77407611","full_name":"kaste/deferred2","owner":"kaste","description":"Successor of the deferred library on google app engine","archived":false,"fork":false,"pushed_at":"2017-01-10T11:14:01.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T14:50:02.026Z","etag":null,"topics":["app-engine","google-appengine"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaste.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-26T21:25:36.000Z","updated_at":"2022-06-14T19:54:17.000Z","dependencies_parsed_at":"2022-11-03T19:03:47.018Z","dependency_job_id":null,"html_url":"https://github.com/kaste/deferred2","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaste%2Fdeferred2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaste%2Fdeferred2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaste%2Fdeferred2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaste%2Fdeferred2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaste","download_url":"https://codeload.github.com/kaste/deferred2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243296240,"owners_count":20268553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["app-engine","google-appengine"],"created_at":"2024-11-18T13:21:30.172Z","updated_at":"2025-12-26T21:53:52.544Z","avatar_url":"https://github.com/kaste.png","language":"Python","readme":"Successor of the so useful deferred library on Google AppEngine (GAE).\n\nIt should fix some issues.\nIt should work async.\n\n\n\nUsage\n=====\n\nBy example::\n\n    from google.appengine.ext import ndb\n    import deferred2 as deferred\n\n\n    def work(message):\n        pass\n\n\n    @ndb.tasklet\n    def defer_one_task():\n        yield deferred.defer_async(work, 'to be done')\n\n\n    @ndb.tasklet\n    def defer_multiple_tasks():\n        yield deferred.defer_multi_async(\n            deferred.task(work, 'Hello'),\n            deferred.task(work, 'world!'))\n\n\n    @ndb.tasklet\n    def defer_deferring():\n        # this one enqueues one task right now, which will then add all the\n        # other tasks\n        yield deferred.one_shot_async(\n            deferred.task(work, 'Hello'),\n            deferred.task(work, 'world!'))\n\n\nYou see, it pretty much looks and works as before.\n\n\nChanges\n=======\n\n- ``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\n\n- You can set ``_urlsuffix`` which can be a str or a sequence of strs; which will get appended to the url. Pure cosmetics.\n\n- In case you set a ``name`` that is too long or contains invalid characters, a hash of the name will be used instead.\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaste%2Fdeferred2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaste%2Fdeferred2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaste%2Fdeferred2/lists"}