Metadata-Version: 1.1
Name: thrift_json
Version: 0.1.0
Summary: converter between thrift and json
Home-page: https://github.com/youngking/thrift_json
Author: Young King
Author-email: yanckin@gmail.com
License: MIT license
Description: ===============================
        thrift_json
        ===============================
        
        
        .. image:: https://img.shields.io/pypi/v/thrift_json.svg
                :target: https://pypi.python.org/pypi/thrift_json
        
        .. image:: https://img.shields.io/travis/youngking/thrift_json.svg
                :target: https://travis-ci.org/youngking/thrift_json
        
        
        .. image:: https://pyup.io/repos/github/youngking/thrift_json/shield.svg
             :target: https://pyup.io/repos/github/youngking/thrift_json/
             :alt: Updates
        
        
        converter between thrift and json
        
        
        * Free software: MIT license
        
        
        Usage
        --------
        
        * convert from json/dict to thrift
        
          >>> from thrift_json import json2thrift, dict2thrift
          >>> thrift_obj = json2thrift(json_str, thrift_class)
          >>> thrift_obj = dict2thrift(dict_obj, thrift_class)
        
        * convert from thrift to json/dict
        
          >>> from thrift_json import thrift2json, thrift2dict
          >>> json_str = thrfit2json(thrift_obj)
          >>> dict_obj = thrift2dict(thrift_obj)
        
        * encode/decode use json directly
        
          >>> from thrift_json import ThriftJSONEncoder
          >>> json_str = json.dumps(thrift_obj, cls=ThriftJSONEncoder)
        
        
          >>> from thrift_json import ThriftJSONDecoder
          >>> thrift_obj = json.loads(json_str, cls=ThriftJSONDecoder, thrift_class=thrift_class)
        
        
        =======
        History
        =======
        
        0.1.0 (2016-07-11)
        ------------------
        
        * First release on PyPI.
        
Keywords: thrift_json
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
