Metadata-Version: 2.1
Name: easytree
Version: 0.1.9
Summary: A fluent tree builder, useful to create multi-level, nested JSON configurations.
Home-page: https://easytree.readthedocs.io/en/latest
Author: david.schenck@outlook.com
Author-email: david.schenck@outlook.com
License: UNKNOWN
Description: # easytree
        
        ![build](https://github.com/dschenck/easytree/workflows/easytree/badge.svg)
        [![PyPI version](https://badge.fury.io/py/easytree.svg)](https://badge.fury.io/py/easytree) 
        [![Documentation Status](https://readthedocs.org/projects/easytree/badge/?version=latest)](https://easytree.readthedocs.io/en/latest/?badge=latest) 
        [![Downloads count](https://img.shields.io/pypi/dd/easytree)](https://img.shields.io/pypi/dd/easytree)
        [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
        
        A fluent tree builder, useful to create multi-level, nested JSON configurations.
        
        ## Documentation
        Documentation is hosted on [read the docs](https://easytree.readthedocs.io/en/latest/)
        
        ## Installation
        ```
        pip install easytree
        ```
        
        ## Quickstart 
        ```python
        >>> import easytree
        
        #let's create a chart configuration
        >>> chart = easytree.Tree()
        >>> chart.chart.type = "bar"
        >>> chart.title.text = "France Olympic Medals"
        >>> chart.xAxis.categories = ["Gold", "Silver", "Bronze"]
        >>> chart.yAxis.title.text = "Count"
        >>> chart.series.append(name="2016", data=[10, 18, 14])
        >>> chart.series.append({"name":"2012"}) #list items recursively become nodes
        >>> chart.series[1].data = [11, 11, 13]  #... as such, you can attach attributes
        
        >>> chart.serialize()
        {
            "chart": {
                "type": "bar"
            },
            "title": {
                "text": "France Olympic Medals"
            },
            "xAxis": {
                "categories": [
                    "Gold",
                    "Silver",
                    "Bronze"
                ]
            },
            "yAxis": {
                "title": {
                    "text": "Count"
                }
            },
            "series": [
                {
                    "name": "2016",
                    "data": [
                        10,
                        18,
                        14
                    ]
                },
                {
                    "name": "2012",
                    "data": [
                        11,
                        11,
                        13
                    ]
                }
            ]
        }
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
