Object interface for a Python dictionary

https://img.shields.io/github/last-commit/jfjlaros/dict-obj.svg https://github.com/jfjlaros/dict-obj/actions/workflows/python-package.yml/badge.svg https://readthedocs.org/projects/dict-obj/badge/?version=latest https://img.shields.io/github/release-date/jfjlaros/dict-obj.svg https://img.shields.io/github/release/jfjlaros/dict-obj.svg https://img.shields.io/pypi/v/dict-obj.svg https://img.shields.io/github/languages/code-size/jfjlaros/dict-obj.svg https://img.shields.io/github/languages/count/jfjlaros/dict-obj.svg https://img.shields.io/github/languages/top/jfjlaros/dict-obj.svg https://img.shields.io/github/license/jfjlaros/dict-obj.svg

This package provides a dict-like object that allows keys to be accessed via member variables. Both nested dictionaries as well as lists are supported.

Example:

>>> from dict_obj import obj
>>>
>>> d = obj({'a': 1, 'b': {'c': 1}})
>>> d.b.c
1
>>> d['b'].c
1

Please see ReadTheDocs for the latest documentation.

Introduction

Warning

Under construction.

Installation

The software is distributed via PyPI, it can be installed with pip:

pip install dict-obj

From source

The source is hosted on GitHub, to install the latest development version, use the following commands.

git clone https://github.com/jfjlaros/dict-obj.git
cd dict-obj
pip install .

Usage

Warning

Under construction.

Contributors

Find out who contributed:

git shortlog -s -e