Metadata-Version: 2.1
Name: xson
Version: 1.0.3
Summary: XSON: XML Encoding for JSON
Home-page: https://github.com/renatahodovan/xson
Author: Renata Hodovan, Akos Kiss
Author-email: hodovan@inf.u-szeged.hu, akiss@inf.u-szeged.hu
License: BSD
Description: ====
        XSON
        ====
        *XML Encoding for JSON*
        
        .. image:: https://img.shields.io/pypi/v/xson?logo=python&logoColor=white
           :target: https://pypi.org/project/xson/
        .. image:: https://img.shields.io/pypi/l/xson?logo=open-source-initiative&logoColor=white
           :target: https://pypi.org/project/xson/
        .. image:: https://img.shields.io/github/workflow/status/renatahodovan/xson/main/master?logo=github&logoColor=white
           :target: https://github.com/renatahodovan/xson/actions
        .. image:: https://img.shields.io/coveralls/github/renatahodovan/xson/master?logo=coveralls&logoColor=white
           :target: https://coveralls.io/github/renatahodovan/xson
        
        .. start included documentation
        
        *XSON* is a Python package that supports the serialization of Python objects to
        XML documents according to the JSONx_ specification (draft), as well as the
        deserialization of JSONx documents to Python objects. The implementation aims at
        being API-compatible with Python's standard JSON_ package.
        
        .. _JSONx: https://tools.ietf.org/html/draft-rsalz-jsonx-00
        .. _JSON: https://docs.python.org/3/library/json.html
        
        
        Requirements
        ============
        
        * Python_ >= 3.5
        * pip_ and setuptools Python packages (the latter is automatically installed by
          pip)
        
        .. _Python: https://www.python.org
        .. _pip: https://pip.pypa.io
        
        
        Install
        =======
        
        The quick way::
        
            pip install xson
        
        Alternatively, by cloning the project and running setuptools::
        
            python setup.py install
        
        
        Usage
        =====
        
        Example:
        
        >>> import xson
        >>> out = xson.dumps({'foo': 42, 'bar': [3.14, 'baz', True, None]}, indent=4)
        >>> print(out)  #doctest: +NORMALIZE_WHITESPACE
        <?xml version="1.0" encoding="UTF-8"?>
        <json:object xmlns:json="http://www.ibm.com/xmlns/prod/2009/jsonx">
            <json:number name="foo">42</json:number>
            <json:array name="bar">
                <json:number>3.14</json:number>
                <json:string>baz</json:string>
                <json:boolean>true</json:boolean>
                <json:null/>
            </json:array>
        </json:object>
        >>> dct = xson.loads(out)
        >>> print(dct)
        {'foo': 42, 'bar': [3.14, 'baz', True, None]}
        
        .. end included documentation
        
        
        Copyright and Licensing
        =======================
        
        Licensed under the BSD 3-Clause License_.
        
        .. _License: LICENSE.rst
        
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
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: Topic :: Utilities
Provides-Extra: docs
