semvec/pypi-packages huggingface dataset:
complex-namespace 1.0.2
A nested namespace made using Simple Namespace from functools
License: MIT
Requires Python: >=3.6.2,<4.0.0
Keywords: complex namespace,namespace,nested namespace,complex-namespace

# complex-namespace

An upgraded version of `SimpleNamespace` which enables us to have nested objects in it.

## Usage:

```python
from complex_namespace import Namespace

ns = Namespace(
    a=1,
    b=2,
    c=Namespace(
        d=3,
        e=4,
    ),
)

print(ns.a)
print(ns.b)
print(ns.c.d)
print(ns.c.e)
```

Output:
```text
1
2
3
4
```