Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python wrapper for Auth0's Webtask API.

Project Description


To install PyWebtasks, simply:

$ pip install pywebtasks


Create a new webtask token:

>>> from pywebtasks import tokens
>>> wt_token = tokens.create('your_auth_webtask_token')

To view your user’s auth webtask token go to the token section.

To revoke a webtask token:

>>> tokens.revoke(wt_token)

Run a webtask from a string:

>>> import pywebtasks
>>> js_code = '''return function (context, cb) {
                   cb(null, "Hello, JS world!");
>>> req =,
>>> req.content
'Hello, JS world!'

If you want to run the content of a source code file (for example, javascript.js), you can use the run_file function:

>>> req = pywebtasks.run_file('/path/to/a/file.js',
>>> req.content
'Hello, JS world!'

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(6.7 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 May 27, 2015
(5.3 kB) Copy SHA256 Hash SHA256
Source None May 27, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting