jw-python/src/python/jw/util/Bunch.py
Jan Lindemann a2684dd601
jwutils: Move to jwutils -> jw.util

Move all implementation source code from the jwutils module to jw.util. For compatibility with existing Python modules, keep a thin, autogenerated compatibility shim under jwutils.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-11 23:10:25 +00:00

11 lines
222 B
Python

# -*- coding: utf-8 -*-
from typing import Any
class Bunch: # export
def __init__(self, **kwargs):
self.__dict__.update(kwargs)
def __getitem__(self, key: str) -> Any:
return self.__dict__[key]