Get started for free

The following is an excerpt from "The Infinite Machine"

In my previous article, I discussed the problems with Google App Engine’s deferred library.

deco.pngWe need a decorator!

I promised to present a replacement, so here it is.

Use the @task decorator from appenginetaskutils in your projects so that, unlike with defer(), you can run any function or callable at all in a separate task. You can escape this serious limitation of deferred and all other replacement libraries, and pick up a few more nice features as a bonus.

appenginetaskutils

On github:

https://github.com/emlynoregan/appenginetaskutils

On pypi:

https://pypi.python.org/pypi/appenginetaskutils

Install

Use the python package for this library. You can find the package online here.

Change to your Python App Engine project’s root folder and do the following:

pip install appenginetaskutils --target lib

Or add it to your requirements.txt. You’ll also need to set up vendoring, see app engine vendoring instructions here...

Click Here to Read More 


Emlyn O'Regan is a Co-Founder and CTO of xapiapps, and the author of "The Infinite Machine"

THIS EBOOK MIGHT INTEREST YOU

LX-Designer-Book

The LX Designer’s Handbook

A comprehensive guide to the changing world of learning design

Download ebook for free

Comments

Get the latest updates by email