Metadata-Version: 1.1
Name: lxml-to-dict
Version: 0.1.0
Summary: A simple conversion of an lxml.objectify element to a python dictionary.
Home-page: https://bitbucket.org/westmont/lxml_to_dict
Author: Connor Riva
Author-email: criva@westmont.edu
License: UNKNOWN
Description: lxml to dict
        ============
        
        A simple conversion of an lxml.objectify element to a python dictionary.
        
        Usage
        -----
        
        .. code:: python
        
            >>> from lxml_to_dict import lxml_to_dict
            >>> 
            >>> lxml_to_dict(<the lxml.objectfy.Element>)
            >>>
            >>> root = objectify.Element("root")            # <root></root>
            >>> b = objectify.SubElement(root, "b")         # <root><b></b></root>
            >>> b = objectify.SubElement(root, "b")         # <root><b></b><b></b></root>
            >>> a = objectify.SubElement(root, "a")         # <root><b></b><b></b><a></a></root>
            >>> lxml_to_dict(root)                          # {'root': {'b': None, 'b1': None, 'a': None}}
        
        Test
        ----
        
        You can run the tests using
        `tox <https://tox.readthedocs.io/en/latest/>`__
        
        .. code:: shell
        
            tox
        
        Publish
        -------
        
        To publish a new version of this package your Pypi user needt to be
        added to the project. (Ask Connor to give you access)
        
        .. code:: shell
        
            # Update version number in setup.py
        
            python setup.py sdist
            twine upload dist/*
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
