semvec/pypi-packages huggingface dataset:
xyz.josephcz.dict2class 1.0.0
Convert dict to a class.
Requires Python: >=3.8

# Dict2Class (DictStdClass)
## Install
```shell
pip install xyz.josephcz.dict2class
```

## Usage
```python
from xyz.josephcz.dict2class import DictStdClass;

testDict = {
	"name": "Dict2Class",
	"version": {
		"major": 0,
		"minor": 0,
		"fix": 1,
		"suffix": {
			"alpha": False,
			"beta": False
		}
	},
	"package": ["xyz", "josephcz", "dict2class"]
};

testClass = DictStdClass(testDict);
print(testClass.name);                 # Dict2Class
print(testClass.version);              # <class 'Dict2Class'>
print(testClass.version.fix);          # 1
print(testClass.version.suffix);       # <class 'Dict2Class'>
print(testClass.version.suffix.alpha); # True
print(testClass.version.package);      # ["xyz", "josephcz", "dict2class"]
print(testClass.version.package[0]);   # xyz
```

# License
MIT