loicleyendecker / deeppath

MIT License
5 stars 4 forks source link

======== deeppath

.. image:: https://img.shields.io/pypi/v/deeppath.svg :target: https://pypi.python.org/pypi/deeppath

.. image:: https://github.com/loicleyendecker/deeppath/actions/workflows/python-package.yml/badge.svg :target: https://github.com/loicleyendecker/deeppath/actions/workflows/python-package.yml

.. image:: https://readthedocs.org/projects/deeppath/badge/?version=latest :target: https://deeppath.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

.. image:: https://static.pepy.tech/badge/deeppath :target: https://pepy.tech/project/deeppath :alt: Downloads

Python module to easily manipulate complex nested structures

Features

With ~deeppath.dget, you can access data in a complex nested structure. The nested structure should be a json-like structure, so essentially consisting of dictionary- and list-like structures::

nested_data = {
    "users": [
        {"surname": "Doe", "name": "John"},
        {"name": "Jane", "surname": "Doe"},
    ],
    "location": {
        "city": "London",
        "country": "United Kingdom",
    },
}

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

.. Cookiecutter: https://github.com/audreyr/cookiecutter .. audreyr/cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage