{ "info": { "author": "WKPlus", "author_email": "qifa.zhao@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "jsonthrift is implemented for serializing and deserializing json to/from thrift.\n\nUsage\n-----\n\n >>> transport = 'TBufferedTransport'\n >>> protocol = 'TBinaryProtocol'\n >>> thrift_file = 'tutorial.thrift'\n >>> service = 'Calculator'\n >>> method = 'add'\n >>> params = {'num1': 1, 'num2': 3}\n\n >>> jt = JsonThrift(transport, protocol, thrift_file, service)\n >>> msg = jt.pack_request(method, params, 1)\n >>> response = send_and_recv(msg) # send msg to server, receive response\n >>> result = jt.unpack_response(response)[4]\n >>> print result\n {'success': 4}\n\n >>> method = 'calculate'\n >>> params = {'logid': 1, 'w':{'op': 4, 'num1': 1, 'num2': 0}}\n >>> msg = jt.pack_request(method, params, 2)\n >>> response = send_and_recv(msg) # send msg to server, receive response\n >>> result = jt.unpack_response(response)[4]\n >>> print result\n {'ouch': {'whatOp': 4, 'why': 'Cannot divide by 0'}}\n\n >>> # unpack_response returns a tuple, which contains:\n >>> # message size(TFramedTransport)/None(TBufferedTransport),\n >>> # message type, will be 2 for thrift REPLY message\n >>> # method\n >>> # sequence id\n >>> # return value", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/WKPlus/jsonthrift", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "jsonthrift", "package_url": "https://pypi.org/project/jsonthrift/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/jsonthrift/", "project_urls": { "Homepage": "https://github.com/WKPlus/jsonthrift" }, "release_url": "https://pypi.org/project/jsonthrift/0.1.4/", "requires_dist": [ "thrift", "thriftpy" ], "requires_python": "", "summary": "a package for serializing json to/from thrift", "version": "0.1.4" }, "last_serial": 2884754, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0f10d7e3b4106f44dc349ce461b0017c", "sha256": "36cb361129522f3b5cdb2a7f0211e149de393f99346647b78514d5553c129a7b" }, "downloads": -1, "filename": "jsonthrift-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "0f10d7e3b4106f44dc349ce461b0017c", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7976, "upload_time": "2017-03-20T08:26:49", "url": "https://files.pythonhosted.org/packages/ce/c9/5273fa1b1e801f1ddfd4cee6afcbdd178242f2ed6f0f5d365745f56de5fb/jsonthrift-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "49a729985d182bb50ca71c7df4b65129", "sha256": "54ef8f4e7b617ca4cc0af5c80fd02fd51155b4cf45a192c373581c5ad5739c30" }, "downloads": -1, "filename": "jsonthrift-0.1.0.tar.gz", "has_sig": false, "md5_digest": "49a729985d182bb50ca71c7df4b65129", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4920, "upload_time": "2017-03-20T08:26:52", "url": "https://files.pythonhosted.org/packages/5d/24/aa9c8034989391e75941516f4b52f4ba206881c52416c9b54c96a728eda3/jsonthrift-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b53a56b6e06326456232cf6ff951e770", "sha256": "b6f2bab795f3ef546e4fa920ec9cb80c95adb32ecf8599758784996907de029e" }, "downloads": -1, "filename": "jsonthrift-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "b53a56b6e06326456232cf6ff951e770", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8077, "upload_time": "2017-03-24T07:26:01", "url": "https://files.pythonhosted.org/packages/d7/10/1013e833207c2ef01e1aad063c6fb2830762f76a7eb0668340054878b31e/jsonthrift-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a35cfbebab7ce5ca9aaf6d827fd6886f", "sha256": "be78353bbad38d2e62b260a6e02c2c1bc24ccc02c407e3c3a5fae292195a8239" }, "downloads": -1, "filename": "jsonthrift-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a35cfbebab7ce5ca9aaf6d827fd6886f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5056, "upload_time": "2017-03-24T07:26:04", "url": "https://files.pythonhosted.org/packages/13/68/61cc629571c8670dd975795f2ab86e3ce22384eb4652fb455b88dbcbf189/jsonthrift-0.1.1.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "d353b2c117912a2a4c870a3b7292acab", "sha256": "20606999ff0da51746da7d76fcbb812e2ae6ab73a9d5876203ac2be492b6f260" }, "downloads": -1, "filename": "jsonthrift-0.1.3-py2-none-any.whl", "has_sig": false, "md5_digest": "d353b2c117912a2a4c870a3b7292acab", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8940, "upload_time": "2017-04-20T13:11:24", "url": "https://files.pythonhosted.org/packages/29/d7/39c5927df2515737ae359231a9dcc605fb29274edd7db7cd7dce2c68972d/jsonthrift-0.1.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "50e33784f4cb07d705b76f7b5ce999ae", "sha256": "4956b1aaa0e62e1c402a33d436224da36febcbdf2f5050f6319111e6ed27cacc" }, "downloads": -1, "filename": "jsonthrift-0.1.3.tar.gz", "has_sig": false, "md5_digest": "50e33784f4cb07d705b76f7b5ce999ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5457, "upload_time": "2017-04-20T13:11:28", "url": "https://files.pythonhosted.org/packages/40/fa/80948acdc5ad4a947a34df96333dbe3567f3afbf0b1f27fa2fd771898e9e/jsonthrift-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "be29920d9422c3ce16d32e5bdf1c4535", "sha256": "e9ce499e95a3297cd64e38680099fed7c4bbcf838838d8dc277b9404b1c9b210" }, "downloads": -1, "filename": "jsonthrift-0.1.4-py2-none-any.whl", "has_sig": false, "md5_digest": "be29920d9422c3ce16d32e5bdf1c4535", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8960, "upload_time": "2017-05-19T04:00:02", "url": "https://files.pythonhosted.org/packages/d7/45/78913142b055d84e5f0ee9889d16a0804aa6299eb3bacade2aba1f4e9229/jsonthrift-0.1.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "de3d6ed5af24ea55abe771f372c0c759", "sha256": "c3055230fd7547b59fb1ea1398d30177eae19691dd6d3efc0d59049808d2014a" }, "downloads": -1, "filename": "jsonthrift-0.1.4.tar.gz", "has_sig": false, "md5_digest": "de3d6ed5af24ea55abe771f372c0c759", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5480, "upload_time": "2017-05-19T04:00:05", "url": "https://files.pythonhosted.org/packages/87/14/ec1d593051cda167bc23873963890d60b888ce1c458c94c45abb9fb03938/jsonthrift-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "be29920d9422c3ce16d32e5bdf1c4535", "sha256": "e9ce499e95a3297cd64e38680099fed7c4bbcf838838d8dc277b9404b1c9b210" }, "downloads": -1, "filename": "jsonthrift-0.1.4-py2-none-any.whl", "has_sig": false, "md5_digest": "be29920d9422c3ce16d32e5bdf1c4535", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8960, "upload_time": "2017-05-19T04:00:02", "url": "https://files.pythonhosted.org/packages/d7/45/78913142b055d84e5f0ee9889d16a0804aa6299eb3bacade2aba1f4e9229/jsonthrift-0.1.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "de3d6ed5af24ea55abe771f372c0c759", "sha256": "c3055230fd7547b59fb1ea1398d30177eae19691dd6d3efc0d59049808d2014a" }, "downloads": -1, "filename": "jsonthrift-0.1.4.tar.gz", "has_sig": false, "md5_digest": "de3d6ed5af24ea55abe771f372c0c759", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5480, "upload_time": "2017-05-19T04:00:05", "url": "https://files.pythonhosted.org/packages/87/14/ec1d593051cda167bc23873963890d60b888ce1c458c94c45abb9fb03938/jsonthrift-0.1.4.tar.gz" } ] }