semvec/pypi-packages huggingface dataset:
xjson 0.1.5
allow you parse a json file with xpath syntax
License: MIT License

# xjson
-------

xjson 是一个能让你用xpath 语法来解析的json的工具

##Overview
----------

在处理json的时候，如果json
列表有很多元素的话，需要一个个迭代去处理。然而在xpath
却不是这样的，xpath 可以把路径下的都提取出来，这样就能把提取
变成一行，方便写在配置文件中。 xjson
做的就是这么一件事。让你能够以xpath的形式解析json。

::

    {
        "success":true,
        "message":"操作成功！",
        "result":[
            {
                "firstCategoryList":[
                    {
                        "name":"工具",
                        "id":"2"
                    }
                ],
                "secondCategoryList":[
                    {
                        "name":"钻削类电动工具",
                        "id":"142",
                        "list":[
                            {
                                "name":"手电钻",
                                "id":"925"
                            },
                            {
                                "name":"磁座钻",
                                "id":"928"
                            }
                        ]
                    },
                    {
                        "name":"磨削类电动工具",
                        "id":"143",
                        "list":[
                            {
                                "name":"角向磨光机",
                                "id":"936"
                            },
                            {
                                "name":"磨具电磨",
                                "id":"937"
                            }
                        ]
                    }
                ]
            }
        ]
    }

如果用json，需要把三级分类提取出来的话，你需要写成

::

    for result in json_content["result"]:
        for second_category in result["secondCategoryList"]:
            for third_category in second_category["list"]:
                print third_category["name"]
                

不仅混乱，而且需要时刻注意各层嵌套之间的关系，而在 xjson
中，你只需要按照层次关系写成

::

    result/secondCategoryList/list/name

就可以把三级分类全部提取出来了。
而且这样做的话，放在配置文件中，通过配置来提取json是非常方便的。

Requirements
------------

-  python2.7
django-addle 0.0.1
A Django app for managing ads and internal promotions.
License: MIT License

=====
Addle
=====

|Build Status| |Coverage Status| |PyPI|

Pluggable advertisement and promotion managing application

Quick start
-----------

1. Add "addle" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [
        ...
        'addle',
    ]

   Ensure that you have `django.contrib.auth` added as an application as well.

2. Include the addle URLconf in your project urls.py like this::

    url(r'^addle/', include('addle.urls')),

3. Run ``python manage.py migrate`` to create the addle models.

4. Start the development server.

5. Visit http://127.0.0.1:8000/addle/ to see the app.

Notes for the pluggable application
-----------------------------------

The standalone application is basically ready to use as one would normally run
a Django app, but the pluggable application has a few more things to note.

- Addle hooks into the Django permissions system. (...)
- Addle is designed, loosely, for a site using `Bootstrap
  <https://getbootstrap.com>`__, so elements are classed as such, but this is
  designed to not be a hard requirement.  To that end, some styles are defined within the templates.

Further information
-------------------

Source, issues, and further information:
  `GitHub <https://github.com/OpenFurry/addle>`__
Author
  `The OpenFurry Contributors <http://OpenFurry.org>`__

.. |Build Status| image:: https://travis-ci.org/OpenFurry/addle.svg?branch=master
   :target: https://travis-ci.org/OpenFurry/addle
.. |Coverage Status| image:: https://coveralls.io/repos/github/OpenFurry/addle/badge.svg?branch=master
   :target: https://coveralls.io/github/OpenFurry/addle?branch=master
.. |PyPI| image:: https://img.shields.io/pypi/v/django-addle.svg
   :target: https://pypi.python.org/pypi/django-addle/