Metadata-Version: 2.1
Name: dotcon
Version: 0.5.0
Summary: A simple package which converts a standard python dictionary to a dot accessible object.
License: LICENCE
Author: AidanInceer
Author-email: aidaninceer0@gmail.com
Requires-Python: >=3.11,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: pre-commit (>=3.7.0,<4.0.0)
Requires-Dist: pytest (>=8.1.1,<9.0.0)
Description-Content-Type: text/markdown

# DotConfig

<a href="https://github.com/AidanInceer/DotConfig">
    <img alt="Static Badge" src="https://img.shields.io/badge/version-0.5.0-blue">
</a>

A simple package which converts a standard python dictionary to a dot accessible configuration object.

## Installation

``` bash
pip install dotcon
```

## Usage

``` python
from dotcon import DotConfig

mydict = {
    "A": [1, 2, 3, 4],
    "B": {"C": 5},
    "D": "E",
    "F": None,
}

ddict = DotConfig(mydict)

ddict.A
>>> [1, 2, 3, 4]

ddict.B
>>> {"C": 5}

ddict.B.C
>>> 5

ddict.D
>>> "E"

ddict.F
>>> None

```

