{ "info": { "author": "Eleme Lab", "author_email": "imaralla@icloud.com", "bugtrack_url": null, "classifiers": [], "description": "takumi-http\n===========\n\n.. image:: https://travis-ci.org/elemepi/takumi-http.svg?branch=master\n :target: https://travis-ci.org/elemepi/takumi-http\n\nWrite http service as a thrift service.\n\nThis package implements a protocol transformer from http to thrift. Just write\nthe service as a normal Takumi thrift service, then serve the service as a http\nservice. The developers don't have to care about the details of the protocol\ntransformation, only add the config ``thrift_protocol_class`` to app.yaml and\nyour service can be served as a http service.\n\nConfig\n------\n\n.. code:: yaml\n\n thrift_protocol_class: takumi_http.HttpProtocol\n\n\nSettings\n--------\n\nSession related settings:\n\n* ``SECRET_KEY`` (required) secret key for encrypting cookies.\n* ``PERMANENT_SESSION_LIFETIME`` timedelta of session lifetime, default 31 day.\n* ``SESSION_COOKIE_DOMAIN`` cookie domain.\n* ``SESSION_COOKIE_PATH`` cookie path, default '/'.\n\nThe attributes ``session_cookie_domain`` and ``session_cookie_path`` can be\nsetted to api context to override default settings.\n\nExample\n-------\n\n.. code:: python\n\n from takumi import Takumi\n\n app = Takumi('PingService')\n app.use(save_session)\n\n @app.api_with_ctx\n @pass_request\n def say_hello(request, name):\n request.session['user_id'] = 90\n return 'Hello ' + name\n\nServe the App\n-------------\n\nUsing `takumi-cli `_ to the serve the\napp.\n\n.. code:: bash\n\n $ takumi serve\n\n\nInvoke Api\n----------\n\nThe http method is not very important. If the api has arguments use ``POST``,\nif not use ``GET``.\n\nUse a http client to invoke api:\n\n.. code:: bash\n\n $ curl -XPOST http://localhost:1993/say_hello -d '{\"name\":\"world\"}'\n\nAPI URL has this format:\n\n.. code:: text\n\n http://://\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/elemepi/takumi-http", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "takumi-http", "package_url": "https://pypi.org/project/takumi-http/", "platform": "", "project_url": "https://pypi.org/project/takumi-http/", "project_urls": { "Homepage": "https://github.com/elemepi/takumi-http" }, "release_url": "https://pypi.org/project/takumi-http/0.1.7/", "requires_dist": [ "takumi", "takumi-config", "takumi-thrift", "thriftpy", "itsdangerous" ], "requires_python": "", "summary": "Http to thrift protocol conversion", "version": "0.1.7" }, "last_serial": 4690290, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8da3385eb2be31a61a3d4aa951cf7ea2", "sha256": "a6cf7c0e43e978d15d56ef0a3661c8093a56491d4be58493ea2a7070b10ec221" }, "downloads": -1, "filename": "takumi_http-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8da3385eb2be31a61a3d4aa951cf7ea2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12929, "upload_time": "2017-03-04T02:19:45", "url": "https://files.pythonhosted.org/packages/4c/b3/7e44cdba27a01ed026cab4620660e263e04a1a37fee6f5b879bbcc8bf40d/takumi_http-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a94d953a0b755e3e726204174f25b795", "sha256": "4552cc78ba50de933a6beeb0b83322945701d97f9eb5f3affb687b9c8ba53b24" }, "downloads": -1, "filename": "takumi_http-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a94d953a0b755e3e726204174f25b795", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8527, "upload_time": "2017-03-04T02:19:48", "url": "https://files.pythonhosted.org/packages/c5/ea/06da40928efc1dcf0602fdceda278257257198209cc9edaa715b5163a442/takumi_http-0.1.0.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "1d5a8cf2d84481afc133bbd8d5c44fa6", "sha256": "bc00596c808d10ecd08a614f464541678a8ec64e1092c4483b8e0f258a1e78ad" }, "downloads": -1, "filename": "takumi_http-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1d5a8cf2d84481afc133bbd8d5c44fa6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8712, "upload_time": "2017-03-13T07:59:00", "url": "https://files.pythonhosted.org/packages/82/94/2bf0a374c59c2574713fb85fb1faa9153a076ea85853c3aef37ffbadfa0a/takumi_http-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "28259656967edd4acb075a9de36e0d9f", "sha256": "42107f6c668cde61a6f1f0a9efed4844c1c2e461c4b05613bd0b28dbba053587" }, "downloads": -1, "filename": "takumi_http-0.1.2.tar.gz", "has_sig": false, "md5_digest": "28259656967edd4acb075a9de36e0d9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5917, "upload_time": "2017-03-13T07:59:03", "url": "https://files.pythonhosted.org/packages/ab/b9/f82195916216010dce9073846a3e63382c2156717043ade8796a5f1b861a/takumi_http-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "4e5c2160cdbf2c3a89bd796c9de10bfa", "sha256": "81aeb751eb70ee47188ac8933c1de59d37e08f8b1157987a414b1f9869acec7c" }, "downloads": -1, "filename": "takumi_http-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4e5c2160cdbf2c3a89bd796c9de10bfa", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8984, "upload_time": "2017-04-12T09:00:09", "url": "https://files.pythonhosted.org/packages/6b/ed/de3cd149705c2a8c5dc7df765010418566532957bd8833230e4a0bd7c799/takumi_http-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b46ea436a02fa17c32d3845a9b57683d", "sha256": "bf30b4d634239d81c1a341693c278b3cadeff8bb75f71b74ef4a1b34396f2adf" }, "downloads": -1, "filename": "takumi_http-0.1.3.tar.gz", "has_sig": false, "md5_digest": "b46ea436a02fa17c32d3845a9b57683d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6140, "upload_time": "2017-04-12T09:00:10", "url": "https://files.pythonhosted.org/packages/51/91/114619df71418927eb84888f4ec2e1061988dbd4a2031ef3fceeaab54244/takumi_http-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "2c5aa3f2e98f65660bba0cbbaac77a6d", "sha256": "1ee14ef360b807f7bdeefc81e72b5deef35e8e5015930f65ea6800b994121b5f" }, "downloads": -1, "filename": "takumi_http-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2c5aa3f2e98f65660bba0cbbaac77a6d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14358, "upload_time": "2018-07-14T14:08:03", "url": "https://files.pythonhosted.org/packages/ea/31/878d2083d991dc7d2f1ef4d4fb05e76ba737c24b491914b7dbe5e66c5001/takumi_http-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b55f8a8d8b11c1a81bac61459ae91a85", "sha256": "d3265e9ade826c9aac66347c989c31e546f652fb03d64033a2e83ac12bba2f2b" }, "downloads": -1, "filename": "takumi_http-0.1.4.tar.gz", "has_sig": false, "md5_digest": "b55f8a8d8b11c1a81bac61459ae91a85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9785, "upload_time": "2018-07-14T14:08:04", "url": "https://files.pythonhosted.org/packages/14/d1/3d3e416fd4dab8fc6e0b6cec4492577a583aa5337c0ef07a0a86b668c79d/takumi_http-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "eaeb9d27b99bbe70288d77fb8bce3fc7", "sha256": "a14f06d76e950b86b8775b1e6011ac36feb9ef2abb3c5f4dd45924abc5016f94" }, "downloads": -1, "filename": "takumi_http-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "eaeb9d27b99bbe70288d77fb8bce3fc7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15017, "upload_time": "2018-08-04T07:54:21", "url": "https://files.pythonhosted.org/packages/46/59/191689a0441fe18fb99d46c7c0bbf2f0224d45f73ff4224c7a3a9e8952e7/takumi_http-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c463ac56eac565b07f508c8b243db1a7", "sha256": "333e5ff270759dcdd158e2b58fc5d7e9bb17b08f2e5ebf1ffb7387d1b1b2f4ae" }, "downloads": -1, "filename": "takumi_http-0.1.5.tar.gz", "has_sig": false, "md5_digest": "c463ac56eac565b07f508c8b243db1a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10215, "upload_time": "2018-08-04T07:54:23", "url": "https://files.pythonhosted.org/packages/b3/c2/6174384a7dab905d6ae77217896e7fb523eb69f7eda0f137af8d407ad7ee/takumi_http-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "8ddc182990d48b106ea83cdbf9132856", "sha256": "9ff7e4673374f8ebc681336747eae2b87a2414b6efc38842f987b899cfe4ee72" }, "downloads": -1, "filename": "takumi_http-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8ddc182990d48b106ea83cdbf9132856", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15022, "upload_time": "2018-08-05T06:29:13", "url": "https://files.pythonhosted.org/packages/2e/6a/87fa995252d3d9b68fa6c8c5030c22bd4c7006d49d59e4ba5c9ff0b244d7/takumi_http-0.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "86f57998035ca55a2f7bd5416c8ad839", "sha256": "3cecadfbd54b548acdb1d6e06eccbad2cba251d32d41a57a33110922d8f9930a" }, "downloads": -1, "filename": "takumi_http-0.1.6.tar.gz", "has_sig": false, "md5_digest": "86f57998035ca55a2f7bd5416c8ad839", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10212, "upload_time": "2018-08-05T06:30:51", "url": "https://files.pythonhosted.org/packages/02/61/f58bcd0653aa7ff2c5524f95fbd2ee92778acc525306ef814e5d57006603/takumi_http-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "a164f3d597b0922d0096f3103c7e7cd8", "sha256": "cfdc510735f744f280deec99f587e8afbbc4e01b7cb9aaa8562860063a46d61b" }, "downloads": -1, "filename": "takumi_http-0.1.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a164f3d597b0922d0096f3103c7e7cd8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13714, "upload_time": "2019-01-13T08:01:18", "url": "https://files.pythonhosted.org/packages/86/e0/19c64ea15166f51adc49b5b5e59fcad17d95d55a807561a2c14aae9b40d9/takumi_http-0.1.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e47336cef280adb2156c5b61f97dc258", "sha256": "d63651f0853ec5194cbfb2d91aef64b138ede433d685ef2e6694cac0af963ae0" }, "downloads": -1, "filename": "takumi_http-0.1.7.tar.gz", "has_sig": false, "md5_digest": "e47336cef280adb2156c5b61f97dc258", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9696, "upload_time": "2019-01-13T08:01:20", "url": "https://files.pythonhosted.org/packages/2a/1f/bbb2b516d1f1320eb841c202220f46a891d4d5a8e967af0d4e07c5a48493/takumi_http-0.1.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a164f3d597b0922d0096f3103c7e7cd8", "sha256": "cfdc510735f744f280deec99f587e8afbbc4e01b7cb9aaa8562860063a46d61b" }, "downloads": -1, "filename": "takumi_http-0.1.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a164f3d597b0922d0096f3103c7e7cd8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13714, "upload_time": "2019-01-13T08:01:18", "url": "https://files.pythonhosted.org/packages/86/e0/19c64ea15166f51adc49b5b5e59fcad17d95d55a807561a2c14aae9b40d9/takumi_http-0.1.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e47336cef280adb2156c5b61f97dc258", "sha256": "d63651f0853ec5194cbfb2d91aef64b138ede433d685ef2e6694cac0af963ae0" }, "downloads": -1, "filename": "takumi_http-0.1.7.tar.gz", "has_sig": false, "md5_digest": "e47336cef280adb2156c5b61f97dc258", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9696, "upload_time": "2019-01-13T08:01:20", "url": "https://files.pythonhosted.org/packages/2a/1f/bbb2b516d1f1320eb841c202220f46a891d4d5a8e967af0d4e07c5a48493/takumi_http-0.1.7.tar.gz" } ] }