{ "info": { "author": "Sebasti\u00e1n J. Seba", "author_email": "ssebastianj@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "PyWebtasks: A Python wrapper for Auth0's Webtasks API\n=====================================================\n\n.. image:: https://img.shields.io/pypi/v/pywebtasks.svg\n :target: https://pypi.python.org/pypi/pywebtasks\n\n.. image:: https://img.shields.io/pypi/dm/pywebtasks.svg\n :target: https://pypi.python.org/pypi/pywebtasks\n\n.. image:: http://img.shields.io/travis/ssebastianj/pywebtasks.png\n :target: https://travis-ci.org/ssebastianj/pywebtasks\n\n\n\nInstallation\n------------\nTo install PyWebtasks, simply:\n\n.. code-block:: bash\n\n $ pip install pywebtasks\n\nUsage\n-----\nCreate a new webtask token:\n\n.. code-block:: python\n\n >>> from pywebtasks import tokens\n >>> wt_token = tokens.create('your_auth_webtask_token')\n\nTo view your user's auth webtask token go to the `webtask.io token section `_.\n\nTo revoke a webtask token:\n\n.. code-block:: python\n\n >>> tokens.revoke(wt_token)\n\nRun a webtask from a string:\n\n.. code-block:: python\n\n >>> import pywebtasks\n >>> js_code = '''return function (context, cb) {\n cb(null, \"Hello, JS world!\");\n };\n '''\n >>> req = pywebtasks.run(js_code,\n 'a_wt_container_name-0',\n 'a_webtask_token')\n >>> req.content\n 'Hello, JS world!'\n\n\nIf you want to run the content of a source code file (for example, `javascript.js `_), you can use the ``run_file`` function:\n\n.. code-block:: python\n\n >>> req = pywebtasks.run_file('/path/to/a/file.js',\n 'a_wt_container_name-0',\n 'a_webtask_token')\n >>> req.content\n 'Hello, JS world!'", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ssebastianj/pywebtasks", "keywords": "pywebtasks", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pywebtasks", "package_url": "https://pypi.org/project/pywebtasks/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pywebtasks/", "project_urls": { "Homepage": "https://github.com/ssebastianj/pywebtasks" }, "release_url": "https://pypi.org/project/pywebtasks/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "Python wrapper for Auth0's Webtask API.", "version": "0.1.3" }, "last_serial": 1564752, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "a2ff99f3188073e12b0b5fa60f453188", "sha256": "bdc8c2ee2bfdde8402912b6385f4f472434be830342e99acd9ea291be504952a" }, "downloads": -1, "filename": "pywebtasks-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a2ff99f3188073e12b0b5fa60f453188", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6705, "upload_time": "2015-05-27T14:01:34", "url": "https://files.pythonhosted.org/packages/82/8f/d14100b83fe79517c90504bef8500ad1e014a91f3d2006cc4a0a9f411661/pywebtasks-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2dd8aa9a36674166a5e5766ec013b4fc", "sha256": "4797317c7daf045b832253f9eecd8b9ad6ee1ac405d7b7798fdb488aaeb2b16d" }, "downloads": -1, "filename": "pywebtasks-0.1.3.tar.gz", "has_sig": false, "md5_digest": "2dd8aa9a36674166a5e5766ec013b4fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5339, "upload_time": "2015-05-27T14:01:15", "url": "https://files.pythonhosted.org/packages/4e/d3/26d123fdecb5090b540b859cf25841e6bc7a70647b6b1b83319c09de64ab/pywebtasks-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a2ff99f3188073e12b0b5fa60f453188", "sha256": "bdc8c2ee2bfdde8402912b6385f4f472434be830342e99acd9ea291be504952a" }, "downloads": -1, "filename": "pywebtasks-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a2ff99f3188073e12b0b5fa60f453188", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6705, "upload_time": "2015-05-27T14:01:34", "url": "https://files.pythonhosted.org/packages/82/8f/d14100b83fe79517c90504bef8500ad1e014a91f3d2006cc4a0a9f411661/pywebtasks-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2dd8aa9a36674166a5e5766ec013b4fc", "sha256": "4797317c7daf045b832253f9eecd8b9ad6ee1ac405d7b7798fdb488aaeb2b16d" }, "downloads": -1, "filename": "pywebtasks-0.1.3.tar.gz", "has_sig": false, "md5_digest": "2dd8aa9a36674166a5e5766ec013b4fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5339, "upload_time": "2015-05-27T14:01:15", "url": "https://files.pythonhosted.org/packages/4e/d3/26d123fdecb5090b540b859cf25841e6bc7a70647b6b1b83319c09de64ab/pywebtasks-0.1.3.tar.gz" } ] }