Metadata-Version: 2.1
Name: simplejsonobject
Version: 0.1.3
Summary: A simple python object extension which can easily transform to and from json with compression support
Home-page: https://gitlab.com/mozgurbayhan/simplejsonobject
Author: Mehmet Ozgur Bayhan
Author-email: mozgurbayhan@gmail.com
License: BSD
Project-URL: Bug Reports, https://gitlab.com/mozgurbayhan/simplejsonobject/issues
Project-URL: Funding, https://www.losev.org.tr/bagis/Bagis.html
Project-URL: Say Thanks!, https://gitlab.com/mozgurbayhan/simplejsonobject
Project-URL: Source, https://gitlab.com/mozgurbayhan/simplejsonobject
Description: # simplejsonobject
        [![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
        [![PyPI version](https://img.shields.io/pypi/v/simplejsonobject)](https://pypi.org/project/simplejsonobject/)
        [![PyPI - Downloads](https://pepy.tech/badge/simplejsonobject)](https://pepy.tech/project/simplejsonobject)
        [![PyPI - Implementation](https://img.shields.io/pypi/implementation/simplejsonobject)](https://pypi.org/project/simplejsonobject/)
        [![pipeline status](https://gitlab.com/mozgurbayhan/simplejsonobject/badges/master/pipeline.svg)](https://gitlab.com/mozgurbayhan/simplejsonobject/commits/master)
        [![pylint status](https://gitlab.com/mozgurbayhan/simplejsonobject/-/jobs/artifacts/master/raw/pylint/pylint.svg?job=pylint)](https://gitlab.com/mozgurbayhan/simplejsonobject/commits/master)
        [![coverage report](https://gitlab.com/mozgurbayhan/simplejsonobject/badges/master/coverage.svg)](https://gitlab.com/mozgurbayhan/simplejsonobject/commits/master)
        
        A simple python object which can easily transform to and from json with compression support
        
        ## Install
        
        ```bash
        pip install simplejsonobject
        ```
        
        ## Usage 
        
        ```python
        from simplejsonobject import JsonObject
        
        
        class Sample(JsonObject):
            def __init__(self):
                self.a = "8"
                self.b = 3
                self.c = None
        
                
        def main():
        	smp=Sample()
        	smp.to_dict() # {"a": tdata, "b": 3, "c": None}
        	smp.to_dict_compressed() # {"a": tdata, "b": 3}
        	smp.to_json() # '{\n    "a": 8,\n    "b": 3,\n    "c": null\n}'
        	smp.to_json_compressed() # '{"a": 8, "b": 3}'
        	
        	# or you can import from any compressed/notcompressed json/dict
        	# all below results same object
        	tsmp.from_dict({"a": tdata, "b": 3, "c": None}
        	tsmp.from_dict({"a": tdata, "b": 3})
        	tsmp.from_json('{\n    "a": "8",\n    "b": 3,\n    "c": null\n}')
        	tsmp.from_json('{"a": "8", "b": 3}')
        
        
        if __name__ == '__main__':
            main()
        
        ```
Keywords: json  development tracker debug
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: BSD License
Classifier: Intended Audience :: Developers
Classifier: Topic :: Database :: Front-Ends
Classifier: Programming Language :: Python :: 3.0
Classifier: Programming Language :: Python :: 3.1
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: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3
Description-Content-Type: text/markdown
