Metadata-Version: 1.1
Name: pyjsend
Version: 0.2.1
Summary: A python jsend library
Home-page: https://github.com/onceaweeq/py-jsend
Author: Juncheol Cho
Author-email: zironycho@gmail.com
License: MIT
Description: py-jsend
        ========
        python jsend
        pypi: https://pypi.python.org/pypi/pyjsend/
        
        .. image:: https://travis-ci.org/onceaweeq/py-jsend.svg?branch=master
            :target: https://travis-ci.org/onceaweeq/py-jsend
        
        .. image:: https://badge.fury.io/py/pyjsend.svg
            :target: http://badge.fury.io/py/pyjsend
        
        
        About jsend
        -----------
        http://labs.omniti.com/labs/jsend
        
        
        Install
        -------
        pip install pyjsend
        
        Usage
        -----
        
        import module::
        
         >>> import jsend
        
        success::
        
         >>> jsend.success({'key': 'value'})
         {'status': 'success', 'data': {'key': 'value'}}
        
        
        fail::
        
         >>> jsend.fail({'key': 'value'})
         {'status': 'fail', 'data': {'key': 'value'}}
        
        error::
        
         >>> jsend.error('message')
         {'status': 'error', 'message': 'message'}
        
        is success::
        
         >>> jsend.is_success({'status':'success'})
         True
        
        is fail::
        
         >>> jsend.is_fail({'status':'fail'})
         True
        
        is error::
        
         >>> jsend.is_error({'status':'error'})
         True
        
        to json string and load jsend string::
        
         >>> jsend.success({'key': 'value'}).stringify()
         '{"status": "success", "data": {"key": "value"}}'
        
         >>> jsend.loads(jsend.success({'key': 'value'}).stringify())
         {u'status': u'success', u'data': {u'key': u'value'}}
        
        
Keywords: python jsend
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
