{ "info": { "author": "Young King", "author_email": "yanckin@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 :: 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", "Programming Language :: Python :: 3.5" ], "description": "===============================\nthrift_json\n===============================\n\n\n.. image:: https://img.shields.io/pypi/v/thrift_json.svg\n :target: https://pypi.python.org/pypi/thrift_json\n\n.. image:: https://img.shields.io/travis/youngking/thrift_json.svg\n :target: https://travis-ci.org/youngking/thrift_json\n\n\n.. image:: https://pyup.io/repos/github/youngking/thrift_json/shield.svg\n :target: https://pyup.io/repos/github/youngking/thrift_json/\n :alt: Updates\n\n\nconverter between thrift and json\n\n\n* Free software: MIT license\n\n\nUsage\n--------\n\n* convert from json/dict to thrift\n\n >>> from thrift_json import json2thrift, dict2thrift\n >>> thrift_obj = json2thrift(json_str, thrift_class)\n >>> thrift_obj = dict2thrift(dict_obj, thrift_class)\n\n* convert from thrift to json/dict\n\n >>> from thrift_json import thrift2json, thrift2dict\n >>> json_str = thrfit2json(thrift_obj)\n >>> dict_obj = thrift2dict(thrift_obj)\n\n* encode/decode use json directly\n\n >>> from thrift_json import ThriftJSONEncoder\n >>> json_str = json.dumps(thrift_obj, cls=ThriftJSONEncoder)\n\n\n >>> from thrift_json import ThriftJSONDecoder\n >>> thrift_obj = json.loads(json_str, cls=ThriftJSONDecoder, thrift_class=thrift_class)\n\n\n=======\nHistory\n=======\n\n0.1.0 (2016-07-11)\n------------------\n\n* First release on PyPI.", "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/youngking/thrift_json", "keywords": "thrift_json", "license": "MIT license", "maintainer": null, "maintainer_email": null, "name": "thrift_json", "package_url": "https://pypi.org/project/thrift_json/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/thrift_json/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/youngking/thrift_json" }, "release_url": "https://pypi.org/project/thrift_json/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "converter between thrift and json", "version": "0.1.0" }, "last_serial": 2214726, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "3199e2627ada8f7a356ed518fdc09048", "sha256": "db9cad32ca818963dc14508a8840aa2ce8353c5f0ab7a6c7b69f0f02bf86700c" }, "downloads": -1, "filename": "thrift_json-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3199e2627ada8f7a356ed518fdc09048", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16140, "upload_time": "2016-07-11T16:48:09", "url": "https://files.pythonhosted.org/packages/0a/b5/d8fab97674502dcb2d00b03806600dfabfcfe76fd521611cfbd51a3b6feb/thrift_json-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3199e2627ada8f7a356ed518fdc09048", "sha256": "db9cad32ca818963dc14508a8840aa2ce8353c5f0ab7a6c7b69f0f02bf86700c" }, "downloads": -1, "filename": "thrift_json-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3199e2627ada8f7a356ed518fdc09048", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16140, "upload_time": "2016-07-11T16:48:09", "url": "https://files.pythonhosted.org/packages/0a/b5/d8fab97674502dcb2d00b03806600dfabfcfe76fd521611cfbd51a3b6feb/thrift_json-0.1.0.tar.gz" } ] }