{ "info": { "author": "Cash Costello", "author_email": "cash.costello@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP" ], "description": "Dorset remote agent library\n========================================\n.. image:: https://secure.travis-ci.org/DorsetProject/dorset-python.png?branch=master\n\t:target: https://travis-ci.org/DorsetProject/dorset-python\n\nThis library provides components for implementing the remote agent web service\nAPI for `Dorset conversational interface project `_.\n\nInstallation\n============\nInstall using pip:\n\n.. code-block:: bash\n\n $ pip install dorset\n\nUsage\n==============\nThis library handles the encoding and decoding of requests and\nresponses from a Dorset application. This supports the creation of\nremote agents written in Python. Use this library with a python framework\nfor RESTful APIs like Flask, Bottle, or Django.\n\nThe web framework will handle HTTP requests and response and this\nlibrary will decode the request as an AgentRequest object and will encode\nan AgentResponse.\n\nWith Flask, this will look like:\n\n.. code-block:: python\n\n app = Flask(\"dorset_hello\")\n\n # required endpoint for the application to test if the agent is alive\n @app.route('/ping', methods=['GET'])\n def ping():\n return json.dumps(\"pong\")\n\n # primary endpoint\n @app.route('/request', methods=['POST'])\n def process():\n agent_request = Dorset.decode_request(request.data)\n\n print(agent_request.text)\n\n return Dorset.encode_response(text=\"hello, world!\")", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/DorsetProject/dorset-python", "keywords": null, "license": "Apache Software License", "maintainer": null, "maintainer_email": null, "name": "dorset", "package_url": "https://pypi.org/project/dorset/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/dorset/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/DorsetProject/dorset-python" }, "release_url": "https://pypi.org/project/dorset/0.4.0/", "requires_dist": null, "requires_python": null, "summary": "Package for implementing Dorset remote agent API", "version": "0.4.0" }, "last_serial": 2666473, "releases": { "0.4.0": [ { "comment_text": "", "digests": { "md5": "e65f7478e02433b739bde0fe15d03f41", "sha256": "1183c007bf2dde8260a74ae21cf966f7abab81108561d7479b4b6c753dc8ad76" }, "downloads": -1, "filename": "dorset-0.4.0.tar.gz", "has_sig": false, "md5_digest": "e65f7478e02433b739bde0fe15d03f41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4010, "upload_time": "2017-02-24T19:34:53", "url": "https://files.pythonhosted.org/packages/d8/ea/8e0a8e43f946b1ce4bd27a8334163cb592b4c6e0873ef72a56605066749d/dorset-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e65f7478e02433b739bde0fe15d03f41", "sha256": "1183c007bf2dde8260a74ae21cf966f7abab81108561d7479b4b6c753dc8ad76" }, "downloads": -1, "filename": "dorset-0.4.0.tar.gz", "has_sig": false, "md5_digest": "e65f7478e02433b739bde0fe15d03f41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4010, "upload_time": "2017-02-24T19:34:53", "url": "https://files.pythonhosted.org/packages/d8/ea/8e0a8e43f946b1ce4bd27a8334163cb592b4c6e0873ef72a56605066749d/dorset-0.4.0.tar.gz" } ] }